In Progress
h4. Create a cluster level operator *WHERE*
* has cluster-scope * namespace = mobile-security-service * 1 instance
*Steps/Draft*
* To create the operator: (cluster level) {code:java} $ operator-sdk new mobile-security-service-operator --cluster-scoped {code}
* Creating docker image / just for now to test it. {code:java} $ operator-sdk build cmacedo/mobile-security-service-operator:v0.0.1 $ sed -i "" 's|REPLACE_IMAGE|cmacedo/mobile-security-service-operator:v0.0.1|g' deploy/operator.yaml # replace name space $ sed -i "" "s|REPLACE_NAMESPACE|$OPERATOR_NAMESPACE|g" deploy/role_binding.yaml $ docker push cmacedo/mobile-security-service-operator:v0.0.1 {code}
* Deploy Locally
* Registering the CRD Operator
{code:java} kubectl create -f deploy/crds/mobile-security-service_v1alpha1_mobilesecurityservice_crd.yaml {code}
{code:java} $ kubectl create -f deploy/role.yaml $ kubectl create -f deploy/role_binding.yaml $ kubectl create -f deploy/service_account.yaml $ kubectl create -f deploy/operator.yaml {code}
|
|