# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "fierce.fullname" . }}-fierce
  labels:
  {{- include "fierce.labels" . | nindent 4 }}
data:
  BOB_HELLO_FEDERATION: {{ .Values.fierce.bobHelloFederation | quote }}
  ELM_PORPOISE_THINKING: {{ .Values.fierce.elmPorpoiseThinking | quote }}
  FILLY: {{ .Values.fierce.filly | quote }}
  GLORIOUS_HYDROXYL_FRIES: {{ .Values.fierce.gloriousHydroxylFries | quote }}
  HUBRIS_COPY_SKEAN: {{ .Values.fierce.hubrisCopySkean | quote }}
  INNOCENT: {{ .Values.fierce.innocent | quote }}
  INTENTION: {{ .Values.fierce.intention | quote }}
  OBEDIENT_MOMENT_SLEUTH: {{ .Values.fierce.obedientMomentSleuth | quote }}
  QUOTA_DEN: {{ .Values.fierce.quotaDen | quote }}
  REMINDER: {{ .Values.fierce.reminder | quote }}
  SNUCK_OWE: {{ .Values.fierce.snuckOwe | quote }}
  TIARA_TOWERING: {{ .Values.fierce.tiaraTowering | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "fierce.fullname" . }}-fierce
  labels:
  {{- include "fierce.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: fierce
spec:
  replicas: {{ .Values.fierce.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: fierce
      app.kubernetes.io/name: patent
    {{- include "fierce.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: fierce
        app.kubernetes.io/name: patent
      {{- include "fierce.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 17fa4b3e24157fbd8f79e739777d384d4c4254aa42138075d72f00b37586d48d
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "fierce.fullname" . }}-fierce
        image: {{ .Values.fierce.fierce.image.repository }}:{{ .Values.fierce.fierce.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.fierce.fierce.imagePullPolicy }}
        name: fierce
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.fierce.fierce.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.fierce.fierce.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "fierce.fullname" . }}-fierce
  labels:
  {{- include "fierce.labels" . | nindent 4 }}
spec:
  type: {{ .Values.fierce.type }}
  selector:
    app.kubernetes.io/instance: fierce
    app.kubernetes.io/name: patent
  {{- include "fierce.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.fierce.ports | toYaml | nindent 2 -}}
fierce:
  bobHelloFederation: jailhouse
  elmPorpoiseThinking: buze
  fierce:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  filly: jam
  gloriousHydroxylFries: behest
  hubrisCopySkean: momentous
  innocent: ritual
  intention: virginal
  obedientMomentSleuth: comics
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  quotaDen: assessment
  reminder: beating
  replicas: 1
  snuckOwe: havoc
  tiaraTowering: turnstile
  type: ClusterIP
kubernetesClusterDomain: cluster.local
