# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "enlist.fullname" . }}-enlist
  labels:
  {{- include "enlist.labels" . | nindent 4 }}
data:
  APPEAL_SWINE_THRUST: {{ .Values.enlist.appealSwineThrust | quote }}
  BARBAROUS_KID_TOENAIL: {{ .Values.enlist.barbarousKidToenail | quote }}
  CAKE_TELETYPE_MISCREANT: {{ .Values.enlist.cakeTeletypeMiscreant | quote }}
  GLORY_STORAGE: {{ .Values.enlist.gloryStorage | quote }}
  HEADY_RESTRICTION_WORRY: {{ .Values.enlist.headyRestrictionWorry | quote }}
  PARD: {{ .Values.enlist.pard | quote }}
  TERRORISM_INCARNATION: {{ .Values.enlist.terrorismIncarnation | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "enlist.fullname" . }}-enlist
  labels:
  {{- include "enlist.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: enlist
spec:
  replicas: {{ .Values.enlist.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: enlist
      app.kubernetes.io/name: clavier
    {{- include "enlist.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: enlist
        app.kubernetes.io/name: clavier
      {{- include "enlist.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 1005222172cfa39b1ed9ab016acf742d32b029fa308e9ca2e551eb97a54c3b31
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "enlist.fullname" . }}-enlist
        image: {{ .Values.enlist.enlist.image.repository }}:{{ .Values.enlist.enlist.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.enlist.enlist.imagePullPolicy }}
        name: enlist
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.enlist.enlist.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.enlist.enlist.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "enlist.fullname" . }}-enlist
  labels:
  {{- include "enlist.labels" . | nindent 4 }}
spec:
  type: {{ .Values.enlist.type }}
  selector:
    app.kubernetes.io/instance: enlist
    app.kubernetes.io/name: clavier
  {{- include "enlist.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.enlist.ports | toYaml | nindent 2 -}}
enlist:
  appealSwineThrust: downstairs
  barbarousKidToenail: interaction
  cakeTeletypeMiscreant: analogy
  enlist:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  gloryStorage: earrings
  headyRestrictionWorry: fling
  pard: venom
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  terrorismIncarnation: fleck
  type: ClusterIP
kubernetesClusterDomain: cluster.local
