# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "talking.fullname" . }}-talking
  labels:
  {{- include "talking.labels" . | nindent 4 }}
data:
  BOYCOTT_REBEL: {{ .Values.talking.boycottRebel | quote }}
  BRIGHT_LOCKER: {{ .Values.talking.brightLocker | quote }}
  BUS_CYST: {{ .Values.talking.busCyst | quote }}
  CULVERT_DIGIT_COUNT: {{ .Values.talking.culvertDigitCount | quote }}
  HUMMUS: {{ .Values.talking.hummus | quote }}
  OVERCONFIDENT: {{ .Values.talking.overconfident | quote }}
  PANTIES_MEDAL_ZONKED: {{ .Values.talking.pantiesMedalZonked | quote }}
  PUMPKIN_MONOCLE: {{ .Values.talking.pumpkinMonocle | quote }}
  SKUNK_ESCORT_AD HOC: {{ .Values.talking.skunkEscortAdHoc | quote }}
  SPEC_STALK: {{ .Values.talking.specStalk | quote }}
  TRANSACTION_SONG_TOOTHBRUSH: {{ .Values.talking.transactionSongToothbrush | quote
    }}
  UNDERSTANDING: {{ .Values.talking.understanding | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "talking.fullname" . }}-talking
  labels:
  {{- include "talking.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: talking
spec:
  replicas: {{ .Values.talking.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: talking
      app.kubernetes.io/name: fax
    {{- include "talking.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: talking
        app.kubernetes.io/name: fax
      {{- include "talking.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 64fa23360f10a8b2f1e5dc094d7745198db923bee58809f9267ae513ec121dcb
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "talking.fullname" . }}-talking
        image: {{ .Values.talking.talking.image.repository }}:{{ .Values.talking.talking.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.talking.talking.imagePullPolicy }}
        name: talking
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.talking.talking.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.talking.talking.containerSecurityContext |
          nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "talking.fullname" . }}-talking
  labels:
  {{- include "talking.labels" . | nindent 4 }}
spec:
  type: {{ .Values.talking.type }}
  selector:
    app.kubernetes.io/instance: talking
    app.kubernetes.io/name: fax
  {{- include "talking.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.talking.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
talking:
  boycottRebel: listen
  brightLocker: cloistered
  busCyst: north
  culvertDigitCount: destroyer
  hummus: marines
  overconfident: adrenalin
  pantiesMedalZonked: injury
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  pumpkinMonocle: catch
  replicas: 1
  skunkEscortAdHoc: exhibit
  specStalk: production
  talking:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  transactionSongToothbrush: printing
  type: ClusterIP
  understanding: awareness
