#!/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

sleep 15

kubectl create serviceaccount -n rook-ceph rook-ceph-default

