Skip to content

[OSDOCS-19523]: Setting up a management cluster for HCP on Azure#112346

Open
lahinson wants to merge 1 commit into
openshift:mainfrom
lahinson:osdocs-19523-hcp-azure-mgmt-cluster
Open

[OSDOCS-19523]: Setting up a management cluster for HCP on Azure#112346
lahinson wants to merge 1 commit into
openshift:mainfrom
lahinson:osdocs-19523-hcp-azure-mgmt-cluster

Conversation

@lahinson

@lahinson lahinson commented May 27, 2026

Copy link
Copy Markdown
Contributor

Version(s): 4.22+

Issue: https://redhat.atlassian.net/browse/OSDOCS-19523

Link to docs preview: https://112346--ocpdocs-pr.netlify.app/openshift-enterprise/latest/hosted_control_planes/hcp-deploy/hcp-deploy-azure.html#hcp-azure-mgmt-cluster_hcp-deploy-azure

QE review:

  • SME has approved this change. (Bryan)
  • QE has approved this change. (Alessandro)

Additional information:

@openshift-ci openshift-ci Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 27, 2026
@ocpdocs-previewbot

ocpdocs-previewbot commented May 27, 2026

Copy link
Copy Markdown

@lahinson lahinson force-pushed the osdocs-19523-hcp-azure-mgmt-cluster branch from 60d1b62 to f6205ee Compare May 28, 2026 13:27
@openshift-ci openshift-ci Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 28, 2026
@lahinson lahinson force-pushed the osdocs-19523-hcp-azure-mgmt-cluster branch from f6205ee to c1f7f63 Compare May 28, 2026 19:38
@openshift-ci openshift-ci Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 28, 2026
Comment thread modules/hcp-azure-mgmt-cluster.adoc
Comment thread modules/hcp-azure-mgmt-private-cluster.adoc Outdated
@lahinson lahinson force-pushed the osdocs-19523-hcp-azure-mgmt-cluster branch from c1f7f63 to c48e073 Compare May 28, 2026 19:59
@lahinson lahinson added this to the Planned for 4.22 GA milestone May 28, 2026
.. Create an array of name servers as shown in the following example:
+
[source,terminal]
----

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryan-cox @Nirshal I thought the code on lines 76 - 79 looked a little unusual, so I searched the openshift-docs repo, and I don't see any other examples where we define an array like that in the official docs. Is there another way to create an array?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know... I was following the upstream doc on that, it seemed a reasonable approach at the time. I think we need to wait for Bryan on that.

.. Add NS records to the parent zone as shown in the following example:
+
[source,terminal]
----

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to my earlier comment, the code on lines 86 - 92 looks unconventional for the official docs. Suggestions for alternatives are appreciated.

Comment thread modules/hcp-azure-mgmt-cluster.adoc Outdated
@lahinson lahinson force-pushed the osdocs-19523-hcp-azure-mgmt-cluster branch 2 times, most recently from 4e236a3 to b6e8ec7 Compare June 1, 2026 17:28
Comment thread hosted_control_planes/hcp-deploy/hcp-deploy-azure.adoc Outdated
Comment thread hosted_control_planes/hcp-deploy/hcp-deploy-azure.adoc Outdated
Comment thread modules/hcp-azure-mgmt-cluster.adoc
@lahinson lahinson force-pushed the osdocs-19523-hcp-azure-mgmt-cluster branch from b6e8ec7 to 0ffa8aa Compare June 1, 2026 17:46
Comment thread modules/hcp-azure-mgmt-cluster.adoc Outdated
Comment thread modules/hcp-azure-mgmt-cluster.adoc
@lahinson lahinson force-pushed the osdocs-19523-hcp-azure-mgmt-cluster branch 2 times, most recently from b593de4 to 9a3c574 Compare June 2, 2026 19:27
DNS_RECORD_NAME="<my_subdomain>"
RESOURCE_GROUP_NAME="<my_resource_group>"
DNS_ZONE_NAME="<my_subdomain.my_parent.dns.zone.com>"
----

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The user should be made aware that if --external-dns-domain matches {cluster-name}.{base-domain}, the CPO creates a private DNS zone that shadows the cluster domain, causing *.apps DNS resolution to fail (console and ingress become unavailable). See hypershift#8480 for details.

@bryan-cox do you think it's worth adding a caveat here about DNS zone naming to help users avoid this condition? Or is this better covered in the private clusters doc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I plan to add the private clusters procedures in a separate PR, so that caveat will be covered there. If you'd like me to to mention it here, too, let me know.

Comment thread modules/hcp-azure-mgmt-cluster.adoc
NAME READY STATUS RESTARTS AGE
external-dns-xxxxx-xxxxx 1/1 Running 0 1m
operator-xxxxx-xxxxx 1/1 Running 0 1m
----

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The procedure creates the K8s secret but there doesn't seem to be a step that configures the HyperShift Operator to actually use external DNS. When I set up external DNS via MCE for ACM-30209 testing, I had to apply a ConfigMap to pass the install flags to the operator:

apiVersion: v1
kind: ConfigMap
metadata:
  name: hypershift-operator-install-flags
  namespace: local-cluster
data:
  installFlagsToAdd: "--external-dns-provider=azure --external-dns-credentials <secret> --external-dns-domain-filter <dns-zone>"
  installFlagsToRemove: ""

Without this, I suspect the HO wouldn't pick up the external DNS configuration and the external-dns pod from the verification step wouldn't be running. @bryan-cox can you confirm?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait for Bryan's confirmation, but I have no problem adding those details if they are needed.

Comment thread modules/hcp-azure-mgmt-cluster.adoc
Comment thread modules/hcp-azure-mgmt-cluster.adoc
Comment thread modules/hcp-azure-mgmt-cluster.adoc
Comment thread modules/hcp-azure-mgmt-cluster.adoc
@Nirshal

Nirshal commented Jun 5, 2026

Copy link
Copy Markdown

The upstream HyperShift docs (hypershift#8566) treat external DNS as optional. It might help to clarify upfront whether this entire procedure can be skipped if the user doesn't need external DNS, or if it's considered the recommended path for self-managed Azure.

@lahinson

lahinson commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

The upstream HyperShift docs (openshift/hypershift#8566) treat external DNS as optional. It might help to clarify upfront whether this entire procedure can be skipped if the user doesn't need external DNS, or if it's considered the recommended path for self-managed Azure.

Good point, @Nirshal. For the downstream docs, I think the assumption is that users are working in production environments, so we want to suggest that external DNS is the recommended path.

@bryan-cox keep me honest if that's incorrect :)

@lahinson lahinson force-pushed the osdocs-19523-hcp-azure-mgmt-cluster branch from 9a3c574 to 0ff2c44 Compare June 5, 2026 17:37
@openshift-ci

openshift-ci Bot commented Jun 5, 2026

Copy link
Copy Markdown

@lahinson: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@jeana-redhat

Copy link
Copy Markdown
Contributor

The branch/enterprise-5.0 label has been added to this PR.

This is because your PR targets the main branch and is labeled for branch/enterprise-4.22. And any PR going into main must also target the latest version branch (branch/enterprise-5.0).

If the update in your PR does NOT apply to version 5.0 onward, please re-target this PR to go directly into the appropriate enterprise- version branch or branches instead of main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch/enterprise-4.22 branch/enterprise-5.0 size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants