-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Telcodocs 2124: Ensure NUMA Resources Operator Works on HyperShift Hosted Clusters #91162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kquinn1204
wants to merge
1
commit into
openshift:main
Choose a base branch
from
kquinn1204:TELCODOCS-2124
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// *scalability_and_performance/cnf-numa-aware-scheduling.adoc | ||
|
||
:_mod-docs-content-type: PROCEDURE | ||
kquinn1204 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[id="cnf-creating-nrop-cr-hosted-control-plane_{context}"] | ||
= Creating the NUMAResourcesOperator custom resource for {hcp} | ||
|
||
After you install the NUMA Resources Operator, create the `NUMAResourcesOperator` custom resource (CR) that instructs the NUMA Resources Operator to install all the cluster infrastructure needed to support the NUMA-aware scheduler on {hcp}, including daemon sets and APIs. | ||
|
||
-- | ||
:FeatureName: Creating the NUMAResourcesOperator custom resource for {hcp} | ||
include::snippets/technology-preview.adoc[] | ||
-- | ||
|
||
.Prerequisites | ||
|
||
* Install the OpenShift CLI (`oc`). | ||
* Log in as a user with `cluster-admin` privileges. | ||
* Install the NUMA Resources Operator. | ||
kquinn1204 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.Procedure | ||
|
||
. Export the management cluster kubeconfig file by running the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ export KUBECONFIG=</path/to/management-cluster-kubeconfig> | ||
---- | ||
|
||
. Find the `node-pool-name` for your cluster by running the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc --kubeconfig="$MGMT_KUBECONFIG" get np -A | ||
---- | ||
+ | ||
.Example output | ||
[source,terminal] | ||
---- | ||
NAMESPACE NAME CLUSTER DESIRED NODES CURRENT NODES AUTOSCALING AUTOREPAIR VERSION UPDATINGVERSION UPDATINGCONFIG MESSAGE | ||
clusters democluster-us-east-1a democluster 1 1 False False 4.19.0 False False | ||
---- | ||
+ | ||
The `node-pool-name` is the `NAME` field in the output. In this example, the `node-pool-name` is `democluster-us-east-1a`. | ||
|
||
. Create the `NUMAResourcesOperator` custom resource by completing the following steps: | ||
|
||
.. Create a YAML file named `nrop-hcp.yaml`. At a minimum, the file should contain the following content:: | ||
+ | ||
[source,yaml] | ||
---- | ||
apiVersion: nodetopology.openshift.io/v1 | ||
kind: NUMAResourcesOperator | ||
metadata: | ||
name: numaresourcesoperator | ||
spec: | ||
nodeGroups: | ||
- poolName: democluster-us-east-1a <1> | ||
---- | ||
+ | ||
<1> The `poolName` is the `node-pool-name` retrieved in step 2. | ||
|
||
. On the management cluster, run the following command to list the available secrets: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get secrets -n clusters | ||
---- | ||
+ | ||
.Example output | ||
[source,terminal] | ||
---- | ||
NAME TYPE DATA AGE | ||
builder-dockercfg-25qpp kubernetes.io/dockercfg 1 128m | ||
default-dockercfg-mkvlz kubernetes.io/dockercfg 1 128m | ||
democluster-admin-kubeconfig Opaque 1 127m | ||
democluster-etcd-encryption-key Opaque 1 128m | ||
democluster-kubeadmin-password Opaque 1 126m | ||
democluster-pull-secret Opaque 1 128m | ||
deployer-dockercfg-8lfpd kubernetes.io/dockercfg 1 128m | ||
---- | ||
|
||
. Extract the `kubeconfig` file for the hosted cluster by running the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get secret <SECRET_NAME> -n clusters -o jsonpath='{.data.kubeconfig}' | base64 -d > hosted-cluster-kubeconfig | ||
---- | ||
+ | ||
.Example | ||
[source,terminal] | ||
---- | ||
$ oc get secret democluster-admin-kubeconfig -n clusters -o jsonpath='{.data.kubeconfig}' | base64 -d > hosted-cluster-kubeconfig | ||
---- | ||
|
||
. Export the hosted cluster `kubeconfig` file by running the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ export HC_KUBECONFIG=<path_to_hosted-cluster-kubeconfig> | ||
---- | ||
|
||
. Create the `NUMAResourcesOperator` CR by running the following command on the hosted cluster: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc create -f nrop-hcp.yaml | ||
---- | ||
|
||
.Verification | ||
|
||
. Verify that the NUMA Resources Operator deployed successfully by running the following command: | ||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get numaresourcesoperators.nodetopology.openshift.io | ||
---- | ||
+ | ||
.Example output | ||
[source,terminal] | ||
---- | ||
NAME AGE | ||
numaresourcesoperator 27s | ||
---- | ||
|
||
. After a few minutes, run the following command to verify that the required resources deployed successfully: | ||
kquinn1204 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
+ | ||
[source,terminal] | ||
---- | ||
$ oc get all -n openshift-numaresources | ||
---- | ||
+ | ||
.Example output | ||
[source,terminal] | ||
---- | ||
NAME READY STATUS RESTARTS AGE | ||
pod/numaresources-controller-manager-7d9d84c58d-qk2mr 1/1 Running 0 12m | ||
pod/numaresourcesoperator-democluster-7d96r 2/2 Running 0 97s | ||
pod/numaresourcesoperator-democluster-crsht 2/2 Running 0 97s | ||
pod/numaresourcesoperator-democluster-jp9mw 2/2 Running 0 97s | ||
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 [error] OpenShiftAsciiDoc.ModuleContainsContentType: Module is missing the '_mod-docs-content-type' variable.