From fac98b58aee10307ea8b684314759fef2ef94983 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 22 Sep 2024 05:15:16 +0100 Subject: [PATCH] now?!?!? --- infrastructure/kube-sphere/installer.yaml | 10 ---------- infrastructure/kube-sphere/kustomization.yaml | 1 + infrastructure/kube-sphere/namespace.yaml | 13 +++++++++++++ 3 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 infrastructure/kube-sphere/namespace.yaml diff --git a/infrastructure/kube-sphere/installer.yaml b/infrastructure/kube-sphere/installer.yaml index e355d4c..d0cf9e9 100644 --- a/infrastructure/kube-sphere/installer.yaml +++ b/infrastructure/kube-sphere/installer.yaml @@ -27,16 +27,6 @@ spec: shortNames: - cc ---- -apiVersion: v1 -kind: Namespace -metadata: - name: kubesphere-system - annotations: - pod-security.kubernetes.io/enforce: privileged - pod-security.kubernetes.io/audit: privileged - pod-security.kubernetes.io/warn: privileged - --- apiVersion: v1 kind: ServiceAccount diff --git a/infrastructure/kube-sphere/kustomization.yaml b/infrastructure/kube-sphere/kustomization.yaml index 13383a8..5f50469 100644 --- a/infrastructure/kube-sphere/kustomization.yaml +++ b/infrastructure/kube-sphere/kustomization.yaml @@ -3,5 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: kubesphere-system resources: + - namespace.yaml - config.yaml - installer.yaml diff --git a/infrastructure/kube-sphere/namespace.yaml b/infrastructure/kube-sphere/namespace.yaml new file mode 100644 index 0000000..6c5bcac --- /dev/null +++ b/infrastructure/kube-sphere/namespace.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: kubesphere-system + labels: + pod-security.kubernetes.io/audit: privileged + pod-security.kubernetes.io/warn: privileged + pod-security.kubernetes.io/enforce: privileged + annotations: + pod-security.kubernetes.io/enforce: privileged + pod-security.kubernetes.io/audit: privileged + pod-security.kubernetes.io/warn: privileged