This commit is contained in:
sandervanvugt 2022-11-30 14:23:02 -08:00
parent 1a8e9eb146
commit 15098b3b7e
4 changed files with 2 additions and 42 deletions

View File

@ -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"

View File

@ -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: {}

View File

@ -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

View File

@ -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"]