OpenShift Operator - Create Cluster Scope Objects
Manually Create Cluster Scope Objects
The step of manually creating Cluster Scope Objects is not required. The vFunction OpenShift Operator Installation Script will try to create these Objects automatically if it has enough permission. Applying these Objects requires Cluster-Admin permission, however, and in many restricted environments this is disabled.
In restricted environments, the Objects will need to be manually deployed by a Cluster-Admin account. These Objects define the new OpenShift entity “VfunctionServer”, which the operator listens to as its configuration.
- Download the vFunction OpenShift Operator Installation TGZ
- Move the Installation TGZ to a Linux VM with oc and access to the OpenShift cluster
- SSH to the Linux VM
-
Unpack the TGZ
### Replace VERSION with the actual package version
tar xvf vfunction-server-installation-openshift.vVERSION.tgz -
Apply the Cluster Role Definitions
oc apply -f vfunction-server-for-openshift/manifests/01_crd.yaml -
Apply the Cluster Roles
oc apply -f vfunction-server-for-openshift/manifests/07_cluster-role.yaml -
Modify the Cluster Role Bindings Manifest to refer to the Namespace you will use for the vFunction Operator and Operand
### The default namespace listed here is, "vfunction". Modify this if desired
### Replace DESIRED_NAMESPACE below with the desired Namespace
sed -i 's~namespace: vfunction~namespace: DESIRED_NAMESPACE~g' vfunction-server-for-openshift/manifests/08_cluster-role-binding.yaml -
Apply the Cluster Role Bindings
oc apply -f vfunction-server-for-openshift/manifests/08_cluster-role-binding.yaml