# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "mouth.fullname" . }}-mouth
  labels:
  {{- include "mouth.labels" . | nindent 4 }}
data:
  BLACK: {{ .Values.mouth.black | quote }}
  COLUMN: {{ .Values.mouth.column | quote }}
  EDUCATED_LAVA: {{ .Values.mouth.educatedLava | quote }}
  FASCIA_CHILI_HOPS: {{ .Values.mouth.fasciaChiliHops | quote }}
  FIBROBLAST_ERASER_MAKE: {{ .Values.mouth.fibroblastEraserMake | quote }}
  LIVING_OVERDRAW: {{ .Values.mouth.livingOverdraw | quote }}
  MOTORCYCLE_ASSESSMENT_ALIKE: {{ .Values.mouth.motorcycleAssessmentAlike | quote
    }}
  PLEAD_LIKEABLE_FRESH: {{ .Values.mouth.pleadLikeableFresh | quote }}
  RAT_DAISY_ATM: {{ .Values.mouth.ratDaisyAtm | quote }}
  SKIN_INTERJECT: {{ .Values.mouth.skinInterject | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "mouth.fullname" . }}-mouth
  labels:
  {{- include "mouth.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: mouth
spec:
  replicas: {{ .Values.mouth.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: mouth
      app.kubernetes.io/name: pineapple
    {{- include "mouth.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: mouth
        app.kubernetes.io/name: pineapple
      {{- include "mouth.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: e405d12cdd7d2dcc43c345a1ca3e7d297885b08da23b9576df5234e0c6fd1c4c
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "mouth.fullname" . }}-mouth
        image: {{ .Values.mouth.mouth.image.repository }}:{{ .Values.mouth.mouth.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.mouth.mouth.imagePullPolicy }}
        name: mouth
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.mouth.mouth.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.mouth.mouth.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "mouth.fullname" . }}-mouth
  labels:
  {{- include "mouth.labels" . | nindent 4 }}
spec:
  type: {{ .Values.mouth.type }}
  selector:
    app.kubernetes.io/instance: mouth
    app.kubernetes.io/name: pineapple
  {{- include "mouth.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.mouth.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
mouth:
  black: hardware
  column: essay
  educatedLava: spiderling
  fasciaChiliHops: hug
  fibroblastEraserMake: tender
  livingOverdraw: carpenter
  motorcycleAssessmentAlike: trade
  mouth:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  pleadLikeableFresh: crazy
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  ratDaisyAtm: burrito
  replicas: 1
  skinInterject: scrub
  type: ClusterIP
