To manually deploy the Carbon Black Container Operator, perform the following procedure.
Prerequisites
Your cluster must be running Kubernetes 1.18+.
Procedure
- ♦ You can initiate the Operator deployment in two ways:
- Script:
export OPERATOR_VERSION=v6.0.2 export OPERATOR_SCRIPT_URL=https://setup.containers.carbonblack.io/$OPERATOR_VERSION/operator-apply.sh curl -s $OPERATOR_SCRIPT_URL | bash
{OPERATOR_VERSION}
is of the format"v{VERSION}"
. - Source code:
- Clone the GIT project and deploy the operator from the source code.
By default, the Operator uses
CustomResourceDefinitions
v1, which requires Kubernetes 1.16+. You can also deploy an Operator by usingCustomResourceDefinitions
v1beta1 (deprecated in Kubernetes 1.16, removed in Kubernetes 1.22). - Create the Operator image:
make docker-build docker-push IMG={IMAGE_NAME}
- Deploy the Operator resources:
make deploy IMG={IMAGE_NAME}
- Clone the GIT project and deploy the operator from the source code.
- Script: