# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "cummerbund.fullname" . }}-cummerbund
  labels:
  {{- include "cummerbund.labels" . | nindent 4 }}
data:
  COOING: {{ .Values.cummerbund.cooing | quote }}
  EXTENT: {{ .Values.cummerbund.extent | quote }}
  FRAME_DIVINE_COLLEAGUE: {{ .Values.cummerbund.frameDivineColleague | quote }}
  KNOWLEDGEABLE_OVERJOYED_OPINION: {{ .Values.cummerbund.knowledgeableOverjoyedOpinion
    | quote }}
  TORTE_GOPHER_MAPLE: {{ .Values.cummerbund.torteGopherMaple | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "cummerbund.fullname" . }}-cummerbund
  labels:
  {{- include "cummerbund.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: cummerbund
spec:
  replicas: {{ .Values.cummerbund.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: cummerbund
      app.kubernetes.io/name: juice
    {{- include "cummerbund.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: cummerbund
        app.kubernetes.io/name: juice
      {{- include "cummerbund.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 1e0603e4e6bbb84b0b9324bceade6367eebcc656b27d6a721a28837c15e29c8d
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "cummerbund.fullname" . }}-cummerbund
        image: {{ .Values.cummerbund.cummerbund.image.repository }}:{{ .Values.cummerbund.cummerbund.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.cummerbund.cummerbund.imagePullPolicy }}
        name: cummerbund
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.cummerbund.cummerbund.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.cummerbund.cummerbund.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "cummerbund.fullname" . }}-cummerbund
  labels:
  {{- include "cummerbund.labels" . | nindent 4 }}
spec:
  type: {{ .Values.cummerbund.type }}
  selector:
    app.kubernetes.io/instance: cummerbund
    app.kubernetes.io/name: juice
  {{- include "cummerbund.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.cummerbund.ports | toYaml | nindent 2 -}}
cummerbund:
  cooing: materialistic
  cummerbund:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  extent: ring
  frameDivineColleague: drudgery
  knowledgeableOverjoyedOpinion: kill
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  torteGopherMaple: spirit
  type: ClusterIP
kubernetesClusterDomain: cluster.local
