Guest User

Untitled

a guest
Feb 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: {{ include "pkg.fullname" . }}
  5. labels:
  6. app: {{ include "pkg.name" . }}
  7. chart: {{ include "pkg.chart" . }}
  8. release: {{ .Release.Name }}
  9. heritage: {{ .Release.Service }}
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. app: {{ include "pkg.fullname" . }}
  15. strategy:
  16. type: Recreate
  17. template:
  18. metadata:
  19. labels:
  20. app: {{ include "pkg.fullname" . }}
  21. spec:
  22. # so we pull from the gitlab private registry using the secret noted above
  23. imagePullSecrets:
  24. - name: gitlab-registry
  25. containers:
  26. - name: app
  27. image: {{ .Values.Image }}:{{ .Values.Tag }}
  28. ports:
  29. - containerPort: 8080
Add Comment
Please, Sign In to add comment