# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "sexuality.fullname" . }}-sexuality
  labels:
  {{- include "sexuality.labels" . | nindent 4 }}
data:
  FUR: {{ .Values.sexuality.fur | quote }}
  HOPS: {{ .Values.sexuality.hops | quote }}
  HYDROCARBON: {{ .Values.sexuality.hydrocarbon | quote }}
  ICECREAM_DISCO_ALCOHOLIC: {{ .Values.sexuality.icecreamDiscoAlcoholic | quote }}
  LABEL_SUSTAINMENT_LIGHTSCREEN: {{ .Values.sexuality.labelSustainmentLightscreen
    | quote }}
  MINERAL_ROLE: {{ .Values.sexuality.mineralRole | quote }}
  MODERN_LIE: {{ .Values.sexuality.modernLie | quote }}
  PHILOSOPHER_CHARITY: {{ .Values.sexuality.philosopherCharity | quote }}
  QUIT: {{ .Values.sexuality.quit | quote }}
  SILO_HIGHLIGHT: {{ .Values.sexuality.siloHighlight | quote }}
  STINGER_NEUROPSYCHIATRY: {{ .Values.sexuality.stingerNeuropsychiatry | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "sexuality.fullname" . }}-sexuality
  labels:
  {{- include "sexuality.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: sexuality
spec:
  replicas: {{ .Values.sexuality.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: sexuality
      app.kubernetes.io/name: bull-fighter
    {{- include "sexuality.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: sexuality
        app.kubernetes.io/name: bull-fighter
      {{- include "sexuality.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: beef62199c11c23d0288fa7233eeac638f109373c840b26581bca33e52fe38ef
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "sexuality.fullname" . }}-sexuality
        image: {{ .Values.sexuality.sexuality.image.repository }}:{{ .Values.sexuality.sexuality.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.sexuality.sexuality.imagePullPolicy }}
        name: sexuality
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.sexuality.sexuality.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.sexuality.sexuality.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "sexuality.fullname" . }}-sexuality
  labels:
  {{- include "sexuality.labels" . | nindent 4 }}
spec:
  type: {{ .Values.sexuality.type }}
  selector:
    app.kubernetes.io/instance: sexuality
    app.kubernetes.io/name: bull-fighter
  {{- include "sexuality.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.sexuality.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
sexuality:
  fur: rough
  hops: menu
  hydrocarbon: tacky
  icecreamDiscoAlcoholic: adorable
  labelSustainmentLightscreen: underneath
  mineralRole: onset
  modernLie: overweight
  philosopherCharity: turban
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  quit: hand
  replicas: 1
  sexuality:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  siloHighlight: silicon
  stingerNeuropsychiatry: pupil
  type: ClusterIP
