Skip to content

Instantly share code, notes, and snippets.

@Depado
Created July 19, 2018 15:21
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 Depado/c5dfd2ee8b3bd0759aaebe212d13df23 to your computer and use it in GitHub Desktop.
Save Depado/c5dfd2ee8b3bd0759aaebe212d13df23 to your computer and use it in GitHub Desktop.
# Source: dummy/templates/deployment.yaml
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: staging-dummy
labels:
app: dummy
chart: dummy-0.1.0
release: staging
heritage: Tiller
spec:
replicas: 1
selector:
matchLabels:
app: dummy
release: staging
template:
metadata:
labels:
app: dummy
release: staging
spec:
containers:
- name: dummy
image: "gcr.io/project-id/dummy:latest"
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /health
port: http
readinessProbe:
httpGet:
path: /health
port: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment