Created
March 10, 2020 21:28
-
-
Save fabripautasso/d650410cececab7d348871555d9b38a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ include "node-starter.fullname" . }} | |
labels: | |
{{- include "node-starter.labels" . | nindent 4 }} | |
spec: | |
replicas: {{ .Values.replicaCount }} | |
selector: | |
matchLabels: | |
{{- include "node-starter.selectorLabels" . | nindent 6 }} | |
template: | |
metadata: | |
labels: | |
{{- include "node-starter.selectorLabels" . | nindent 8 }} | |
spec: | |
{{- with .Values.imagePullSecrets }} | |
imagePullSecrets: | |
{{- toYaml . | nindent 8 }} | |
{{- end }} | |
serviceAccountName: {{ include "node-starter.serviceAccountName" . }} | |
securityContext: | |
{{- toYaml .Values.podSecurityContext | nindent 8 }} | |
containers: | |
- name: {{ .Chart.Name }} | |
securityContext: | |
{{- toYaml .Values.securityContext | nindent 12 }} | |
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | |
imagePullPolicy: {{ .Values.image.pullPolicy }} | |
ports: | |
- name: http | |
containerPort: 3030 | |
protocol: TCP | |
livenessProbe: | |
httpGet: | |
path: /api-docs/ | |
port: http | |
readinessProbe: | |
httpGet: | |
path: /api-docs/ | |
port: http | |
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 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment