rollout.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apiVersion: argoproj.io/v1alpha1
  2. kind: Rollout
  3. metadata:
  4. name: {{ template "helm-guestbook.fullname" . }}
  5. labels:
  6. app: {{ template "helm-guestbook.name" . }}
  7. chart: {{ template "helm-guestbook.chart" . }}
  8. release: {{ .Release.Name }}
  9. heritage: {{ .Release.Service }}
  10. spec:
  11. replicas: {{ .Values.replicaCount }}
  12. revisionHistoryLimit: 3
  13. selector:
  14. matchLabels:
  15. app: {{ template "helm-guestbook.name" . }}
  16. release: {{ .Release.Name }}
  17. strategy:
  18. blueGreen:
  19. activeService: {{ template "helm-guestbook.fullname" . }}
  20. previewService: {{ template "helm-guestbook.fullname" . }}-preview
  21. template:
  22. metadata:
  23. labels:
  24. app: {{ template "helm-guestbook.name" . }}
  25. release: {{ .Release.Name }}
  26. spec:
  27. containers:
  28. - name: {{ .Chart.Name }}
  29. image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
  30. imagePullPolicy: {{ .Values.image.pullPolicy }}
  31. ports:
  32. - name: http
  33. containerPort: 80
  34. protocol: TCP
  35. livenessProbe:
  36. httpGet:
  37. path: /
  38. port: http
  39. readinessProbe:
  40. httpGet:
  41. path: /
  42. port: http
  43. resources:
  44. {{ toYaml .Values.resources | indent 12 }}
  45. {{- with .Values.nodeSelector }}
  46. nodeSelector:
  47. {{ toYaml . | indent 8 }}
  48. {{- end }}
  49. {{- with .Values.affinity }}
  50. affinity:
  51. {{ toYaml . | indent 8 }}
  52. {{- end }}
  53. {{- with .Values.tolerations }}
  54. tolerations:
  55. {{ toYaml . | indent 8 }}
  56. {{- end }}