Prepare RBAC setup
Prepare for ServiceAccount, role and rolebinding
-
Create a ServiceAccount for the targeted project/namespace with project admin rights used for KOBIL Shift operator and KOBIL Shift deployment (sample: ci-user) - and set this in the KOBIL Shift Operator metaconfig file.
create service account
kubectl apply -n <shift-namespace> -f <sa-shift-operator>.yaml
Prepare for role and rolebinding
-
Assign role and rolebinding to the SA used for deployment. Please make use of the KOBIL Shift-Operator Chart source
./templates/rbac.yaml(please download the KOBIL Shift-Operator Chart package) and edit (and template) as appropriate - then apply with project admin rights:apply role and rolebindings for SA
kubectl apply -n <shift-namespace> -f ./yourcode/rbac.yaml
Prepare for CRD servicegroups.shift.kobil.com
-
Create the CRD using KOBIL Shift-Operator Chart source
./crds/[shift.kobil.com](http://shift.kobil.com).yamlwith Cluster-Admin rights to the targeted cluster environment:create CRD for clustser
kubectl apply -f ./crds/shift.kobil.com.yaml