From 15098b3b7e96938f25312d6121b14cc9242c5792 Mon Sep 17 00:00:00 2001 From: sandervanvugt Date: Wed, 30 Nov 2022 14:23:02 -0800 Subject: [PATCH] message --- nwp-lab11-1.yaml | 29 ----------------------------- nwp-lab11-2.yaml | 11 ----------- rolebindstudents.yaml | 2 +- students-role.yaml | 2 +- 4 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 nwp-lab11-1.yaml delete mode 100644 nwp-lab11-2.yaml diff --git a/nwp-lab11-1.yaml b/nwp-lab11-1.yaml deleted file mode 100644 index 0463740..0000000 --- a/nwp-lab11-1.yaml +++ /dev/null @@ -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" diff --git a/nwp-lab11-2.yaml b/nwp-lab11-2.yaml deleted file mode 100644 index 5d07a4e..0000000 --- a/nwp-lab11-2.yaml +++ /dev/null @@ -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: {} diff --git a/rolebindstudents.yaml b/rolebindstudents.yaml index 360b82c..109339d 100644 --- a/rolebindstudents.yaml +++ b/rolebindstudents.yaml @@ -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 diff --git a/students-role.yaml b/students-role.yaml index 1c2541e..b9c5fac 100644 --- a/students-role.yaml +++ b/students-role.yaml @@ -1,7 +1,7 @@ kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: - namespace: students + namespace: default name: students rules: - apiGroups: ["", "extensions", "apps"]