Skip to content

Instantly share code, notes, and snippets.

@djschny
Created October 2, 2017 20:13
Show Gist options
  • Save djschny/0bbb68fde64c92086d54735cc298116f to your computer and use it in GitHub Desktop.
Save djschny/0bbb68fde64c92086d54735cc298116f to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1
metadata:
name: nginx
labels:
app: nginx
spec:
selector:
app: nginx
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: nginx
spec:
replicas: 1
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.13.0
ports:
- containerPort: 80
initContainers:
- name: slowness
image: busybox
command: ['sh', '-c', 'echo "Sleeping 10 sceonds..." && sleep 20']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment