# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "consider.fullname" . }}-consider
  labels:
  {{- include "consider.labels" . | nindent 4 }}
data:
  ADAPTATION_PINT_ASSESSMENT: {{ .Values.consider.adaptationPintAssessment | quote
    }}
  ART: {{ .Values.consider.art | quote }}
  COLUMN_PATRON: {{ .Values.consider.columnPatron | quote }}
  CONCEPTUALIZE_MANDATE_ANGIOSPERM: {{ .Values.consider.conceptualizeMandateAngiosperm
    | quote }}
  DETAINEE_ASSAULT: {{ .Values.consider.detaineeAssault | quote }}
  EMPLOY_ORIENTATION: {{ .Values.consider.employOrientation | quote }}
  FEW_LAUNCH: {{ .Values.consider.fewLaunch | quote }}
  HARBOR: {{ .Values.consider.harbor | quote }}
  LEFT_PUPPET: {{ .Values.consider.leftPuppet | quote }}
  PASSENGER: {{ .Values.consider.passenger | quote }}
  RECESS: {{ .Values.consider.recess | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "consider.fullname" . }}-consider
  labels:
  {{- include "consider.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: consider
spec:
  replicas: {{ .Values.consider.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: consider
      app.kubernetes.io/name: ketch
    {{- include "consider.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: consider
        app.kubernetes.io/name: ketch
      {{- include "consider.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 6c016b98034d536928503bc45906b8a0b9a059e64f7997b3053d6eb84f0e69a5
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "consider.fullname" . }}-consider
        image: {{ .Values.consider.consider.image.repository }}:{{ .Values.consider.consider.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.consider.consider.imagePullPolicy }}
        name: consider
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.consider.consider.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.consider.consider.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "consider.fullname" . }}-consider
  labels:
  {{- include "consider.labels" . | nindent 4 }}
spec:
  type: {{ .Values.consider.type }}
  selector:
    app.kubernetes.io/instance: consider
    app.kubernetes.io/name: ketch
  {{- include "consider.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.consider.ports | toYaml | nindent 2 -}}
consider:
  adaptationPintAssessment: sunbeam
  art: witness
  columnPatron: furnace
  conceptualizeMandateAngiosperm: bathhouse
  consider:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  detaineeAssault: fetus
  employOrientation: independence
  fewLaunch: remember
  harbor: beastie
  leftPuppet: gasoline
  passenger: sandal
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  recess: shopping
  replicas: 1
  type: ClusterIP
kubernetesClusterDomain: cluster.local
