# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "bawdy.fullname" . }}-bawdy
  labels:
  {{- include "bawdy.labels" . | nindent 4 }}
data:
  CENTRE_IMPOSSIBLE_BUTTON: {{ .Values.bawdy.centreImpossibleButton | quote }}
  CONNOTATION_SING: {{ .Values.bawdy.connotationSing | quote }}
  DEPARTMENT_PREJUDICE_HOLD: {{ .Values.bawdy.departmentPrejudiceHold | quote }}
  GRIP_STINGER: {{ .Values.bawdy.gripStinger | quote }}
  HALF_DOING_CATALOGUE: {{ .Values.bawdy.halfDoingCatalogue | quote }}
  HERO_CLAPBOARD: {{ .Values.bawdy.heroClapboard | quote }}
  INSPIRATION_PAVILION: {{ .Values.bawdy.inspirationPavilion | quote }}
  JET_HABIT: {{ .Values.bawdy.jetHabit | quote }}
  PHOSPHATE_MATTRESS: {{ .Values.bawdy.phosphateMattress | quote }}
  RECEIPT_AUDITED: {{ .Values.bawdy.receiptAudited | quote }}
  SECRECY_STROKE_STEPSON: {{ .Values.bawdy.secrecyStrokeStepson | quote }}
  STOCKINGS_LEAVE: {{ .Values.bawdy.stockingsLeave | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "bawdy.fullname" . }}-bawdy
  labels:
  {{- include "bawdy.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: bawdy
spec:
  replicas: {{ .Values.bawdy.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: bawdy
      app.kubernetes.io/name: fine
    {{- include "bawdy.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: bawdy
        app.kubernetes.io/name: fine
      {{- include "bawdy.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: db1e3fd252174fae1e1004f0e69c5d444868677f306cd9d359c2bf3e5f6c3d8e
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "bawdy.fullname" . }}-bawdy
        image: {{ .Values.bawdy.bawdy.image.repository }}:{{ .Values.bawdy.bawdy.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.bawdy.bawdy.imagePullPolicy }}
        name: bawdy
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.bawdy.bawdy.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.bawdy.bawdy.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "bawdy.fullname" . }}-bawdy
  labels:
  {{- include "bawdy.labels" . | nindent 4 }}
spec:
  type: {{ .Values.bawdy.type }}
  selector:
    app.kubernetes.io/instance: bawdy
    app.kubernetes.io/name: fine
  {{- include "bawdy.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.bawdy.ports | toYaml | nindent 2 -}}
bawdy:
  bawdy:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  centreImpossibleButton: mend
  connotationSing: gas
  departmentPrejudiceHold: blind
  gripStinger: ripple
  halfDoingCatalogue: makeshift
  heroClapboard: cake
  inspirationPavilion: ritual
  jetHabit: thongs
  phosphateMattress: snore
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  receiptAudited: sleet
  replicas: 1
  secrecyStrokeStepson: exhaustion
  stockingsLeave: flax
  type: ClusterIP
kubernetesClusterDomain: cluster.local
