1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/cluster-resources.adoc
2025-02-10 21:35:52 +00:00

46 lines
1.4 KiB
Plaintext

:_mod-docs-content-type: PROCEDURE
[id="support-cluster-resources_{context}"]
= Interacting with your cluster resources
You can interact with cluster resources by using the OpenShift CLI (`oc`) tool in {product-title}. The cluster resources that you see after running the `oc api-resources` command can be edited.
.Prerequisites
ifndef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
* You have access to the cluster as a user with the `cluster-admin` role.
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
* You have access to the cluster as a user with the `dedicated-admin` role.
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
* You have access to the web console or you have installed the `oc` CLI tool.
.Procedure
. To see which configuration Operators have been applied, run the following command:
+
[source,terminal]
----
$ oc api-resources -o name | grep config.openshift.io
----
. To see what cluster resources you can configure, run the following command:
+
[source,terminal]
----
$ oc explain <resource_name>.config.openshift.io
----
. To see the configuration of custom resource definition (CRD) objects in the cluster, run the following command:
+
[source,terminal]
----
$ oc get <resource_name>.config -o yaml
----
. To edit the cluster resource configuration, run the following command:
+
[source,terminal]
----
$ oc edit <resource_name>.config -o yaml
----