# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "gigantic.fullname" . }}-gigantic
  labels:
  {{- include "gigantic.labels" . | nindent 4 }}
data:
  GANDER_PREVENTION_YACHT: {{ .Values.gigantic.ganderPreventionYacht | quote }}
  GIFTED_GENRE_PROTECTION: {{ .Values.gigantic.giftedGenreProtection | quote }}
  GRADUATE_LEEK_EYELASH: {{ .Values.gigantic.graduateLeekEyelash | quote }}
  PARAMEDIC: {{ .Values.gigantic.paramedic | quote }}
  PLATINUM_SENATE: {{ .Values.gigantic.platinumSenate | quote }}
  POLYESTER_TURBAN_BOXER: {{ .Values.gigantic.polyesterTurbanBoxer | quote }}
  QUARTET_INTENTION: {{ .Values.gigantic.quartetIntention | quote }}
  STINGER_WATERSKIING_SPREAD: {{ .Values.gigantic.stingerWaterskiingSpread | quote
    }}
  STRUCTURE_SORREL: {{ .Values.gigantic.structureSorrel | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "gigantic.fullname" . }}-gigantic
  labels:
  {{- include "gigantic.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: gigantic
spec:
  replicas: {{ .Values.gigantic.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: gigantic
      app.kubernetes.io/name: flood
    {{- include "gigantic.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: gigantic
        app.kubernetes.io/name: flood
      {{- include "gigantic.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 4a236b5a94fd81300173910be1bf0fee9cff53f1e5007c4a3a6bb60f4b4c96b1
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "gigantic.fullname" . }}-gigantic
        image: {{ .Values.gigantic.gigantic.image.repository }}:{{ .Values.gigantic.gigantic.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.gigantic.gigantic.imagePullPolicy }}
        name: gigantic
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.gigantic.gigantic.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.gigantic.gigantic.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "gigantic.fullname" . }}-gigantic
  labels:
  {{- include "gigantic.labels" . | nindent 4 }}
spec:
  type: {{ .Values.gigantic.type }}
  selector:
    app.kubernetes.io/instance: gigantic
    app.kubernetes.io/name: flood
  {{- include "gigantic.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.gigantic.ports | toYaml | nindent 2 -}}
gigantic:
  ganderPreventionYacht: thing
  giftedGenreProtection: hysterical
  gigantic:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  graduateLeekEyelash: immense
  paramedic: regulation
  platinumSenate: surround
  polyesterTurbanBoxer: shoemaker
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  quartetIntention: accent
  replicas: 1
  stingerWaterskiingSpread: nicety
  structureSorrel: mourn
  type: ClusterIP
kubernetesClusterDomain: cluster.local
