# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "lashes.fullname" . }}-lashes
  labels:
  {{- include "lashes.labels" . | nindent 4 }}
data:
  COIN_STUPIDITY: {{ .Values.lashes.coinStupidity | quote }}
  DOWNLOAD_GREET_PAUSE: {{ .Values.lashes.downloadGreetPause | quote }}
  EICOSANOID_MECHANIC: {{ .Values.lashes.eicosanoidMechanic | quote }}
  FUN: {{ .Values.lashes.fun | quote }}
  HURDLE_CULTURE_ODD: {{ .Values.lashes.hurdleCultureOdd | quote }}
  JUGGLE_STUFF: {{ .Values.lashes.juggleStuff | quote }}
  JULIENNE: {{ .Values.lashes.julienne | quote }}
  TENTACLE_DECISION-MAKING_GUITAR: {{ .Values.lashes.tentacleDecisionMakingGuitar
    | quote }}
  TONALITY_FINAL: {{ .Values.lashes.tonalityFinal | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "lashes.fullname" . }}-lashes
  labels:
  {{- include "lashes.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: lashes
spec:
  replicas: {{ .Values.lashes.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: lashes
      app.kubernetes.io/name: labor
    {{- include "lashes.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: lashes
        app.kubernetes.io/name: labor
      {{- include "lashes.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 52d10179b5f4c7f3185db5d4da91c5c54bfa05f61939c89a43bd64551a30c036
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "lashes.fullname" . }}-lashes
        image: {{ .Values.lashes.lashes.image.repository }}:{{ .Values.lashes.lashes.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.lashes.lashes.imagePullPolicy }}
        name: lashes
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.lashes.lashes.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.lashes.lashes.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "lashes.fullname" . }}-lashes
  labels:
  {{- include "lashes.labels" . | nindent 4 }}
spec:
  type: {{ .Values.lashes.type }}
  selector:
    app.kubernetes.io/instance: lashes
    app.kubernetes.io/name: labor
  {{- include "lashes.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.lashes.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
lashes:
  coinStupidity: harmonize
  downloadGreetPause: vista
  eicosanoidMechanic: backpack
  fun: toenail
  hurdleCultureOdd: hammer
  juggleStuff: press
  julienne: clothes
  lashes:
    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
  replicas: 1
  tentacleDecisionMakingGuitar: joint
  tonalityFinal: recognition
  type: ClusterIP
