소스 검색

Update talos/prod/setup.sh

Breandan Dezendorf 1 년 전
부모
커밋
445bf5b5a1
1개의 변경된 파일13개의 추가작업 그리고 2개의 파일을 삭제
  1. 13 2
      dezendorf/homelab/talos/prod/setup.sh

+ 13 - 2
dezendorf/homelab/talos/prod/setup.sh

@@ -1,2 +1,13 @@
-kubectl create ns rook-ceph
-kubectl create -n rook-ceph -f operator.yaml -f cluster.yaml
+#!/bin/bash
+#
+# Some things don't work if the namespace isn't set to rook-ceph
+NS="rook-ceph"
+
+
+kubectl create ns ${NS}
+
+kubectl label ns ${NS} pod-security.kubernetes.io/enforce=privileged
+kubectl label ns default pod-security.kubernetes.io/enforce=privileged
+
+kubectl create -n ${NS} -f operator.yaml -f cluster.yaml
+