mirror of https://github.com/k3s-io/k3s
23 lines
396 B
YAML
23 lines
396 B
YAML
|
apiVersion: extensions/v1beta1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: test-deployment-retainkeys
|
||
|
spec:
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: nginx
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: nginx
|
||
|
image: nginx
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
volumes:
|
||
|
- name: test-volume
|
||
|
hostPath:
|
||
|
path: /data
|