# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "ecliptic.fullname" . }}-ecliptic
  labels:
  {{- include "ecliptic.labels" . | nindent 4 }}
data:
  ARROGANT_DESIGNATION_WRESTLER: {{ .Values.ecliptic.arrogantDesignationWrestler
    | quote }}
  DOLLOP_CREME BRULEE_ASPECT: {{ .Values.ecliptic.dollopCremeBruleeAspect | quote
    }}
  DOUBT: {{ .Values.ecliptic.doubt | quote }}
  IDENTITY: {{ .Values.ecliptic.identity | quote }}
  MULTIMEDIA_LEGISLATOR_SIGNATURE: {{ .Values.ecliptic.multimediaLegislatorSignature
    | quote }}
  PROMENADE_GUITARIST: {{ .Values.ecliptic.promenadeGuitarist | quote }}
  RACK: {{ .Values.ecliptic.rack | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "ecliptic.fullname" . }}-ecliptic
  labels:
  {{- include "ecliptic.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: ecliptic
spec:
  replicas: {{ .Values.ecliptic.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: ecliptic
      app.kubernetes.io/name: exposition
    {{- include "ecliptic.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: ecliptic
        app.kubernetes.io/name: exposition
      {{- include "ecliptic.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 10c8be0db4bcbab1556e3fed0c3e910329f0cf5a7c55635bb6d3026355920219
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "ecliptic.fullname" . }}-ecliptic
        image: {{ .Values.ecliptic.ecliptic.image.repository }}:{{ .Values.ecliptic.ecliptic.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.ecliptic.ecliptic.imagePullPolicy }}
        name: ecliptic
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.ecliptic.ecliptic.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.ecliptic.ecliptic.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "ecliptic.fullname" . }}-ecliptic
  labels:
  {{- include "ecliptic.labels" . | nindent 4 }}
spec:
  type: {{ .Values.ecliptic.type }}
  selector:
    app.kubernetes.io/instance: ecliptic
    app.kubernetes.io/name: exposition
  {{- include "ecliptic.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.ecliptic.ports | toYaml | nindent 2 -}}
ecliptic:
  arrogantDesignationWrestler: picturesque
  dollopCremeBruleeAspect: ambition
  doubt: socks
  ecliptic:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  identity: lark
  multimediaLegislatorSignature: labored
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  promenadeGuitarist: macaroni
  rack: evasive
  replicas: 1
  type: ClusterIP
kubernetesClusterDomain: cluster.local
