# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "mow.fullname" . }}-mow
  labels:
  {{- include "mow.labels" . | nindent 4 }}
data:
  BIRTHDAY_POIGNANCE: {{ .Values.mow.birthdayPoignance | quote }}
  BUSY_UNBECOMING_PUDDLE: {{ .Values.mow.busyUnbecomingPuddle | quote }}
  CLARIFICATION_TANGY_BOOKEND: {{ .Values.mow.clarificationTangyBookend | quote }}
  HUMOUR_SPONSORSHIP_LEG: {{ .Values.mow.humourSponsorshipLeg | quote }}
  STORY-TELLING_PATHETIC_COLLECTION: {{ .Values.mow.storyTellingPatheticCollection
    | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "mow.fullname" . }}-mow
  labels:
  {{- include "mow.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: mow
spec:
  replicas: {{ .Values.mow.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: mow
      app.kubernetes.io/name: phenomenon
    {{- include "mow.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: mow
        app.kubernetes.io/name: phenomenon
      {{- include "mow.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: c9c68ec8b7bd622d311a417f9dec52c44ea7c58fd153d58ad470bef409442b6a
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "mow.fullname" . }}-mow
        image: {{ .Values.mow.mow.image.repository }}:{{ .Values.mow.mow.image.tag | default
          .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.mow.mow.imagePullPolicy }}
        name: mow
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.mow.mow.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.mow.mow.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "mow.fullname" . }}-mow
  labels:
  {{- include "mow.labels" . | nindent 4 }}
spec:
  type: {{ .Values.mow.type }}
  selector:
    app.kubernetes.io/instance: mow
    app.kubernetes.io/name: phenomenon
  {{- include "mow.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.mow.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
mow:
  birthdayPoignance: truth
  busyUnbecomingPuddle: good-bye
  clarificationTangyBookend: foodstuffs
  humourSponsorshipLeg: blizzard
  mow:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  storyTellingPatheticCollection: carbohydrate
  type: ClusterIP
