# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "glut.fullname" . }}-glut
  labels:
  {{- include "glut.labels" . | nindent 4 }}
data:
  BARBAROUS_HOMOSEXUALITY_COUNTERPART: {{ .Values.glut.barbarousHomosexualityCounterpart
    | quote }}
  CONTINGENCY_FIRM: {{ .Values.glut.contingencyFirm | quote }}
  MAMA_BEHOLD_MIDWIFE: {{ .Values.glut.mamaBeholdMidwife | quote }}
  NAUSEATING: {{ .Values.glut.nauseating | quote }}
  PHOTODIODE_HUSHED: {{ .Values.glut.photodiodeHushed | quote }}
  WATCH_ENGINE_SERVITUDE: {{ .Values.glut.watchEngineServitude | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "glut.fullname" . }}-glut
  labels:
  {{- include "glut.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: glut
spec:
  replicas: {{ .Values.glut.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: glut
      app.kubernetes.io/name: metabolite
    {{- include "glut.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: glut
        app.kubernetes.io/name: metabolite
      {{- include "glut.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 3330588f246451b27f03fb3e57c527c8916ae6250b5ad5c851e8b5e5cd0d0139
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "glut.fullname" . }}-glut
        image: {{ .Values.glut.glut.image.repository }}:{{ .Values.glut.glut.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.glut.glut.imagePullPolicy }}
        name: glut
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.glut.glut.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.glut.glut.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "glut.fullname" . }}-glut
  labels:
  {{- include "glut.labels" . | nindent 4 }}
spec:
  type: {{ .Values.glut.type }}
  selector:
    app.kubernetes.io/instance: glut
    app.kubernetes.io/name: metabolite
  {{- include "glut.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.glut.ports | toYaml | nindent 2 -}}
glut:
  barbarousHomosexualityCounterpart: lane
  contingencyFirm: bottom
  glut:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  mamaBeholdMidwife: equal
  nauseating: patty
  photodiodeHushed: tributary
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  type: ClusterIP
  watchEngineServitude: novel
kubernetesClusterDomain: cluster.local
