# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "implication.fullname" . }}-implication
  labels:
  {{- include "implication.labels" . | nindent 4 }}
data:
  BRUSH_CLOGS_BROTHER-IN-LAW: {{ .Values.implication.brushClogsBrotherInLaw | quote
    }}
  GENEROSITY_MACRAME_MISCARRIAGE: {{ .Values.implication.generosityMacrameMiscarriage
    | quote }}
  PAGE_CHESS_CUTTING: {{ .Values.implication.pageChessCutting | quote }}
  PORCUPINE: {{ .Values.implication.porcupine | quote }}
  PRIZEFIGHT: {{ .Values.implication.prizefight | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "implication.fullname" . }}-implication
  labels:
  {{- include "implication.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: implication
spec:
  replicas: {{ .Values.implication.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: implication
      app.kubernetes.io/name: racism
    {{- include "implication.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: implication
        app.kubernetes.io/name: racism
      {{- include "implication.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: b111871e5e6ab814c54bf1d4f178f181d6ac1d693bb7463967383f07049893ea
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "implication.fullname" . }}-implication
        image: {{ .Values.implication.implication.image.repository }}:{{ .Values.implication.implication.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.implication.implication.imagePullPolicy }}
        name: implication
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.implication.implication.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.implication.implication.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "implication.fullname" . }}-implication
  labels:
  {{- include "implication.labels" . | nindent 4 }}
spec:
  type: {{ .Values.implication.type }}
  selector:
    app.kubernetes.io/instance: implication
    app.kubernetes.io/name: racism
  {{- include "implication.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.implication.ports | toYaml | nindent 2 -}}
implication:
  brushClogsBrotherInLaw: divorce
  generosityMacrameMiscarriage: brood
  implication:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  pageChessCutting: mandarin
  porcupine: markup
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  prizefight: disappear
  replicas: 1
  type: ClusterIP
kubernetesClusterDomain: cluster.local
