# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "age.fullname" . }}-age
  labels:
  {{- include "age.labels" . | nindent 4 }}
data:
  ABNORMAL_LEND: {{ .Values.age.abnormalLend | quote }}
  BEAM_TIDE: {{ .Values.age.beamTide | quote }}
  ENTERTAINING: {{ .Values.age.entertaining | quote }}
  MALLET_ANYBODY: {{ .Values.age.malletAnybody | quote }}
  NUCLEOTIDE_TASTEFUL: {{ .Values.age.nucleotideTasteful | quote }}
  PATTY_SPIN: {{ .Values.age.pattySpin | quote }}
  PLANE_LIQUID_EYEBROW: {{ .Values.age.planeLiquidEyebrow | quote }}
  STONE: {{ .Values.age.stone | quote }}
  TAPE_REDISCOVERY: {{ .Values.age.tapeRediscovery | quote }}
  WITTY: {{ .Values.age.witty | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "age.fullname" . }}-age
  labels:
  {{- include "age.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: age
spec:
  replicas: {{ .Values.age.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: age
      app.kubernetes.io/name: comportment
    {{- include "age.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: age
        app.kubernetes.io/name: comportment
      {{- include "age.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: b196515245d9e86c290dc3d25b2a64853a8d7df84c41347a177c1b7d5a1bfccb
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "age.fullname" . }}-age
        image: {{ .Values.age.age.image.repository }}:{{ .Values.age.age.image.tag | default
          .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.age.age.imagePullPolicy }}
        name: age
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.age.age.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.age.age.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "age.fullname" . }}-age
  labels:
  {{- include "age.labels" . | nindent 4 }}
spec:
  type: {{ .Values.age.type }}
  selector:
    app.kubernetes.io/instance: age
    app.kubernetes.io/name: comportment
  {{- include "age.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.age.ports | toYaml | nindent 2 -}}
age:
  abnormalLend: formal
  age:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  beamTide: attend
  entertaining: eaglet
  malletAnybody: ram
  nucleotideTasteful: roadway
  pattySpin: temper
  planeLiquidEyebrow: vanity
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  stone: selection
  tapeRediscovery: classify
  type: ClusterIP
  witty: measurement
kubernetesClusterDomain: cluster.local
