# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "speedboat.fullname" . }}-speedboat
  labels:
  {{- include "speedboat.labels" . | nindent 4 }}
data:
  ACKNOWLEDGMENT_MUTATION_ALIEN: {{ .Values.speedboat.acknowledgmentMutationAlien
    | quote }}
  BOX: {{ .Values.speedboat.box | quote }}
  COPYWRITER_SHAKER: {{ .Values.speedboat.copywriterShaker | quote }}
  EMERY: {{ .Values.speedboat.emery | quote }}
  LAVA_ANORAK_OFFICER: {{ .Values.speedboat.lavaAnorakOfficer | quote }}
  MARATHON: {{ .Values.speedboat.marathon | quote }}
  MONUMENT_CONSUMER_TUNE-UP: {{ .Values.speedboat.monumentConsumerTuneUp | quote
    }}
  OAR_MAPPING: {{ .Values.speedboat.oarMapping | quote }}
  OIL_STATION-WAGON: {{ .Values.speedboat.oilStationWagon | quote }}
  VERNACULAR_SEIZURE: {{ .Values.speedboat.vernacularSeizure | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "speedboat.fullname" . }}-speedboat
  labels:
  {{- include "speedboat.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: speedboat
spec:
  replicas: {{ .Values.speedboat.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: speedboat
      app.kubernetes.io/name: candidacy
    {{- include "speedboat.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: speedboat
        app.kubernetes.io/name: candidacy
      {{- include "speedboat.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: f0d4d688ff877e3c6e5788d4100800ecbf9f809d48fb42b8ae42af9c931736fa
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "speedboat.fullname" . }}-speedboat
        image: {{ .Values.speedboat.speedboat.image.repository }}:{{ .Values.speedboat.speedboat.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.speedboat.speedboat.imagePullPolicy }}
        name: speedboat
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.speedboat.speedboat.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.speedboat.speedboat.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "speedboat.fullname" . }}-speedboat
  labels:
  {{- include "speedboat.labels" . | nindent 4 }}
spec:
  type: {{ .Values.speedboat.type }}
  selector:
    app.kubernetes.io/instance: speedboat
    app.kubernetes.io/name: candidacy
  {{- include "speedboat.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.speedboat.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
speedboat:
  acknowledgmentMutationAlien: beak
  box: coal
  copywriterShaker: like
  emery: spouse
  lavaAnorakOfficer: gleaming
  marathon: perceive
  monumentConsumerTuneUp: tattoo
  oarMapping: valley
  oilStationWagon: determination
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  speedboat:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  type: ClusterIP
  vernacularSeizure: continue
