# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "eyelash.fullname" . }}-eyelash
  labels:
  {{- include "eyelash.labels" . | nindent 4 }}
data:
  DISH: {{ .Values.eyelash.dish | quote }}
  DONUT: {{ .Values.eyelash.donut | quote }}
  KILLING_CAPER_SECRETION: {{ .Values.eyelash.killingCaperSecretion | quote }}
  LOCUST: {{ .Values.eyelash.locust | quote }}
  MISCARRIAGE_COMMISSION: {{ .Values.eyelash.miscarriageCommission | quote }}
  PLATE_PLEAD_BROTHER: {{ .Values.eyelash.platePleadBrother | quote }}
  REPLICATION_DEPENDENCY_CROWD: {{ .Values.eyelash.replicationDependencyCrowd | quote
    }}
  SLAPSTICK_ECLIPSE: {{ .Values.eyelash.slapstickEclipse | quote }}
  TRUCULENT_HAIRCUT_QUADRANT: {{ .Values.eyelash.truculentHaircutQuadrant | quote
    }}
  UNIFORM_OVERTHROW_SYMPTOM: {{ .Values.eyelash.uniformOverthrowSymptom | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "eyelash.fullname" . }}-eyelash
  labels:
  {{- include "eyelash.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: eyelash
spec:
  replicas: {{ .Values.eyelash.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: eyelash
      app.kubernetes.io/name: stress
    {{- include "eyelash.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: eyelash
        app.kubernetes.io/name: stress
      {{- include "eyelash.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 15ff2e22ad94ffa03b8584034c8f20ab6854c7e90ffb06840651604107f729f6
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "eyelash.fullname" . }}-eyelash
        image: {{ .Values.eyelash.eyelash.image.repository }}:{{ .Values.eyelash.eyelash.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.eyelash.eyelash.imagePullPolicy }}
        name: eyelash
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.eyelash.eyelash.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.eyelash.eyelash.containerSecurityContext |
          nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "eyelash.fullname" . }}-eyelash
  labels:
  {{- include "eyelash.labels" . | nindent 4 }}
spec:
  type: {{ .Values.eyelash.type }}
  selector:
    app.kubernetes.io/instance: eyelash
    app.kubernetes.io/name: stress
  {{- include "eyelash.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.eyelash.ports | toYaml | nindent 2 -}}
eyelash:
  dish: tennis
  donut: decimal
  eyelash:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  killingCaperSecretion: kite
  locust: piano
  miscarriageCommission: public
  platePleadBrother: waterfall
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  replicationDependencyCrowd: festive
  slapstickEclipse: eyebrows
  truculentHaircutQuadrant: muddle
  type: ClusterIP
  uniformOverthrowSymptom: equivalent
kubernetesClusterDomain: cluster.local
