# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "rod.fullname" . }}-rod
  labels:
  {{- include "rod.labels" . | nindent 4 }}
data:
  CANDY_CHOKE: {{ .Values.rod.candyChoke | quote }}
  CUB: {{ .Values.rod.cub | quote }}
  HORNET_OPTION_DRAKE: {{ .Values.rod.hornetOptionDrake | quote }}
  IMPORTED_REORGANIZATION: {{ .Values.rod.importedReorganization | quote }}
  PANTIES: {{ .Values.rod.panties | quote }}
  STAB_OAT_CONSOLIDATE: {{ .Values.rod.stabOatConsolidate | quote }}
  STRAWBERRY_OFFICE: {{ .Values.rod.strawberryOffice | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "rod.fullname" . }}-rod
  labels:
  {{- include "rod.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: rod
spec:
  replicas: {{ .Values.rod.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: rod
      app.kubernetes.io/name: exception
    {{- include "rod.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: rod
        app.kubernetes.io/name: exception
      {{- include "rod.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: ab78c589be941364f1ff8c6376881681a2ea17a35b2f25be57c04e70003bf883
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "rod.fullname" . }}-rod
        image: {{ .Values.rod.rod.image.repository }}:{{ .Values.rod.rod.image.tag | default
          .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.rod.rod.imagePullPolicy }}
        name: rod
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.rod.rod.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.rod.rod.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "rod.fullname" . }}-rod
  labels:
  {{- include "rod.labels" . | nindent 4 }}
spec:
  type: {{ .Values.rod.type }}
  selector:
    app.kubernetes.io/instance: rod
    app.kubernetes.io/name: exception
  {{- include "rod.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.rod.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
rod:
  candyChoke: demur
  cub: shiver
  hornetOptionDrake: violence
  importedReorganization: royal
  panties: realize
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  rod:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  stabOatConsolidate: overcoat
  strawberryOffice: issue
  type: ClusterIP
