# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "port.fullname" . }}-port
  labels:
  {{- include "port.labels" . | nindent 4 }}
data:
  ABORTIVE: {{ .Values.port.abortive | quote }}
  BIBLIOGRAPHY_PILL: {{ .Values.port.bibliographyPill | quote }}
  BURRITO_ELONGATION: {{ .Values.port.burritoElongation | quote }}
  FORGERY_HEAVY_DETAINEE: {{ .Values.port.forgeryHeavyDetainee | quote }}
  NUMEROUS_OVERHEAR: {{ .Values.port.numerousOverhear | quote }}
  STEP-UNCLE_IMITATION_LATEX: {{ .Values.port.stepUncleImitationLatex | quote }}
  STOOL_BEGGAR: {{ .Values.port.stoolBeggar | quote }}
  TIGER_TRANQUIL_KINASE: {{ .Values.port.tigerTranquilKinase | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "port.fullname" . }}-port
  labels:
  {{- include "port.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: port
spec:
  replicas: {{ .Values.port.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: port
      app.kubernetes.io/name: catsup
    {{- include "port.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: port
        app.kubernetes.io/name: catsup
      {{- include "port.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: c9bc773474f86be964d06c1662713d3c8678aacd0e94c39907e7a988dd8b6a53
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "port.fullname" . }}-port
        image: {{ .Values.port.port.image.repository }}:{{ .Values.port.port.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.port.port.imagePullPolicy }}
        name: port
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.port.port.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.port.port.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "port.fullname" . }}-port
  labels:
  {{- include "port.labels" . | nindent 4 }}
spec:
  type: {{ .Values.port.type }}
  selector:
    app.kubernetes.io/instance: port
    app.kubernetes.io/name: catsup
  {{- include "port.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.port.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
port:
  abortive: fate
  bibliographyPill: tickle
  burritoElongation: cut
  forgeryHeavyDetainee: hygienic
  numerousOverhear: helo
  port:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  stepUncleImitationLatex: revolution
  stoolBeggar: damaged
  tigerTranquilKinase: profile
  type: ClusterIP
