# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "deal.fullname" . }}-deal
  labels:
  {{- include "deal.labels" . | nindent 4 }}
data:
  DISCONNECTION_RETROSPECT: {{ .Values.deal.disconnectionRetrospect | quote }}
  GUITARIST_ROUGH: {{ .Values.deal.guitaristRough | quote }}
  NEUROPSYCHIATRY_HANDRAIL: {{ .Values.deal.neuropsychiatryHandrail | quote }}
  PILLAR_HILARIOUS: {{ .Values.deal.pillarHilarious | quote }}
  POLISH: {{ .Values.deal.polish | quote }}
  REVISE: {{ .Values.deal.revise | quote }}
  UNSIGHTLY_OVERCONFIDENT_PAW: {{ .Values.deal.unsightlyOverconfidentPaw | quote
    }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "deal.fullname" . }}-deal
  labels:
  {{- include "deal.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: deal
spec:
  replicas: {{ .Values.deal.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: deal
      app.kubernetes.io/name: merciful
    {{- include "deal.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: deal
        app.kubernetes.io/name: merciful
      {{- include "deal.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 06c196f8d3fba551e67d86bca21fbe9857522f0925b9f57295409a73907d471d
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "deal.fullname" . }}-deal
        image: {{ .Values.deal.deal.image.repository }}:{{ .Values.deal.deal.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.deal.deal.imagePullPolicy }}
        name: deal
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.deal.deal.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.deal.deal.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "deal.fullname" . }}-deal
  labels:
  {{- include "deal.labels" . | nindent 4 }}
spec:
  type: {{ .Values.deal.type }}
  selector:
    app.kubernetes.io/instance: deal
    app.kubernetes.io/name: merciful
  {{- include "deal.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.deal.ports | toYaml | nindent 2 -}}
deal:
  deal:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  disconnectionRetrospect: tabletop
  guitaristRough: tortilla
  neuropsychiatryHandrail: examine
  pillarHilarious: crab
  polish: proof
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  revise: opinion
  type: ClusterIP
  unsightlyOverconfidentPaw: attend
kubernetesClusterDomain: cluster.local
