# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "lunchmeat.fullname" . }}-lunchmeat
  labels:
  {{- include "lunchmeat.labels" . | nindent 4 }}
data:
  AGGRADATION_TYPEFACE: {{ .Values.lunchmeat.aggradationTypeface | quote }}
  CONFUSED: {{ .Values.lunchmeat.confused | quote }}
  DIESEL_ALIVE_CHECKOUT: {{ .Values.lunchmeat.dieselAliveCheckout | quote }}
  EDITORIAL: {{ .Values.lunchmeat.editorial | quote }}
  HYGIENIC: {{ .Values.lunchmeat.hygienic | quote }}
  NICKNAME_JEANS: {{ .Values.lunchmeat.nicknameJeans | quote }}
  PROFESSION: {{ .Values.lunchmeat.profession | quote }}
  SHOT_PANPIPE_FORT: {{ .Values.lunchmeat.shotPanpipeFort | quote }}
  SUSPENSION: {{ .Values.lunchmeat.suspension | quote }}
  UBIQUITOUS_TEMPORARY_CARVE: {{ .Values.lunchmeat.ubiquitousTemporaryCarve | quote
    }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "lunchmeat.fullname" . }}-lunchmeat
  labels:
  {{- include "lunchmeat.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: lunchmeat
spec:
  replicas: {{ .Values.lunchmeat.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: lunchmeat
      app.kubernetes.io/name: bathhouse
    {{- include "lunchmeat.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: lunchmeat
        app.kubernetes.io/name: bathhouse
      {{- include "lunchmeat.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: ebfa40d9d874a9b473694aabc0ec66fbff0fef274d99e39b5108a8ac32083baf
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "lunchmeat.fullname" . }}-lunchmeat
        image: {{ .Values.lunchmeat.lunchmeat.image.repository }}:{{ .Values.lunchmeat.lunchmeat.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.lunchmeat.lunchmeat.imagePullPolicy }}
        name: lunchmeat
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.lunchmeat.lunchmeat.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.lunchmeat.lunchmeat.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "lunchmeat.fullname" . }}-lunchmeat
  labels:
  {{- include "lunchmeat.labels" . | nindent 4 }}
spec:
  type: {{ .Values.lunchmeat.type }}
  selector:
    app.kubernetes.io/instance: lunchmeat
    app.kubernetes.io/name: bathhouse
  {{- include "lunchmeat.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.lunchmeat.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
lunchmeat:
  aggradationTypeface: illustration
  confused: pool
  dieselAliveCheckout: bowtie
  editorial: attorney
  hygienic: basket
  lunchmeat:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  nicknameJeans: legal
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  profession: alluvium
  replicas: 1
  shotPanpipeFort: soundness
  suspension: arrogant
  type: ClusterIP
  ubiquitousTemporaryCarve: deceive
