about summary refs log blame commit diff
path: root/k8s/payload-processor/templates/deployment.yaml
blob: 2ffd225528744c6e4a70a5d0826768c8ff5e7cee (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                   
                                                    
         
                                                           
     
                                      

                
                                                                     






                                        
                                                                       




                                          



                                                            
                                                                         
                                                         

                                                        
              
                                

                           

                                          

                                            











                                      
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "payload-processor.fullname" . }}
  labels:
    {{- include "payload-processor.labels" . | nindent 4 }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      {{- include "payload-processor.selectorLabels" . | nindent 6 }}
  template:
    metadata:
      {{- with .Values.podAnnotations }}
      annotations:
        {{- toYaml . | nindent 8 }}
      {{- end }}
      labels:
        {{- include "payload-processor.selectorLabels" . | nindent 8 }}
    spec:
      {{- with .Values.imagePullSecrets }}
      imagePullSecrets:
        {{- toYaml . | nindent 8 }}
      {{- end }}
      securityContext:
        {{- toYaml .Values.podSecurityContext | nindent 8 }}
      containers:
        - name: {{ .Chart.Name }}
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          resources:
            {{- toYaml .Values.resources | nindent 12 }}
          env:
          - name: KAFKA_PASSWORD
            valueFrom:
              secretKeyRef:
                name: kafka-user-passwords
                key: client-passwords
          - name: DB_PASSWORD
            value: {{ .Values.db.password }}
      {{- with .Values.nodeSelector }}
      nodeSelector:
        {{- toYaml . | nindent 8 }}
      {{- end }}
      {{- with .Values.affinity }}
      affinity:
        {{- toYaml . | nindent 8 }}
      {{- end }}
      {{- with .Values.tolerations }}
      tolerations:
        {{- toYaml . | nindent 8 }}
      {{- end }}