# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "try.fullname" . }}-try
  labels:
  {{- include "try.labels" . | nindent 4 }}
data:
  BLOSSOM_WELCOME: {{ .Values.try.blossomWelcome | quote }}
  CATASTROPHE_COMIC: {{ .Values.try.catastropheComic | quote }}
  CREST: {{ .Values.try.crest | quote }}
  ENTRANCE_RADIATOR: {{ .Values.try.entranceRadiator | quote }}
  HUMIDITY_HILL_COUNCILMAN: {{ .Values.try.humidityHillCouncilman | quote }}
  KEEP: {{ .Values.try.keep | quote }}
  MAX_ACCORDION: {{ .Values.try.maxAccordion | quote }}
  NEONATE_MAYOR_PRESENT: {{ .Values.try.neonateMayorPresent | quote }}
  PARROT_PASTOR: {{ .Values.try.parrotPastor | quote }}
  WHINE_FILTH_GRANDDAUGHTER: {{ .Values.try.whineFilthGranddaughter | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "try.fullname" . }}-try
  labels:
  {{- include "try.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: try
spec:
  replicas: {{ .Values.try.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: try
      app.kubernetes.io/name: enjoyment
    {{- include "try.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: try
        app.kubernetes.io/name: enjoyment
      {{- include "try.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 35b0917786815853a3423ca4dc5fcc7af5609e677a0003eb03efda3cd44a9b8d
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "try.fullname" . }}-try
        image: {{ .Values.try.try.image.repository }}:{{ .Values.try.try.image.tag | default
          .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.try.try.imagePullPolicy }}
        name: try
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.try.try.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.try.try.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "try.fullname" . }}-try
  labels:
  {{- include "try.labels" . | nindent 4 }}
spec:
  type: {{ .Values.try.type }}
  selector:
    app.kubernetes.io/instance: try
    app.kubernetes.io/name: enjoyment
  {{- include "try.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.try.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
try:
  blossomWelcome: sleeping
  catastropheComic: ossified
  crest: abacus
  entranceRadiator: tinkle
  humidityHillCouncilman: gale
  keep: farming
  maxAccordion: ability
  neonateMayorPresent: ceramics
  parrotPastor: lawsuit
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  try:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  type: ClusterIP
  whineFilthGranddaughter: facility
