message
This commit is contained in:
parent
1a8e9eb146
commit
15098b3b7e
@ -1,29 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nwp-nginx
|
||||
namespace: default
|
||||
labels:
|
||||
app: nwp-nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nwp-nginx
|
||||
image: nginx:1.17
|
||||
...
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nwp-busybox
|
||||
namespace: nwp-namespace
|
||||
labels:
|
||||
app: sleepy
|
||||
spec:
|
||||
containers:
|
||||
- name: nwp-busybox
|
||||
image: busybox
|
||||
command:
|
||||
- sleep
|
||||
- "3600"
|
||||
@ -1,11 +0,0 @@
|
||||
kind: NetworkPolicy
|
||||
apiVersion: networking.k8s.io/v1
|
||||
metadata:
|
||||
namespace: default
|
||||
name: deny-from-other-namespaces
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector: {}
|
||||
@ -2,7 +2,7 @@ kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: students-role-binding
|
||||
namespace: students
|
||||
namespace: default
|
||||
subjects:
|
||||
- kind: User
|
||||
name: anna
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
namespace: students
|
||||
namespace: default
|
||||
name: students
|
||||
rules:
|
||||
- apiGroups: ["", "extensions", "apps"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user