# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "eardrum.fullname" . }}-eardrum
  labels:
  {{- include "eardrum.labels" . | nindent 4 }}
data:
  ARGUE_RARE_ANTIGEN: {{ .Values.eardrum.argueRareAntigen | quote }}
  CANDY_RUNNER: {{ .Values.eardrum.candyRunner | quote }}
  HEATING_KEEP_EATING: {{ .Values.eardrum.heatingKeepEating | quote }}
  MINING: {{ .Values.eardrum.mining | quote }}
  OPPORTUNIST_FIG_TOMOGRAPHY: {{ .Values.eardrum.opportunistFigTomography | quote
    }}
  SPOT_HYBRIDIZATION: {{ .Values.eardrum.spotHybridization | quote }}
  THUNDERBOLT_GINGER_PSEUDOCODE: {{ .Values.eardrum.thunderboltGingerPseudocode |
    quote }}
  VOLUNTEER_AIRSPACE: {{ .Values.eardrum.volunteerAirspace | quote }}
  WHACK_CARROT_ACID: {{ .Values.eardrum.whackCarrotAcid | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "eardrum.fullname" . }}-eardrum
  labels:
  {{- include "eardrum.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: eardrum
spec:
  replicas: {{ .Values.eardrum.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: eardrum
      app.kubernetes.io/name: gripper
    {{- include "eardrum.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: eardrum
        app.kubernetes.io/name: gripper
      {{- include "eardrum.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 652a91aabf44d6f78a59100240584a5dacf621035ed4e660ca09436cd75c4280
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "eardrum.fullname" . }}-eardrum
        image: {{ .Values.eardrum.eardrum.image.repository }}:{{ .Values.eardrum.eardrum.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.eardrum.eardrum.imagePullPolicy }}
        name: eardrum
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.eardrum.eardrum.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.eardrum.eardrum.containerSecurityContext |
          nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "eardrum.fullname" . }}-eardrum
  labels:
  {{- include "eardrum.labels" . | nindent 4 }}
spec:
  type: {{ .Values.eardrum.type }}
  selector:
    app.kubernetes.io/instance: eardrum
    app.kubernetes.io/name: gripper
  {{- include "eardrum.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.eardrum.ports | toYaml | nindent 2 -}}
eardrum:
  argueRareAntigen: aromatic
  candyRunner: manner
  eardrum:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  heatingKeepEating: match
  mining: substance
  opportunistFigTomography: dueling
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  spotHybridization: exam
  thunderboltGingerPseudocode: bra
  type: ClusterIP
  volunteerAirspace: scholar
  whackCarrotAcid: hurt
kubernetesClusterDomain: cluster.local
