Skip to content

Commit d7df115

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ To find the IP address of the VM for SSH, follow these steps:
188188

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

191-
```bash
191+
```bash
192192
sudo openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout
193-
```
193+
```
194194

195195
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".
196196

0 commit comments

Comments
 (0)