# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "pick.fullname" . }}-pick
  labels:
  {{- include "pick.labels" . | nindent 4 }}
data:
  CARLOAD_PINT_FRUSTRATION: {{ .Values.pick.carloadPintFrustration | quote }}
  DANCER: {{ .Values.pick.dancer | quote }}
  DEPOSIT_PICKET: {{ .Values.pick.depositPicket | quote }}
  DRAWING_PENDULUM: {{ .Values.pick.drawingPendulum | quote }}
  GENERATE_EVIL: {{ .Values.pick.generateEvil | quote }}
  OCCURRENCE_SNAIL: {{ .Values.pick.occurrenceSnail | quote }}
  OCTAVO_EXECUTE: {{ .Values.pick.octavoExecute | quote }}
  RAVIOLI_TOOL: {{ .Values.pick.ravioliTool | quote }}
  REMOVE_INTENSITY_SUPPLIER: {{ .Values.pick.removeIntensitySupplier | quote }}
  SOMEPLACE_BUTANE_RAWHIDE: {{ .Values.pick.someplaceButaneRawhide | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "pick.fullname" . }}-pick
  labels:
  {{- include "pick.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: pick
spec:
  replicas: {{ .Values.pick.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: pick
      app.kubernetes.io/name: effort
    {{- include "pick.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: pick
        app.kubernetes.io/name: effort
      {{- include "pick.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 2bc6fd2280d8490ec94cdee4ee133687cc089a164702393b9ee831ac0376ac34
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "pick.fullname" . }}-pick
        image: {{ .Values.pick.pick.image.repository }}:{{ .Values.pick.pick.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.pick.pick.imagePullPolicy }}
        name: pick
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.pick.pick.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.pick.pick.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "pick.fullname" . }}-pick
  labels:
  {{- include "pick.labels" . | nindent 4 }}
spec:
  type: {{ .Values.pick.type }}
  selector:
    app.kubernetes.io/instance: pick
    app.kubernetes.io/name: effort
  {{- include "pick.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.pick.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
pick:
  carloadPintFrustration: honesty
  dancer: agency
  depositPicket: equity
  drawingPendulum: rainmaker
  generateEvil: lavish
  occurrenceSnail: prune
  octavoExecute: back
  pick:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  ravioliTool: prostacyclin
  removeIntensitySupplier: wave
  replicas: 1
  someplaceButaneRawhide: dwell
  type: ClusterIP
