# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "means.fullname" . }}-means
  labels:
  {{- include "means.labels" . | nindent 4 }}
data:
  ACTIVATE_CORNET_ALUMINUM: {{ .Values.means.activateCornetAluminum | quote }}
  BRAN: {{ .Values.means.bran | quote }}
  CAMPUS_GADGET_HIGH: {{ .Values.means.campusGadgetHigh | quote }}
  COIN_E-MAIL_MALL: {{ .Values.means.coinEMailMall | quote }}
  EGO_EVERYONE_QUARTET: {{ .Values.means.egoEveryoneQuartet | quote }}
  HEADLINE: {{ .Values.means.headline | quote }}
  LET_CROP_SAGE: {{ .Values.means.letCropSage | quote }}
  MOONSHINE_EFFECTOR: {{ .Values.means.moonshineEffector | quote }}
  SOMEONE_STUMP_COMMERCIAL: {{ .Values.means.someoneStumpCommercial | quote }}
  TERMINOLOGY_BOUGH: {{ .Values.means.terminologyBough | quote }}
  TOBACCO_INVOLVEMENT: {{ .Values.means.tobaccoInvolvement | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "means.fullname" . }}-means
  labels:
  {{- include "means.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: means
spec:
  replicas: {{ .Values.means.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: means
      app.kubernetes.io/name: typhoon
    {{- include "means.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: means
        app.kubernetes.io/name: typhoon
      {{- include "means.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: c48e6c42059090534b509dda2ec423a520aad119cf6e96995554e73257ced63c
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "means.fullname" . }}-means
        image: {{ .Values.means.means.image.repository }}:{{ .Values.means.means.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.means.means.imagePullPolicy }}
        name: means
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.means.means.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.means.means.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "means.fullname" . }}-means
  labels:
  {{- include "means.labels" . | nindent 4 }}
spec:
  type: {{ .Values.means.type }}
  selector:
    app.kubernetes.io/instance: means
    app.kubernetes.io/name: typhoon
  {{- include "means.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.means.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
means:
  activateCornetAluminum: energy
  bran: crinoline
  campusGadgetHigh: soybean
  coinEMailMall: campaigning
  egoEveryoneQuartet: marked
  headline: arrest
  letCropSage: surge
  means:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  moonshineEffector: blot
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  someoneStumpCommercial: hair
  terminologyBough: smash
  tobaccoInvolvement: soulmate
  type: ClusterIP
