# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "other.fullname" . }}-other
  labels:
  {{- include "other.labels" . | nindent 4 }}
data:
  BIDDER_DIDACTIC_ORGAN: {{ .Values.other.bidderDidacticOrgan | quote }}
  COACH_CLEVER: {{ .Values.other.coachClever | quote }}
  CUFF-LINK_MUNDANE: {{ .Values.other.cuffLinkMundane | quote }}
  DAIRY_WAKEFUL: {{ .Values.other.dairyWakeful | quote }}
  DRAMATIC: {{ .Values.other.dramatic | quote }}
  GEOGRAPHY: {{ .Values.other.geography | quote }}
  LEMUR_CUSTOMER: {{ .Values.other.lemurCustomer | quote }}
  MOLDY: {{ .Values.other.moldy | quote }}
  NIGHTCLUB_TRACE: {{ .Values.other.nightclubTrace | quote }}
  PORTION_RUM_EMU: {{ .Values.other.portionRumEmu | quote }}
  PROTEIN: {{ .Values.other.protein | quote }}
  SPHERE_TOOTHPASTE_HISSING: {{ .Values.other.sphereToothpasteHissing | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "other.fullname" . }}-other
  labels:
  {{- include "other.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: other
spec:
  replicas: {{ .Values.other.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: other
      app.kubernetes.io/name: strip
    {{- include "other.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: other
        app.kubernetes.io/name: strip
      {{- include "other.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: b76b73a3748d1afc5ec666130d24459dec1ffeb78e5af795952c863c2e7c7485
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "other.fullname" . }}-other
        image: {{ .Values.other.other.image.repository }}:{{ .Values.other.other.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.other.other.imagePullPolicy }}
        name: other
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.other.other.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.other.other.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "other.fullname" . }}-other
  labels:
  {{- include "other.labels" . | nindent 4 }}
spec:
  type: {{ .Values.other.type }}
  selector:
    app.kubernetes.io/instance: other
    app.kubernetes.io/name: strip
  {{- include "other.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.other.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
other:
  bidderDidacticOrgan: adapter
  coachClever: penalty
  cuffLinkMundane: prince
  dairyWakeful: card
  dramatic: review
  geography: marxism
  lemurCustomer: sentencing
  moldy: calculator
  nightclubTrace: reading
  other:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  portionRumEmu: herring
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  protein: charge
  replicas: 1
  sphereToothpasteHissing: graduation
  type: ClusterIP
