List all the operators installed in an RHOCP4 cluster
Environment
- Red Hat OpenShift Container Platform ( RHOCP)
- 4
Issue
- Some
operatorsare provided during theinstallationbecause they are required byRHOCPto work. Furthermore, users can install additional ones. How to list both kind ofoperators?
Resolution
-
Commandto list theoperatorsinstalled by default in an Red HatOpenShift cluster:$ oc get clusteroperators.config.openshift.io NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE MESSAGE authentication 4.10.31 True False False 2d4h baremetal 4.10.31 True False False 59d cloud-controller-manager 4.10.31 True False False 59d cloud-credential 4.10.31 True False False 59d cluster-autoscaler 4.10.31 True False False 59d config-operator 4.10.31 True False False 59d console 4.10.31 True False False 2d4h csi-snapshot-controller 4.10.31 True False False 59d dns 4.10.31 True False False 59d etcd 4.10.31 True False False 59d image-registry 4.10.31 True False False 58d ingress 4.10.31 True False False 59d insights 4.10.31 True False False 59d kube-apiserver 4.10.31 True False False 59d kube-controller-manager 4.10.31 True False False 59d kube-scheduler 4.10.31 True False False 59d kube-storage-version-migrator 4.10.31 True False False 58d machine-api 4.10.31 True False False 59d machine-approver 4.10.31 True False False 59d machine-config 4.10.31 True False False 59d marketplace 4.10.31 True False False 59d monitoring 4.10.31 True False False 59d network 4.10.31 True False False 59d node-tuning 4.10.31 True False False 58d openshift-apiserver 4.10.31 True False False 39d openshift-controller-manager 4.10.31 True False False 28d openshift-samples 4.10.31 True False False 58d operator-lifecycle-manager 4.10.31 True False False 59d operator-lifecycle-manager-catalog 4.10.31 True False False 59d operator-lifecycle-manager-packageserver 4.10.31 True False False 59d service-ca 4.10.31 True False False 59d storage 4.10.31 True False False 59d -
Command to show the
operatorsinstalled by users:$ oc get subscriptions.operators.coreos.com --all-namespaces NAMESPACE NAME PACKAGE SOURCE CHANNEL nvidia-gpu-operator gpu-operator-certified gpu-operator-certified certified-operators stable rhacs-operator rhacs-operator rhacs-operator redhat-operators latest -
At the time when this is being written there is not any native
commandavailable to list all theoperatorsin a cluster, although aliases or scripts can be used to get that.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments