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
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: students-role-binding
|
name: students-role-binding
|
||||||
namespace: students
|
namespace: default
|
||||||
subjects:
|
subjects:
|
||||||
- kind: User
|
- kind: User
|
||||||
name: anna
|
name: anna
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
kind: Role
|
kind: Role
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
namespace: students
|
namespace: default
|
||||||
name: students
|
name: students
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: ["", "extensions", "apps"]
|
- apiGroups: ["", "extensions", "apps"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user