mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
9c4f05e883
Signed-off-by: ansalamdaniel <ansalam.daniel@infracloud.io> Signed-off-by: ansalamdaniel <ansalam.daniel@infracloud.io>
55 lines
932 B
YAML
55 lines
932 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: pod-without-emptydir-hostpath
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: pod-with-emptydir-hostpath
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx
|
|
volumes:
|
|
- name: demo-volume
|
|
emptyDir: {}
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: pod-with-emptydir-hostpath-1
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx
|
|
volumeMounts:
|
|
- mountPath: /cache
|
|
name: cache-volume
|
|
volumes:
|
|
- name: cache-volume
|
|
emptyDir:
|
|
sizeLimit: 500Mi
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: pod-without-emptydir-hostpath-1
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx
|
|
volumeMounts:
|
|
- name: config-vol
|
|
mountPath: /etc/config
|
|
volumes:
|
|
- name: config-vol
|
|
configMap:
|
|
name: log-config
|
|
items:
|
|
- key: log_level
|
|
path: log_level
|