# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "geyser.fullname" . }}-geyser
  labels:
  {{- include "geyser.labels" . | nindent 4 }}
data:
  CANVAS: {{ .Values.geyser.canvas | quote }}
  CYCLONE_PROGRAM_KILLING: {{ .Values.geyser.cycloneProgramKilling | quote }}
  DEMONIC_LUXURIANT: {{ .Values.geyser.demonicLuxuriant | quote }}
  FILTER: {{ .Values.geyser.filter | quote }}
  PHYSICAL_INSULATION_JAIL: {{ .Values.geyser.physicalInsulationJail | quote }}
  POLICY: {{ .Values.geyser.policy | quote }}
  SIDE: {{ .Values.geyser.side | quote }}
  SOUTHEAST_CROSS-CONTAMINATION_PHASE: {{ .Values.geyser.southeastCrossContaminationPhase
    | quote }}
  STRONG: {{ .Values.geyser.strong | quote }}
  TAILBUD_TAX: {{ .Values.geyser.tailbudTax | quote }}
  TRACT_ANCESTOR: {{ .Values.geyser.tractAncestor | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "geyser.fullname" . }}-geyser
  labels:
  {{- include "geyser.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: geyser
spec:
  replicas: {{ .Values.geyser.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: geyser
      app.kubernetes.io/name: chinchilla
    {{- include "geyser.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: geyser
        app.kubernetes.io/name: chinchilla
      {{- include "geyser.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 62efbd4e81cda969a402e321a12c545895a5e44221c66b78f0b99d9e781be52e
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "geyser.fullname" . }}-geyser
        image: {{ .Values.geyser.geyser.image.repository }}:{{ .Values.geyser.geyser.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.geyser.geyser.imagePullPolicy }}
        name: geyser
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.geyser.geyser.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.geyser.geyser.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "geyser.fullname" . }}-geyser
  labels:
  {{- include "geyser.labels" . | nindent 4 }}
spec:
  type: {{ .Values.geyser.type }}
  selector:
    app.kubernetes.io/instance: geyser
    app.kubernetes.io/name: chinchilla
  {{- include "geyser.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.geyser.ports | toYaml | nindent 2 -}}
geyser:
  canvas: eager
  cycloneProgramKilling: bifocals
  demonicLuxuriant: series
  filter: soulmate
  geyser:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  physicalInsulationJail: jumpy
  policy: ham
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  side: paint
  southeastCrossContaminationPhase: well
  strong: champagne
  tailbudTax: extent
  tractAncestor: molar
  type: ClusterIP
kubernetesClusterDomain: cluster.local
