# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "solve.fullname" . }}-solve
  labels:
  {{- include "solve.labels" . | nindent 4 }}
data:
  CRUISE_ANALGESIA_ILLITERACY: {{ .Values.solve.cruiseAnalgesiaIlliteracy | quote
    }}
  HANG_POLLUTANT: {{ .Values.solve.hangPollutant | quote }}
  IDENTITY_COLLOQUY: {{ .Values.solve.identityColloquy | quote }}
  PREMEDITATION_BISCUIT_CONSTRUCTION: {{ .Values.solve.premeditationBiscuitConstruction
    | quote }}
  PROMPT_TOREADOR_GAS: {{ .Values.solve.promptToreadorGas | quote }}
  REMINISCENT: {{ .Values.solve.reminiscent | quote }}
  SERVANT: {{ .Values.solve.servant | quote }}
  SLEEPING_VINE_HAMMER: {{ .Values.solve.sleepingVineHammer | quote }}
  SOMEWHERE_TECHNIQUE_ADMINISTRATOR: {{ .Values.solve.somewhereTechniqueAdministrator
    | quote }}
  UPSTAIRS_GIFT: {{ .Values.solve.upstairsGift | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "solve.fullname" . }}-solve
  labels:
  {{- include "solve.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: solve
spec:
  replicas: {{ .Values.solve.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: solve
      app.kubernetes.io/name: stir-fry
    {{- include "solve.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: solve
        app.kubernetes.io/name: stir-fry
      {{- include "solve.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 61066c60dd62319c6c9f40629fd0b151522e9aef2fd347254420141c24e9b548
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "solve.fullname" . }}-solve
        image: {{ .Values.solve.solve.image.repository }}:{{ .Values.solve.solve.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.solve.solve.imagePullPolicy }}
        name: solve
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.solve.solve.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.solve.solve.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "solve.fullname" . }}-solve
  labels:
  {{- include "solve.labels" . | nindent 4 }}
spec:
  type: {{ .Values.solve.type }}
  selector:
    app.kubernetes.io/instance: solve
    app.kubernetes.io/name: stir-fry
  {{- include "solve.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.solve.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
solve:
  cruiseAnalgesiaIlliteracy: dull
  hangPollutant: unusual
  identityColloquy: sensitivity
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  premeditationBiscuitConstruction: foregoing
  promptToreadorGas: conflict
  reminiscent: misogyny
  replicas: 1
  servant: prohibition
  sleepingVineHammer: sardine
  solve:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  somewhereTechniqueAdministrator: quote
  type: ClusterIP
  upstairsGift: snow
