apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "nebulous-activemq.fullname" . }} labels: {{- include "nebulous-activemq.labels" . | nindent 4 }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} selector: matchLabels: {{- include "nebulous-activemq.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "nebulous-activemq.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "nebulous-activemq.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} env: {{- toYaml .Values.brokerEnv | nindent 12 }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: gui containerPort: 8161 protocol: TCP - name: activemq containerPort: 61616 protocol: TCP - name: amqp containerPort: 5672 protocol: TCP livenessProbe: tcpSocket: port: activemq periodSeconds: 10 readinessProbe: tcpSocket: port: activemq periodSeconds: 10 startupProbe: tcpSocket: port: activemq initialDelaySeconds: 10 periodSeconds: 10 failureThreshold: 6 resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}