Skip to content

Commit e990587

Browse files
committed
OSDOCS#12123: Describe the --render usage
1 parent 319791b commit e990587

File tree

3 files changed

+29
-18
lines changed

3 files changed

+29
-18
lines changed

_topic_maps/_topic_map.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ Topics:
24122412
File: hcp-sizing-guidance
24132413
- Name: Overriding resouce utilization measurements
24142414
File: hcp-override-resource-util
2415-
- Name: Installing the hosted control plane command line interface
2415+
- Name: Installing the hosted control plane command-line interface
24162416
File: hcp-cli
24172417
- Name: Distributing hosted cluster workloads
24182418
File: hcp-distribute-workloads

modules/advanced-node-tuning-hosted-cluster.adoc

+23-17
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,30 @@ The `.spec.recommend.match` field is intentionally left blank. In this case, thi
5050
+
5151
[source,terminal]
5252
----
53-
$ oc --kubeconfig="$MGMT_KUBECONFIG" create -f tuned-hugepages.yaml
53+
$ oc --kubeconfig="<management_cluster_kubeconfig>" create -f tuned-hugepages.yaml <1>
5454
----
55+
<1> Replace `<management_cluster_kubeconfig>` with the name of your management cluster `kubeconfig` file.
5556
5657
. Create a `NodePool` manifest YAML file, customize the upgrade type of the `NodePool`, and reference the `ConfigMap` object that you created in the `spec.tuningConfig` section. Create the `NodePool` manifest and save it in a file named `hugepages-nodepool.yaml` by using the `hcp` CLI:
5758
+
58-
[source,yaml]
59-
----
60-
NODEPOOL_NAME=hugepages-example
61-
INSTANCE_TYPE=m5.2xlarge
62-
NODEPOOL_REPLICAS=2
63-
64-
hcp create nodepool aws \
65-
--cluster-name $CLUSTER_NAME \
66-
--name $NODEPOOL_NAME \
67-
--node-count $NODEPOOL_REPLICAS \
68-
--instance-type $INSTANCE_TYPE \
69-
--render > hugepages-nodepool.yaml
59+
[source,terminal]
7060
----
61+
$ hcp create nodepool aws \
62+
--cluster-name <hosted_cluster_name> \// <1>
63+
--name <nodepool_name> \// <2>
64+
--node-count <nodepool_replicas> \// <3>
65+
--instance-type <instance_type> \// <4>
66+
--render > hugepages-nodepool.yaml
67+
----
68+
<1> Replace `<hosted_cluster_name>` with the name of your hosted cluster.
69+
<2> Replace `<nodepool_name>` with the name of your node pool.
70+
<3> Replace `<nodepool_replicas>` with the number of your node pool replicas, for example, `2`.
71+
<4> Replace `<instance_type>` with the instance type, for example, `m5.2xlarge`.
72+
+
73+
[NOTE]
74+
====
75+
The `--render` flag in the `hcp create` command does not render the secrets. To render the secrets, you must use both the `--render` and the `--render-sensitive` flags in the `hcp create` command.
76+
====
7177
7278
. In the `hugepages-nodepool.yaml` file, set `.spec.management.upgradeType` to `InPlace`, and set `.spec.tuningConfig` to reference the `tuned-hugepages` `ConfigMap` object that you created.
7379
+
@@ -97,7 +103,7 @@ To avoid the unnecessary re-creation of nodes when you apply the new `MachineCon
97103
+
98104
[source,terminal]
99105
----
100-
$ oc --kubeconfig="$MGMT_KUBECONFIG" create -f hugepages-nodepool.yaml
106+
$ oc --kubeconfig="<management_cluster_kubeconfig>" create -f hugepages-nodepool.yaml
101107
----
102108
103109
.Verification
@@ -108,7 +114,7 @@ After the nodes are available, the containerized TuneD daemon calculates the req
108114
+
109115
[source,terminal]
110116
----
111-
$ oc --kubeconfig="$HC_KUBECONFIG" get tuned.tuned.openshift.io -n openshift-cluster-node-tuning-operator
117+
$ oc --kubeconfig="<hosted_cluster_kubeconfig>" get tuned.tuned.openshift.io -n openshift-cluster-node-tuning-operator
112118
----
113119
+
114120
.Example output
@@ -124,7 +130,7 @@ rendered 123m
124130
+
125131
[source,terminal]
126132
----
127-
$ oc --kubeconfig="$HC_KUBECONFIG" get profile.tuned.openshift.io -n openshift-cluster-node-tuning-operator
133+
$ oc --kubeconfig="<hosted_cluster_kubeconfig>" get profile.tuned.openshift.io -n openshift-cluster-node-tuning-operator
128134
----
129135
+
130136
.Example output
@@ -143,7 +149,7 @@ Both of the worker nodes in the new `NodePool` have the `openshift-node-hugepage
143149
+
144150
[source,terminal]
145151
----
146-
$ oc --kubeconfig="$HC_KUBECONFIG" debug node/nodepool-1-worker-1 -- chroot /host cat /proc/cmdline
152+
$ oc --kubeconfig="<hosted_cluster_kubeconfig>" debug node/nodepool-1-worker-1 -- chroot /host cat /proc/cmdline
147153
----
148154
+
149155
.Example output

modules/restoring-etcd-snapshot-hosted-cluster.adoc

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ If you have a snapshot of etcd from your hosted cluster, you can restore it. Cur
1010

1111
To restore an etcd snapshot, you modify the output from the `create cluster --render` command and define a `restoreSnapshotURL` value in the etcd section of the `HostedCluster` specification.
1212

13+
[NOTE]
14+
====
15+
The `--render` flag in the `hcp create` command does not render the secrets. To render the secrets, you must use both the `--render` and the `--render-sensitive` flags in the `hcp create` command.
16+
====
17+
1318
.Prerequisites
1419

1520
You took an etcd snapshot on a hosted cluster.

0 commit comments

Comments
 (0)