Created
October 2, 2017 20:13
-
-
Save djschny/0bbb68fde64c92086d54735cc298116f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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