# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "people.fullname" . }}-people
  labels:
  {{- include "people.labels" . | nindent 4 }}
data:
  APPLIANCE_INCANDESCENT_GINSENG: {{ .Values.people.applianceIncandescentGinseng
    | quote }}
  CONTAGION_SUSPECT_CERAMIC: {{ .Values.people.contagionSuspectCeramic | quote }}
  GEYSER_WILLINGNESS_ANXIETY: {{ .Values.people.geyserWillingnessAnxiety | quote
    }}
  MOBSTER_SNARL_IDIOT: {{ .Values.people.mobsterSnarlIdiot | quote }}
  PETITION_SIDE_THREAT: {{ .Values.people.petitionSideThreat | quote }}
  PRESENCE_OYSTER_BLACKBOARD: {{ .Values.people.presenceOysterBlackboard | quote
    }}
  PSYCHOTIC_LABORED_GODMOTHER: {{ .Values.people.psychoticLaboredGodmother | quote
    }}
  TARGET: {{ .Values.people.target | quote }}
  VISCOSE: {{ .Values.people.viscose | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "people.fullname" . }}-people
  labels:
  {{- include "people.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: people
spec:
  replicas: {{ .Values.people.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: people
      app.kubernetes.io/name: hawk
    {{- include "people.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: people
        app.kubernetes.io/name: hawk
      {{- include "people.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 698adf5259c5e3aafaeb0b3efa1c4f0df581fe84ea442b61c014bc030e4152b4
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "people.fullname" . }}-people
        image: {{ .Values.people.people.image.repository }}:{{ .Values.people.people.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.people.people.imagePullPolicy }}
        name: people
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.people.people.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.people.people.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "people.fullname" . }}-people
  labels:
  {{- include "people.labels" . | nindent 4 }}
spec:
  type: {{ .Values.people.type }}
  selector:
    app.kubernetes.io/instance: people
    app.kubernetes.io/name: hawk
  {{- include "people.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.people.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
people:
  applianceIncandescentGinseng: mud
  contagionSuspectCeramic: luxury
  geyserWillingnessAnxiety: nice
  mobsterSnarlIdiot: spare
  people:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  petitionSideThreat: tom-tom
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  presenceOysterBlackboard: conduct
  psychoticLaboredGodmother: pillar
  replicas: 1
  target: correspondent
  type: ClusterIP
  viscose: chairman
