# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "homosexual.fullname" . }}-homosexual
  labels:
  {{- include "homosexual.labels" . | nindent 4 }}
data:
  CYGNET: {{ .Values.homosexual.cygnet | quote }}
  OPPOSITE: {{ .Values.homosexual.opposite | quote }}
  RECTANGLE: {{ .Values.homosexual.rectangle | quote }}
  SAMPLE_COLD_STATISTICS: {{ .Values.homosexual.sampleColdStatistics | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "homosexual.fullname" . }}-homosexual
  labels:
  {{- include "homosexual.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: homosexual
spec:
  replicas: {{ .Values.homosexual.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: homosexual
      app.kubernetes.io/name: macaroon
    {{- include "homosexual.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: homosexual
        app.kubernetes.io/name: macaroon
      {{- include "homosexual.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 77b890be80329bcf0abbe20b98a6af394f31d75667018b17fefe65cbcd2217ed
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "homosexual.fullname" . }}-homosexual
        image: {{ .Values.homosexual.homosexual.image.repository }}:{{ .Values.homosexual.homosexual.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.homosexual.homosexual.imagePullPolicy }}
        name: homosexual
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.homosexual.homosexual.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.homosexual.homosexual.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "homosexual.fullname" . }}-homosexual
  labels:
  {{- include "homosexual.labels" . | nindent 4 }}
spec:
  type: {{ .Values.homosexual.type }}
  selector:
    app.kubernetes.io/instance: homosexual
    app.kubernetes.io/name: macaroon
  {{- include "homosexual.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.homosexual.ports | toYaml | nindent 2 -}}
homosexual:
  cygnet: swell
  homosexual:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  opposite: pollution
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  rectangle: counterterrorism
  replicas: 1
  sampleColdStatistics: whine
  type: ClusterIP
kubernetesClusterDomain: cluster.local
