# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "dill.fullname" . }}-dill
  labels:
  {{- include "dill.labels" . | nindent 4 }}
data:
  ANGLE_TUITION: {{ .Values.dill.angleTuition | quote }}
  BROWSING_ABSTRACTED: {{ .Values.dill.browsingAbstracted | quote }}
  CLOGS: {{ .Values.dill.clogs | quote }}
  ILLITERACY_SLOT: {{ .Values.dill.illiteracySlot | quote }}
  LENTIL: {{ .Values.dill.lentil | quote }}
  MONOTHEISM_ORGANISING_EXCESS: {{ .Values.dill.monotheismOrganisingExcess | quote
    }}
  PEAK_LEOPARD_NURSE: {{ .Values.dill.peakLeopardNurse | quote }}
  PROSTACYCLIN_MATURE_COMPLIANCE: {{ .Values.dill.prostacyclinMatureCompliance |
    quote }}
  SOFTBALL_GAP: {{ .Values.dill.softballGap | quote }}
  SON_PROSTRATE: {{ .Values.dill.sonProstrate | quote }}
  TUBER_BEGINNING_WAMPUM: {{ .Values.dill.tuberBeginningWampum | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "dill.fullname" . }}-dill
  labels:
  {{- include "dill.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: dill
spec:
  replicas: {{ .Values.dill.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: dill
      app.kubernetes.io/name: command
    {{- include "dill.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: dill
        app.kubernetes.io/name: command
      {{- include "dill.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 056c59cc1886a64d20f05d97ad49a269f7ffa9533651b23ca5ced7e7f9361304
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "dill.fullname" . }}-dill
        image: {{ .Values.dill.dill.image.repository }}:{{ .Values.dill.dill.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.dill.dill.imagePullPolicy }}
        name: dill
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.dill.dill.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.dill.dill.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "dill.fullname" . }}-dill
  labels:
  {{- include "dill.labels" . | nindent 4 }}
spec:
  type: {{ .Values.dill.type }}
  selector:
    app.kubernetes.io/instance: dill
    app.kubernetes.io/name: command
  {{- include "dill.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.dill.ports | toYaml | nindent 2 -}}
dill:
  angleTuition: profuse
  browsingAbstracted: someone
  clogs: mantel
  dill:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  illiteracySlot: inquiry
  lentil: vest
  monotheismOrganisingExcess: airman
  peakLeopardNurse: general
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  prostacyclinMatureCompliance: disapprove
  replicas: 1
  softballGap: coordinator
  sonProstrate: prevalence
  tuberBeginningWampum: housewife
  type: ClusterIP
kubernetesClusterDomain: cluster.local
