# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "language.fullname" . }}-language
  labels:
  {{- include "language.labels" . | nindent 4 }}
data:
  CYTOPLASM: {{ .Values.language.cytoplasm | quote }}
  DISCIPLINE_CROP: {{ .Values.language.disciplineCrop | quote }}
  DUE_WICK_WASH: {{ .Values.language.dueWickWash | quote }}
  ECOLOGY: {{ .Values.language.ecology | quote }}
  EVENING-WEAR: {{ .Values.language.eveningWear | quote }}
  HEADACHE_LOAFER: {{ .Values.language.headacheLoafer | quote }}
  MAJOR-LEAGUE_INSIGHT: {{ .Values.language.majorLeagueInsight | quote }}
  MEATBALL_BEACH_BREATHE: {{ .Values.language.meatballBeachBreathe | quote }}
  PRIMATE_DISPOSITION_DAYBED: {{ .Values.language.primateDispositionDaybed | quote
    }}
  REDUNDANT: {{ .Values.language.redundant | quote }}
  REPOSITORY_FOG_WOODSHED: {{ .Values.language.repositoryFogWoodshed | quote }}
  SNOWSTORM: {{ .Values.language.snowstorm | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "language.fullname" . }}-language
  labels:
  {{- include "language.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: language
spec:
  replicas: {{ .Values.language.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: language
      app.kubernetes.io/name: inhibition
    {{- include "language.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: language
        app.kubernetes.io/name: inhibition
      {{- include "language.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 69bf2dfd7ef8a225965c6ee62b0f9e2f48e34be9724ecdbe6ddd3462d4bdb6f1
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "language.fullname" . }}-language
        image: {{ .Values.language.language.image.repository }}:{{ .Values.language.language.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.language.language.imagePullPolicy }}
        name: language
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.language.language.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.language.language.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "language.fullname" . }}-language
  labels:
  {{- include "language.labels" . | nindent 4 }}
spec:
  type: {{ .Values.language.type }}
  selector:
    app.kubernetes.io/instance: language
    app.kubernetes.io/name: inhibition
  {{- include "language.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.language.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
language:
  cytoplasm: gastronomy
  disciplineCrop: absorbed
  dueWickWash: sweatsuit
  ecology: fundraising
  eveningWear: gale
  headacheLoafer: detainment
  language:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  majorLeagueInsight: decoration
  meatballBeachBreathe: bud
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  primateDispositionDaybed: poll
  redundant: glockenspiel
  replicas: 1
  repositoryFogWoodshed: gabby
  snowstorm: inversion
  type: ClusterIP
