Hive is published to OperatorHub weekly and this is the best method to install and use Hive if you do not need to build from source.
- Create a
hivenamespace,$ oc new-project hive - Install the Hive Operator:
- In the OpenShift web console, navigate to Administrator perspective > Operators > OperatorHub.
- Search for “hive” and select the "Hive for Red Hat OpenShift" operator and click Install.
- Select the “alpha” update channel, install to a specific namespace (select the “hive” namespace previously created), approval strategy: automatic, and press Install.
- You should now have a hive-operator pod running in the hive namespace.
- Create a
HiveConfigto trigger the actual deployment of Hive.-
Create a
hive_config.yamlfile with the following content:apiVersion: hive.openshift.io/v1 kind: HiveConfig metadata: name: hive spec: logLevel: debug targetNamespace: hive
-
Apply
hive_config.yaml,$ oc apply -f hive_config.yaml
-
The hive-operator pod should now deploy the remaining components (hive-controllers, hive-clustersync, hiveadmission), and once running Hive is now ready to begin accepting ClusterDeployments.
Run: $ oc get pods -n hive
Sample output:
$ oc get pods -n hive
hive-clustersync-0 1/1 Running 0 34s
hive-controllers-5d67988cc8-97r5p 1/1 Running 0 35s
hive-machinepool-0 1/1 Running 0 34s
hive-operator-5c7fdd6df8-jrxvt 1/1 Running 0 3m30s
hiveadmission-5bf565bd7-nqq9h 1/1 Running 0 32s
hiveadmission-5bf565bd7-tkf4c 1/1 Running 0 32sProvision an OpenShift cluster using Hive. For details refer using Hive documentation.