# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "colonialism.fullname" . }}-colonialism
  labels:
  {{- include "colonialism.labels" . | nindent 4 }}
data:
  ABRASIVE: {{ .Values.colonialism.abrasive | quote }}
  ACTED: {{ .Values.colonialism.acted | quote }}
  BERET_DIFFUSE: {{ .Values.colonialism.beretDiffuse | quote }}
  EXAM_SODA_WIDGET: {{ .Values.colonialism.examSodaWidget | quote }}
  MUDDLE_VICE_SUPREME: {{ .Values.colonialism.muddleViceSupreme | quote }}
  NICKEL_CONCLUDE: {{ .Values.colonialism.nickelConclude | quote }}
  NONBELIEVER_PLUME_OMISSION: {{ .Values.colonialism.nonbelieverPlumeOmission | quote
    }}
  POUNDING: {{ .Values.colonialism.pounding | quote }}
  STATUTE_KNOW-HOW_STEAK: {{ .Values.colonialism.statuteKnowHowSteak | quote }}
  SUNLIGHT: {{ .Values.colonialism.sunlight | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "colonialism.fullname" . }}-colonialism
  labels:
  {{- include "colonialism.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: colonialism
spec:
  replicas: {{ .Values.colonialism.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: colonialism
      app.kubernetes.io/name: suspect
    {{- include "colonialism.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: colonialism
        app.kubernetes.io/name: suspect
      {{- include "colonialism.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: eaa56f623c8becad89827a9e656de707d11d7d2384d35a537f83fe8f9d1d05a3
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "colonialism.fullname" . }}-colonialism
        image: {{ .Values.colonialism.colonialism.image.repository }}:{{ .Values.colonialism.colonialism.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.colonialism.colonialism.imagePullPolicy }}
        name: colonialism
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.colonialism.colonialism.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.colonialism.colonialism.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "colonialism.fullname" . }}-colonialism
  labels:
  {{- include "colonialism.labels" . | nindent 4 }}
spec:
  type: {{ .Values.colonialism.type }}
  selector:
    app.kubernetes.io/instance: colonialism
    app.kubernetes.io/name: suspect
  {{- include "colonialism.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.colonialism.ports | toYaml | nindent 2 -}}
colonialism:
  abrasive: mutt
  acted: heirloom
  beretDiffuse: crude
  colonialism:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  examSodaWidget: fence
  muddleViceSupreme: doorpost
  nickelConclude: taboo
  nonbelieverPlumeOmission: conference
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  pounding: mob
  replicas: 1
  statuteKnowHowSteak: stability
  sunlight: ovary
  type: ClusterIP
kubernetesClusterDomain: cluster.local
