35e959df7b
* apps/v1beta1 is not valid Replacing it with extensions/v1beta1 which actually works * Add note for versions before 1.6.0
17 lines
325 B
YAML
17 lines
325 B
YAML
apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nginx-deployment
|
|
spec:
|
|
replicas: 3
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx:1.7.9
|
|
ports:
|
|
- containerPort: 80
|