# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "soybean.fullname" . }}-soybean
  labels:
  {{- include "soybean.labels" . | nindent 4 }}
data:
  APARTMENT_SHAWL: {{ .Values.soybean.apartmentShawl | quote }}
  BOLT: {{ .Values.soybean.bolt | quote }}
  CILANTRO_MEND: {{ .Values.soybean.cilantroMend | quote }}
  CONGREGATION_SKUNK_JEEP: {{ .Values.soybean.congregationSkunkJeep | quote }}
  KEEPER_ATTAIN: {{ .Values.soybean.keeperAttain | quote }}
  NUMEROUS_TV_ABILITY: {{ .Values.soybean.numerousTvAbility | quote }}
  RECEIVER_FLIP-FLOPS_HURDLER: {{ .Values.soybean.receiverFlipFlopsHurdler | quote
    }}
  TUITION_HEROINE: {{ .Values.soybean.tuitionHeroine | quote }}
  ZEBRAFISH_CACTUS_TIMELINE: {{ .Values.soybean.zebrafishCactusTimeline | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "soybean.fullname" . }}-soybean
  labels:
  {{- include "soybean.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: soybean
spec:
  replicas: {{ .Values.soybean.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: soybean
      app.kubernetes.io/name: dancer
    {{- include "soybean.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: soybean
        app.kubernetes.io/name: dancer
      {{- include "soybean.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 50eb0279b596bb1395a0707ce55297e44a26c1391415631154437694b869eaf7
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "soybean.fullname" . }}-soybean
        image: {{ .Values.soybean.soybean.image.repository }}:{{ .Values.soybean.soybean.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.soybean.soybean.imagePullPolicy }}
        name: soybean
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.soybean.soybean.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.soybean.soybean.containerSecurityContext |
          nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "soybean.fullname" . }}-soybean
  labels:
  {{- include "soybean.labels" . | nindent 4 }}
spec:
  type: {{ .Values.soybean.type }}
  selector:
    app.kubernetes.io/instance: soybean
    app.kubernetes.io/name: dancer
  {{- include "soybean.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.soybean.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
soybean:
  apartmentShawl: crocodile
  bolt: assorted
  cilantroMend: minor
  congregationSkunkJeep: womanly
  keeperAttain: front
  numerousTvAbility: mini
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  receiverFlipFlopsHurdler: admission
  replicas: 1
  soybean:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  tuitionHeroine: moth
  type: ClusterIP
  zebrafishCactusTimeline: obligation
