# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "please.fullname" . }}-please
  labels:
  {{- include "please.labels" . | nindent 4 }}
data:
  CLAN_ARMY_TV: {{ .Values.please.clanArmyTv | quote }}
  CORK_WET_GENERATION: {{ .Values.please.corkWetGeneration | quote }}
  CRANBERRY_NUTRIENT: {{ .Values.please.cranberryNutrient | quote }}
  GHOST: {{ .Values.please.ghost | quote }}
  INSPIRE: {{ .Values.please.inspire | quote }}
  MASTOID_PROPORTION: {{ .Values.please.mastoidProportion | quote }}
  POETRY: {{ .Values.please.poetry | quote }}
  TRAVEL_SENTENCING: {{ .Values.please.travelSentencing | quote }}
  WATERWHEEL_ALLIANCE: {{ .Values.please.waterwheelAlliance | quote }}
  YIN_ROOSTER: {{ .Values.please.yinRooster | quote }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "please.fullname" . }}-please
  labels:
  {{- include "please.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: please
spec:
  replicas: {{ .Values.please.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: please
      app.kubernetes.io/name: cleat
    {{- include "please.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: please
        app.kubernetes.io/name: cleat
      {{- include "please.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 0fa7ef31a4a846fb7b6de0337b0a666a1d94ef8b025c1a98885d913db30102ce
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "please.fullname" . }}-please
        image: {{ .Values.please.please.image.repository }}:{{ .Values.please.please.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.please.please.imagePullPolicy }}
        name: please
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.please.please.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.please.please.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "please.fullname" . }}-please
  labels:
  {{- include "please.labels" . | nindent 4 }}
spec:
  type: {{ .Values.please.type }}
  selector:
    app.kubernetes.io/instance: please
    app.kubernetes.io/name: cleat
  {{- include "please.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.please.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
please:
  clanArmyTv: privacy
  corkWetGeneration: maker
  cranberryNutrient: fascinated
  ghost: traveler
  inspire: loggia
  mastoidProportion: pollutant
  please:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  poetry: croissant
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  replicas: 1
  travelSentencing: merciful
  type: ClusterIP
  waterwheelAlliance: acquaintance
  yinRooster: infancy
