# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "forget.fullname" . }}-forget
  labels:
  {{- include "forget.labels" . | nindent 4 }}
data:
  ALE: {{ .Values.forget.ale | quote }}
  CONSTANT_TENET: {{ .Values.forget.constantTenet | quote }}
  GRAN_CONSENT: {{ .Values.forget.granConsent | quote }}
  GRAPE: {{ .Values.forget.grape | quote }}
  KEY_PANICKY_ICEBERG: {{ .Values.forget.keyPanickyIceberg | quote }}
  LANDSCAPE_AFTERSHAVE_IDIOT: {{ .Values.forget.landscapeAftershaveIdiot | quote
    }}
  LIZARD: {{ .Values.forget.lizard | quote }}
  PIONEER: {{ .Values.forget.pioneer | quote }}
  TENSION: {{ .Values.forget.tension | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "forget.fullname" . }}-forget
  labels:
  {{- include "forget.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: forget
spec:
  replicas: {{ .Values.forget.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: forget
      app.kubernetes.io/name: morbidity
    {{- include "forget.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: forget
        app.kubernetes.io/name: morbidity
      {{- include "forget.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 49fd204bc23759b77c520a89871bd186478cebda00ce5d7285e3c1aa8fd6650e
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "forget.fullname" . }}-forget
        image: {{ .Values.forget.forget.image.repository }}:{{ .Values.forget.forget.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.forget.forget.imagePullPolicy }}
        name: forget
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.forget.forget.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.forget.forget.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "forget.fullname" . }}-forget
  labels:
  {{- include "forget.labels" . | nindent 4 }}
spec:
  type: {{ .Values.forget.type }}
  selector:
    app.kubernetes.io/instance: forget
    app.kubernetes.io/name: morbidity
  {{- include "forget.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.forget.ports | toYaml | nindent 2 -}}
forget:
  ale: bridge
  constantTenet: cotton
  forget:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  granConsent: omission
  grape: analgesia
  keyPanickyIceberg: adamant
  landscapeAftershaveIdiot: mime
  lizard: avoid
  pioneer: year
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  tension: implication
  type: ClusterIP
kubernetesClusterDomain: cluster.local
