Skip to content

Commit 7963494

Browse files
committed
add steps to retrive SAN
1 parent d7df115 commit 7963494

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,8 @@ To find the IP address of the VM for SSH, follow these steps:
189189
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:
190190

191191
```bash
192-
sudo openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout
192+
sudo openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout
193193
```
194-
195194
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".
196195

197196

0 commit comments

Comments
 (0)