# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "send.fullname" . }}-send
  labels:
  {{- include "send.labels" . | nindent 4 }}
data:
  BAT_REFER: {{ .Values.send.batRefer | quote }}
  BREAK: {{ .Values.send.break | quote }}
  MAIDEN_DEPENDENT: {{ .Values.send.maidenDependent | quote }}
  MANNER_SPREE: {{ .Values.send.mannerSpree | quote }}
  NIECE_EVOCATION_FRUSTRATION: {{ .Values.send.nieceEvocationFrustration | quote
    }}
  PRICE: {{ .Values.send.price | quote }}
  READ: {{ .Values.send.read | quote }}
  SLEEP_ATELIER: {{ .Values.send.sleepAtelier | quote }}
  TANGIBLE: {{ .Values.send.tangible | quote }}
  WRATHFUL_PRETTY_INCANDESCENCE: {{ .Values.send.wrathfulPrettyIncandescence | quote
    }} # deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "send.fullname" . }}-send
  labels:
  {{- include "send.labels" . | nindent 4 }}
  annotations:
    kubectl.kubernetes.io/default-container: send
spec:
  replicas: {{ .Values.send.replicas }}
  selector:
    matchLabels:
      app.kubernetes.io/instance: send
      app.kubernetes.io/name: cousin
    {{- include "send.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: send
        app.kubernetes.io/name: cousin
      {{- include "send.selectorLabels" . | nindent 8 }}
      annotations:
        checksum/config: 19fe82e841ceeed2d469dd6e120090b607a94db9370f61c703606566bdc86df1
    spec:
      containers:
      - env:
        - name: KUBERNETES_CLUSTER_DOMAIN
          value: {{ quote .Values.kubernetesClusterDomain }}
        envFrom:
        - configMapRef:
            name: {{ include "send.fullname" . }}-send
        image: {{ .Values.send.send.image.repository }}:{{ .Values.send.send.image.tag
          | default .Chart.AppVersion }}
        imagePullPolicy: {{ .Values.send.send.imagePullPolicy }}
        name: send
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources: {{- toYaml .Values.send.send.resources | nindent 10 }}
        securityContext: {{- toYaml .Values.send.send.containerSecurityContext | nindent
          10 }}
      securityContext:
        fsGroup: 999 # service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ include "send.fullname" . }}-send
  labels:
  {{- include "send.labels" . | nindent 4 }}
spec:
  type: {{ .Values.send.type }}
  selector:
    app.kubernetes.io/instance: send
    app.kubernetes.io/name: cousin
  {{- include "send.selectorLabels" . | nindent 4 }}
  ports:
	{{- .Values.send.ports | toYaml | nindent 2 -}}
kubernetesClusterDomain: cluster.local
send:
  batRefer: pedal
  break: tune
  maidenDependent: boundless
  mannerSpree: blind
  nieceEvocationFrustration: macaroon
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
  price: bug
  read: ratio
  replicas: 1
  send:
    containerSecurityContext: {}
    image:
      repository: nginx
      tag: latest
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 200m
        memory: 200Mi
      requests:
        cpu: 200m
        memory: 200Mi
  sleepAtelier: domineering
  tangible: regret
  type: ClusterIP
  wrathfulPrettyIncandescence: lychee
