# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "load.fullname" . }}-load
  labels:
  {{- include "load.labels" . | nindent 4 }}
data:
  BULL-FIGHTER: {{ .Values.load.bullFighter | quote }}
  CULTIVAR_CHARSET_POLITICIAN: {{ .Values.load.cultivarCharsetPolitician | quote
    }}
  DEPUTY_DISAGREE: {{ .Values.load.deputyDisagree | quote }}
  HYDROXYL_FORCE: {{ .Values.load.hydroxylForce | quote }}
  LAYOUT_CANON_CABIN: {{ .Values.load.layoutCanonCabin | quote }}
  LEGACY_BOUNDARY: {{ .Values.load.legacyBoundary | quote }}
  PODCAST_SPEAKER: {{ .Values.load.podcastSpeaker | quote }}
  SIGNATURE_HEMP: {{ .Values.load.signatureHemp | quote }}
  TOMB_POSTAGE_PRETEND: {{ .Values.load.tombPostagePretend | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "load.fullname" . }}-load
  labels:
  {{- include "load.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: load
spec:
  replicas: {{ .Values.load.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: load
      app.kubernetes.io/name: socialist
    {{- include "load.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: load
        app.kubernetes.io/name: socialist
      {{- include "load.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 2a0018a46c367efcc4130dca2a2f0d4c6d4ad69c554e02f59b76966b3798114f
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "load.fullname" . }}-load
        image: {{ .Values.load.load.image.repository }}:{{ .Values.load.load.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.load.load.imagePullPolicy }}
        name: load
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.load.load.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.load.load.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "load.fullname" . }}-load
  labels:
  {{- include "load.labels" . | nindent 4 }}
spec:
  type: {{ .Values.load.type }}
  selector:
    app.kubernetes.io/instance: load
    app.kubernetes.io/name: socialist
  {{- include "load.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.load.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
load:
  bullFighter: ceaseless
  cultivarCharsetPolitician: permafrost
  deputyDisagree: initial
  hydroxylForce: beating
  layoutCanonCabin: gentle
  legacyBoundary: movie
  load:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  podcastSpeaker: babushka
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  signatureHemp: ginger
  tombPostagePretend: aboriginal
  type: ClusterIP
