Skip to content

Instantly share code, notes, and snippets.

@Toflar
Created October 23, 2018 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Toflar/b877c534f6bdf7ac4ee4b17898056092 to your computer and use it in GitHub Desktop.
Save Toflar/b877c534f6bdf7ac4ee4b17898056092 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.web.name }}
labels:
my-super-app: {{ .Values.web.name }}
spec:
replicas: 1
selector:
matchLabels:
my-super-app: {{ .Values.web.name }}
template:
metadata:
labels:
my-super-app: {{ .Values.web.name }}
spec:
imagePullSecrets:
- name: gitlab-registry
containers:
-
image: {{ .Values.web.image }}
imagePullPolicy: Always
name: {{ .Values.web.name }}
ports:
-
containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment