This repository hosts the Open Liberty Operator to be used in Kubernetes clusters.
Current image in Docker Hub: openliberty/operator:0.0.1
-
Fetch a Linux VM
-
Download and unpack oc client
- https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
tar -zxvf <tar.gz>- you get the
occlient andkubectlclient with this. You should add these into yourPATH
- you get the
-
Start OKD cluster (5-10 minutes):
oc cluster up --public-hostname=<hostNameorIP> --skip-registry-check=true- You should see some information about how to reach your Web Console, etc
oc login -u system:admin
-
Install Operator artifacts
git clone https://github.com/OpenLiberty/open-liberty-operator.gitcd open-liberty-operatorkubectl apply -f olm/open-liberty-crd.yamlkubectl apply -f deploy/operator_rbac.yamlkubectl apply -f deploy/operator_deployment.yaml
-
Install SCC
cd helm-charts/ibm-open-liberty/ibm_cloud_pak/pak_extensions/pre-install/clusterAdministration./createSecurityClusterPrereqs.shcd ../namespaceAdministration./createSecurityNamespacePrereqs.sh <namespace>
-
Test Operator with default CR
- cd back up to project root
kubectl apply -f deploy/full_cr.yaml
-
Bringing down the cluster:
oc cluster downrm -rf <oc/openshift.local.clusterup>- If you get an error about a busy device, reboot the VM, and re-run rm -rf