# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "bet.fullname" . }}-bet
  labels:
  {{- include "bet.labels" . | nindent 4 }}
data:
  ACTED_NAVIGATION: {{ .Values.bet.actedNavigation | quote }}
  BOTTOM_ANESTHESIOLOGIST_TASSEL: {{ .Values.bet.bottomAnesthesiologistTassel | quote
    }}
  CANDIDATE_EXPOSURE: {{ .Values.bet.candidateExposure | quote }}
  CARRIER_UTOPIAN: {{ .Values.bet.carrierUtopian | quote }}
  GAUGE_DIADEM: {{ .Values.bet.gaugeDiadem | quote }}
  LEEK_BANGLE_ELM: {{ .Values.bet.leekBangleElm | quote }}
  LIABILITY: {{ .Values.bet.liability | quote }}
  MASS: {{ .Values.bet.mass | quote }}
  MINDLESS_BEE_SPOTLIGHT: {{ .Values.bet.mindlessBeeSpotlight | quote }}
  OVERDRAW: {{ .Values.bet.overdraw | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "bet.fullname" . }}-bet
  labels:
  {{- include "bet.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: bet
spec:
  replicas: {{ .Values.bet.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: bet
      app.kubernetes.io/name: floozie
    {{- include "bet.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: bet
        app.kubernetes.io/name: floozie
      {{- include "bet.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 1c956397a7acfd35337453dda3c535e4c576c5a023bff89453f211fbd5ec4f4f
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "bet.fullname" . }}-bet
        image: {{ .Values.bet.bet.image.repository }}:{{ .Values.bet.bet.image.tag | default
          .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.bet.bet.imagePullPolicy }}
        name: bet
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.bet.bet.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.bet.bet.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "bet.fullname" . }}-bet
  labels:
  {{- include "bet.labels" . | nindent 4 }}
spec:
  type: {{ .Values.bet.type }}
  selector:
    app.kubernetes.io/instance: bet
    app.kubernetes.io/name: floozie
  {{- include "bet.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.bet.ports | toYaml | nindent 2 -}}
bet:
  actedNavigation: hippopotamus
  bet:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  bottomAnesthesiologistTassel: nasty
  candidateExposure: taste
  carrierUtopian: partridge
  gaugeDiadem: hurricane
  leekBangleElm: heaven
  liability: format
  mass: ankle
  mindlessBeeSpotlight: mukluk
  overdraw: bacon
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  type: ClusterIP
kubernetesClusterDomain: cluster.local
