k3s/hack/testdata/retainKeys/deployment/deployment-after.yaml

28 lines
456 B
YAML
Raw Normal View History

2018-12-19 16:17:46 +00:00
apiVersion: apps/v1
2017-08-08 03:14:14 +00:00
kind: Deployment
metadata:
name: test-deployment-retainkeys
2018-12-19 16:17:46 +00:00
labels:
app: nginx
2017-08-08 03:14:14 +00:00
spec:
strategy:
type: Recreate
replicas: 1
2018-12-19 16:17:46 +00:00
selector:
matchLabels:
app: nginx
2017-08-08 03:14:14 +00:00
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
volumes:
- name: test-volume
hostPath:
path: /data