{"id":126,"date":"2024-03-20T11:29:52","date_gmt":"2024-03-20T03:29:52","guid":{"rendered":"https:\/\/blog.bijiafeng.com\/?p=126"},"modified":"2024-03-20T11:30:05","modified_gmt":"2024-03-20T03:30:05","slug":"adding-worker-nodes-to-openshift-clusters","status":"publish","type":"post","link":"https:\/\/blog.bijiafeng.com\/?p=126","title":{"rendered":"Adding worker nodes to OpenShift clusters"},"content":{"rendered":"\n<p>Confirm that the cluster recognizes the machines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oc get nodes<\/code><\/pre>\n\n\n\n<p>Review the pending CSRs and ensure that you see the client requests with the Pending or Approved status for each machine that you added to the cluster:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oc get csr<\/code><\/pre>\n\n\n\n<p>To approve them individually, run the following command for each valid CSR:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oc adm certificate approve &lt;csr_name><\/code><\/pre>\n\n\n\n<p>Now that your client requests are approved, you must review the server requests for each machine that you added to the cluster:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oc get csr<\/code><\/pre>\n\n\n\n<p>If the remaining CSRs are not approved, and are in the\u00a0<code>Pending<\/code>\u00a0status, approve the CSRs for your cluster machines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oc adm certificate approve &lt;csr_name>\n\n# <em>To approve all pending CSRs, run the following command:<\/em>\noc get csr -o go-template='{{range .items}}{{if not .status}}{{.metadata.name}}{{\"\\n\"}}{{end}}{{end}}' | xargs oc adm certificate approve<\/code><\/pre>\n\n\n\n<p>After all client and server CSRs have been approved, the machines have the\u00a0<code>Ready<\/code>\u00a0status. Verify this by running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oc get nodes<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/docs.openshift.com\/container-platform\/4.15\/nodes\/nodes\/nodes-sno-worker-nodes.html\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Confirm that the cluster recognizes the machines: Review the pending CSRs and ensure that you see the client requests with the Pending or Approved status for each machine that you added to the cluster: To approve them individually, run the following command for each valid CSR: Now that your client requests are approved, you must [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-openshift"],"_links":{"self":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=126"}],"version-history":[{"count":1,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}