# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "deep.fullname" . }}-deep
  labels:
  {{- include "deep.labels" . | nindent 4 }}
data:
  CINNAMON_NAPKIN: {{ .Values.deep.cinnamonNapkin | quote }}
  CONFUSED_SCARECROW_OVERWROUGHT: {{ .Values.deep.confusedScarecrowOverwrought |
    quote }}
  LECTURE_MARIONBERRY: {{ .Values.deep.lectureMarionberry | quote }}
  METEOR: {{ .Values.deep.meteor | quote }}
  PLYWOOD_FREEZER_INSTITUTION: {{ .Values.deep.plywoodFreezerInstitution | quote
    }}
  SOLICITOR_JALAPEÑO: {{ .Values.deep.solicitorJalapeo | quote }}
  TRAIL: {{ .Values.deep.trail | quote }}
  ZONKED: {{ .Values.deep.zonked | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "deep.fullname" . }}-deep
  labels:
  {{- include "deep.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: deep
spec:
  replicas: {{ .Values.deep.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: deep
      app.kubernetes.io/name: trader
    {{- include "deep.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: deep
        app.kubernetes.io/name: trader
      {{- include "deep.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 3c6d089fa9d463baac53321b3e9f99376e835bb5388dde1a86e4ef8f63ead2e3
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "deep.fullname" . }}-deep
        image: {{ .Values.deep.deep.image.repository }}:{{ .Values.deep.deep.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.deep.deep.imagePullPolicy }}
        name: deep
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.deep.deep.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.deep.deep.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "deep.fullname" . }}-deep
  labels:
  {{- include "deep.labels" . | nindent 4 }}
spec:
  type: {{ .Values.deep.type }}
  selector:
    app.kubernetes.io/instance: deep
    app.kubernetes.io/name: trader
  {{- include "deep.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.deep.ports | toYaml | nindent 2 -}}
deep:
  cinnamonNapkin: demand
  confusedScarecrowOverwrought: momentous
  deep:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  lectureMarionberry: spectacular
  meteor: succotash
  plywoodFreezerInstitution: macaw
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  solicitorJalapeo: miscommunication
  trail: combine
  type: ClusterIP
  zonked: pocket-watch
kubernetesClusterDomain: cluster.local
