Skip to content

Instantly share code, notes, and snippets.

@honza
Last active March 4, 2019 13:47
Show Gist options
  • Select an option

  • Save honza/71f90da550f7cbc650f51bdf2fd9eebe to your computer and use it in GitHub Desktop.

Select an option

Save honza/71f90da550f7cbc650f51bdf2fd9eebe to your computer and use it in GitHub Desktop.
git clone https://github.com/openshift/machine-api-operator.git
cd machine-api-operator/
oc --as system:admin apply -f install/0000_30_machine-api-operator_00_namespace.yaml
oc --as system:admin apply -f install/0000_30_machine-api-operator_01_images.configmap.yaml
oc --as system:admin apply -f install/0000_30_machine-api-operator_02_machine.crd.yaml
oc --as system:admin apply -f install/0000_30_machine-api-operator_03_machineset.crd.yaml
oc --as system:admin apply -f install/0000_30_machine-api-operator_04_machinedeployment.crd.yaml
oc --as system:admin apply -f install/0000_30_machine-api-operator_05_cluster.crd.yaml
oc --as system:admin apply -f install/0000_30_machine-api-operator_06_machineclass.crd.yaml
@jtomasek

jtomasek commented Mar 4, 2019

Copy link
Copy Markdown

Note that machines and machine sets were moved to their own 'Machines' subsection. However, enabling the whole Machines section also requires machine-config-operator to be setup. Following steps fail on last one as I believe it requires 'clusteroperators' endpoint which is not available in openshift < 4 (?) (error: unable to recognize "install/0000_30_machine-config-operator_06_clusteroperator.yaml": no matches for kind "ClusterOperator" in version "config.openshift.io/v1")

git clone https://github.com/openshift/machine-config-operator.git
cd machine-config-operator/
oc --as system:admin apply -f install/0000_30_machine-config-operator_00_namespace.yaml
oc --as system:admin apply -f install/0000_30_machine-config-operator_01_mcoconfig.crd.yaml
oc --as system:admin apply -f install/0000_30_machine-config-operator_02_images.configmap.yaml
oc --as system:admin apply -f install/0000_30_machine-config-operator_03_rbac.yaml
oc --as system:admin apply -f install/0000_30_machine-config-operator_04_deployment.yaml
oc --as system:admin apply -f install/0000_30_machine-config-operator_05_osimageurl.yaml
oc --as system:admin apply -f install/0000_30_machine-config-operator_06_clusteroperator.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment