# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "lung.fullname" . }}-lung
  labels:
  {{- include "lung.labels" . | nindent 4 }}
data:
  ATTRIBUTE: {{ .Values.lung.attribute | quote }}
  BOOTY: {{ .Values.lung.booty | quote }}
  CAPE_ENDIVE_WIN: {{ .Values.lung.capeEndiveWin | quote }}
  CAPITULATION_MEDIUM_EUROCENTRISM: {{ .Values.lung.capitulationMediumEurocentrism
    | quote }}
  DETECTOR_BANKING_PROCESSING: {{ .Values.lung.detectorBankingProcessing | quote
    }}
  JUMPSUIT: {{ .Values.lung.jumpsuit | quote }}
  OTTOMAN: {{ .Values.lung.ottoman | quote }}
  RUGBY: {{ .Values.lung.rugby | quote }}
  UNBIASED_FLOODPLAIN_FACULTY: {{ .Values.lung.unbiasedFloodplainFaculty | quote
    }}
  VEIL_BARN: {{ .Values.lung.veilBarn | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "lung.fullname" . }}-lung
  labels:
  {{- include "lung.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: lung
spec:
  replicas: {{ .Values.lung.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: lung
      app.kubernetes.io/name: diagram
    {{- include "lung.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: lung
        app.kubernetes.io/name: diagram
      {{- include "lung.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 9f01e9f84cf0900116d1f116c335ad12314e90e8b837536d7f2752333185e8a1
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "lung.fullname" . }}-lung
        image: {{ .Values.lung.lung.image.repository }}:{{ .Values.lung.lung.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.lung.lung.imagePullPolicy }}
        name: lung
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.lung.lung.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.lung.lung.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "lung.fullname" . }}-lung
  labels:
  {{- include "lung.labels" . | nindent 4 }}
spec:
  type: {{ .Values.lung.type }}
  selector:
    app.kubernetes.io/instance: lung
    app.kubernetes.io/name: diagram
  {{- include "lung.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.lung.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
lung:
  attribute: mathematics
  booty: scintillating
  capeEndiveWin: business
  capitulationMediumEurocentrism: youngster
  detectorBankingProcessing: bonus
  jumpsuit: airship
  lung:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  ottoman: cute
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  rugby: embossing
  type: ClusterIP
  unbiasedFloodplainFaculty: cloakroom
  veilBarn: sorrel
