feat: longhorn PSA namespace

This commit is contained in:
2024-08-06 17:21:50 +08:00
parent f2fc0f64b3
commit 3da059216c
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -57,6 +57,8 @@ documentation:
https://cert-manager.io/docs/usage/ingress/
https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/rancher-v2-8-5/
```bash
kubectl get pods --namespace cert-manager
kubectl create namespace cattle-system
@@ -95,6 +97,7 @@ kubectl get svc -n cattle-system
# k delete -f https://raw.githubusercontent.com/longhorn/longhorn/v1.6.2/deploy/longhorn.yaml
helm repo add longhorn https://charts.longhorn.io
helm repo update
k apply -f longhorn.yaml
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace --version 1.6.2
kubectl get pods \
--namespace longhorn-system \
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
labels:
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/enforce-version: latest
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/audit-version: latest
pod-security.kubernetes.io/warn: privileged
pod-security.kubernetes.io/warn-version: latest