# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "limitation.fullname" . }}-limitation
  labels:
  {{- include "limitation.labels" . | nindent 4 }}
data:
  COAST: {{ .Values.limitation.coast | quote }}
  DUFFEL_AROMATIC_GASTROPOD: {{ .Values.limitation.duffelAromaticGastropod | quote
    }}
  EXPENSE_FLEXIBILITY: {{ .Values.limitation.expenseFlexibility | quote }}
  FAUCET: {{ .Values.limitation.faucet | quote }}
  HASHTAG: {{ .Values.limitation.hashtag | quote }}
  HOG_MYCOPLASMA_NOTE: {{ .Values.limitation.hogMycoplasmaNote | quote }}
  PATINA_ROMAINE_ACCOMPLISH: {{ .Values.limitation.patinaRomaineAccomplish | quote
    }}
  PRECIPITATION: {{ .Values.limitation.precipitation | quote }}
  SEAFOOD_DIG: {{ .Values.limitation.seafoodDig | quote }}
  STUPIDITY_NUTTY: {{ .Values.limitation.stupidityNutty | quote }}
  TIGER: {{ .Values.limitation.tiger | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "limitation.fullname" . }}-limitation
  labels:
  {{- include "limitation.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: limitation
spec:
  replicas: {{ .Values.limitation.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: limitation
      app.kubernetes.io/name: leather
    {{- include "limitation.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: limitation
        app.kubernetes.io/name: leather
      {{- include "limitation.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 5a2d97f297258c278d6b3a965974f473f214a23536b388ed89318be1b14dc3de
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "limitation.fullname" . }}-limitation
        image: {{ .Values.limitation.limitation.image.repository }}:{{ .Values.limitation.limitation.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.limitation.limitation.imagePullPolicy }}
        name: limitation
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.limitation.limitation.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.limitation.limitation.containerSecurityContext
          | nindent 10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "limitation.fullname" . }}-limitation
  labels:
  {{- include "limitation.labels" . | nindent 4 }}
spec:
  type: {{ .Values.limitation.type }}
  selector:
    app.kubernetes.io/instance: limitation
    app.kubernetes.io/name: leather
  {{- include "limitation.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.limitation.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
limitation:
  coast: nexus
  duffelAromaticGastropod: storey
  expenseFlexibility: anxiety
  faucet: god
  hashtag: proximity
  hogMycoplasmaNote: strip
  limitation:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  patinaRomaineAccomplish: wait
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  precipitation: jumbo
  replicas: 1
  seafoodDig: dissect
  stupidityNutty: trick
  tiger: silky
  type: ClusterIP
