Skip to content

Commit f32e635

Browse files
Merge pull request #293331 from rcheeran/2025_01_21
add steps to retrive SAN
2 parents c3b4e44 + 7963494 commit f32e635

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

articles/operator-nexus/howto-kubernetes-cluster-connect.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: dramasamy
55
ms.author: dramasamy
66
ms.service: azure-operator-nexus
77
ms.topic: how-to
8-
ms.date: 08/17/2023
8+
ms.date: 01/21/2025
99
ms.custom: template-how-to-pattern, devx-track-azurecli
1010
---
1111

@@ -120,6 +120,7 @@ Establish direct access to the cluster's CNI (Container Network Interface) from
120120

121121
Reach out to your network administrator to set up this direct connection to the cluster's CNI network.
122122
123+
123124
## IP address of the cluster nodes
124125
125126
Before you can connect to the cluster nodes, you need to find the IP address of the nodes. The IP address of the nodes can be found using the Azure portal or the Azure CLI.
@@ -183,6 +184,16 @@ To find the IP address of the VM for SSH, follow these steps:
183184

184185
:::image type="content" source="media/nexus-kubernetes/control-plane-network-attachment.png" lightbox="media/nexus-kubernetes/control-plane-network-attachment.png" alt-text="Screenshot of browsing Nexus Kubernetes cluster node networks.":::
185186

187+
## Retrieve the Subject Alternative Name (SAN) for the cluster
188+
189+
Run the following commands to retrieve the list of Subject Alternative Names (SAN) accepted by the Kubernetes API server certificate. First, access the control plane node either [using Azure Arc for servers](#access-to-cluster-nodes-via-azure-arc-for-servers) or using the [interactive shell using IP address](#create-an-interactive-shell-connection-to-a-node-using-the-ip-address). This gives you access to the certificate used by the API server. You can inspect the content of the certificate using the following command with sudo privileges:
190+
191+
```bash
192+
sudo openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout
193+
```
194+
Each of the SANs is identified by the prefix "DNS:". Only choose the SANs that follow the specified naming convention "\<clusterName\>-\<resourceGroup\>", as this is unique compared to other SANs like "kubernetes.default.svc.cluster.local".
195+
196+
186197
## Next steps
187198

188199
Try out the following articles to learn more about Azure Operator Nexus Kubernetes cluster.

0 commit comments

Comments
 (0)