# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "kite.fullname" . }}-kite
  labels:
  {{- include "kite.labels" . | nindent 4 }}
data:
  BOOTIE_MOB_LUTE: {{ .Values.kite.bootieMobLute | quote }}
  COURT: {{ .Values.kite.court | quote }}
  DEAREST_SEEK: {{ .Values.kite.dearestSeek | quote }}
  JADE_STATISTICS: {{ .Values.kite.jadeStatistics | quote }}
  MRNA: {{ .Values.kite.mrna | quote }}
  NOD_INHERITANCE: {{ .Values.kite.nodInheritance | quote }}
  RUB: {{ .Values.kite.rub | quote }}
  TRAFFICKER: {{ .Values.kite.trafficker | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "kite.fullname" . }}-kite
  labels:
  {{- include "kite.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: kite
spec:
  replicas: {{ .Values.kite.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: kite
      app.kubernetes.io/name: watcher
    {{- include "kite.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: kite
        app.kubernetes.io/name: watcher
      {{- include "kite.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 81fe9a74054eceb1a59827246405e861c1f9b4f977b0d4cc4680dc85bb928854
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "kite.fullname" . }}-kite
        image: {{ .Values.kite.kite.image.repository }}:{{ .Values.kite.kite.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.kite.kite.imagePullPolicy }}
        name: kite
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.kite.kite.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.kite.kite.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "kite.fullname" . }}-kite
  labels:
  {{- include "kite.labels" . | nindent 4 }}
spec:
  type: {{ .Values.kite.type }}
  selector:
    app.kubernetes.io/instance: kite
    app.kubernetes.io/name: watcher
  {{- include "kite.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.kite.ports | toYaml | nindent 2 -}}
kite:
  bootieMobLute: urge
  court: jot
  dearestSeek: childlike
  jadeStatistics: railway
  kite:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  mrna: damage
  nodInheritance: formula
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  rub: consistency
  trafficker: urgency
  type: ClusterIP
kubernetesClusterDomain: cluster.local
