# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "loincloth.fullname" . }}-loincloth
  labels:
  {{- include "loincloth.labels" . | nindent 4 }}
data:
  CAROL_DEATH_FACILITATE: {{ .Values.loincloth.carolDeathFacilitate | quote }}
  CHEERFUL_FINANCE: {{ .Values.loincloth.cheerfulFinance | quote }}
  CONVERSION: {{ .Values.loincloth.conversion | quote }}
  DINGHY_MAINSTREAM_MERIDIAN: {{ .Values.loincloth.dinghyMainstreamMeridian | quote
    }}
  DRAMATIC_GRAPE: {{ .Values.loincloth.dramaticGrape | quote }}
  DUST STORM_DAPPER: {{ .Values.loincloth.dustStormDapper | quote }}
  GRANT_TOWNSHIP: {{ .Values.loincloth.grantTownship | quote }}
  HIPPODROME: {{ .Values.loincloth.hippodrome | quote }}
  OUTSET_SUFFER: {{ .Values.loincloth.outsetSuffer | quote }}
  SCRIPT_CEASELESS: {{ .Values.loincloth.scriptCeaseless | quote }}
  SEEMLY_NATIONALITY_SOFA: {{ .Values.loincloth.seemlyNationalitySofa | quote }}
  SERVICE_LAUNDRY_SNUCK: {{ .Values.loincloth.serviceLaundrySnuck | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "loincloth.fullname" . }}-loincloth
  labels:
  {{- include "loincloth.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: loincloth
spec:
  replicas: {{ .Values.loincloth.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: loincloth
      app.kubernetes.io/name: corridor
    {{- include "loincloth.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: loincloth
        app.kubernetes.io/name: corridor
      {{- include "loincloth.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 526def9917ee821cf20ca733871bee54e769245df2fabe4b5d66c82191464328
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "loincloth.fullname" . }}-loincloth
        image: {{ .Values.loincloth.loincloth.image.repository }}:{{ .Values.loincloth.loincloth.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.loincloth.loincloth.imagePullPolicy }}
        name: loincloth
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.loincloth.loincloth.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.loincloth.loincloth.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "loincloth.fullname" . }}-loincloth
  labels:
  {{- include "loincloth.labels" . | nindent 4 }}
spec:
  type: {{ .Values.loincloth.type }}
  selector:
    app.kubernetes.io/instance: loincloth
    app.kubernetes.io/name: corridor
  {{- include "loincloth.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.loincloth.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
loincloth:
  carolDeathFacilitate: symbol
  cheerfulFinance: reinscription
  conversion: skullcap
  dinghyMainstreamMeridian: bafflement
  dramaticGrape: arrange
  dustStormDapper: midnight
  grantTownship: addition
  hippodrome: chem
  loincloth:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  outsetSuffer: pantology
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  scriptCeaseless: vertigo
  seemlyNationalitySofa: world
  serviceLaundrySnuck: invader
  type: ClusterIP
