init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: pod-bad
|
||||
namespace: default
|
||||
# нет лейбла app — политика зафиксирует нарушение
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:1.25
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: pod-good
|
||||
namespace: default
|
||||
labels:
|
||||
app: my-application # лейбл присутствует — политика пропустит
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:1.25
|
||||
Reference in New Issue
Block a user