# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "output.fullname" . }}-output
  labels:
  {{- include "output.labels" . | nindent 4 }}
data:
  DEDUCTION_CUSTODY: {{ .Values.output.deductionCustody | quote }}
  FURNITURE_STRAW_VISITOR: {{ .Values.output.furnitureStrawVisitor | quote }}
  GENTLEMAN: {{ .Values.output.gentleman | quote }}
  GYMNASTICS_ROMAINE: {{ .Values.output.gymnasticsRomaine | quote }}
  RANCH_ASK_HAVOC: {{ .Values.output.ranchAskHavoc | quote }}
  REMINISCENT_RECOGNIZE: {{ .Values.output.reminiscentRecognize | quote }}
  SUPERIORITY: {{ .Values.output.superiority | quote }}
  VIBRISSAE_SNATCH_SCRAMBLED: {{ .Values.output.vibrissaeSnatchScrambled | quote
    }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "output.fullname" . }}-output
  labels:
  {{- include "output.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: output
spec:
  replicas: {{ .Values.output.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: output
      app.kubernetes.io/name: princess
    {{- include "output.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: output
        app.kubernetes.io/name: princess
      {{- include "output.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 34898f552b9d06be463f75cb5052c32d84f64f6c93960dde880c2fd5775fca1a
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "output.fullname" . }}-output
        image: {{ .Values.output.output.image.repository }}:{{ .Values.output.output.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.output.output.imagePullPolicy }}
        name: output
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.output.output.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.output.output.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "output.fullname" . }}-output
  labels:
  {{- include "output.labels" . | nindent 4 }}
spec:
  type: {{ .Values.output.type }}
  selector:
    app.kubernetes.io/instance: output
    app.kubernetes.io/name: princess
  {{- include "output.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.output.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
output:
  deductionCustody: rib
  furnitureStrawVisitor: rake
  gentleman: scholar
  gymnasticsRomaine: noodle
  output:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  ranchAskHavoc: citron
  reminiscentRecognize: trophy
  replicas: 1
  superiority: resolve
  type: ClusterIP
  vibrissaeSnatchScrambled: diaper
