You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Access to cluster nodes via Azure Arc for Kubernetes
31
-
32
-
Once you're connected to a cluster via Arc for Kubernetes, you can connect to individual Kubernetes node using the `kubectl debug` command to run a privileged container on your node.
33
-
34
-
1. List the nodes in your Nexus Kubernetes cluster:
Creating debugging pod node-debugger-mynexusk8scluster-0b32128d-agentpool1-md-7h9t4-694gg with container debugger on node mynexusk8scluster-0b32128d-agentpool1-md-7h9t4.
49
-
If you don't see a command prompt, try pressing enter.
50
-
root [ / ]#
51
-
```
52
-
53
-
This privileged container gives access to the node. Execute commands on the cluster node by running `chroot /host` at the command line.
54
-
55
-
3. When you're done with a debugging pod, enter the `exit` command to end the interactive shell session. After exiting the shell, make sure to delete the pod:
56
-
57
-
```bash
58
-
kubectl delete pod node-debugger-mynexusk8scluster-0b32128d-agentpool1-md-7h9t4-694gg
59
-
```
60
-
61
22
## Access to cluster nodes via Azure Arc for servers
62
23
63
24
The `az ssh arc` command allows users to remotely access a cluster VM that has been connected to Azure Arc. This method is a secure way to SSH into the cluster node directly from the command line, making it a quick and efficient method for remote management.
@@ -106,6 +67,45 @@ The `az ssh arc` command allows users to remotely access a cluster VM that has b
106
67
--private-key-file $SSH_PRIVATE_KEY_FILE
107
68
```
108
69
70
+
## Access nodes using the Kubernetes API
71
+
72
+
This method requires usage of `kubectl debug` command. This method is limited to containers and may miss wider system issues, unlike SSH (using 'az ssh arc' or direct IP), which offers full node access and control.
73
+
74
+
### Access to Kubernetes API via Azure Arc for Kubernetes
### Access to cluster nodes via Azure Arc for Kubernetes
79
+
80
+
Once you're connected to a cluster via Arc for Kubernetes, you can connect to individual Kubernetes node using the `kubectl debug` command to run a privileged container on your node.
81
+
82
+
1. List the nodes in your Nexus Kubernetes cluster:
Creating debugging pod node-debugger-mynexusk8scluster-0b32128d-agentpool1-md-7h9t4-694gg with container debugger on node mynexusk8scluster-0b32128d-agentpool1-md-7h9t4.
97
+
If you don't see a command prompt, try pressing enter.
98
+
root [ / ]#
99
+
```
100
+
101
+
This privileged container gives access to the node. Execute commands on the cluster node by running `chroot /host` at the command line.
102
+
103
+
3. When you're done with a debugging pod, enter the `exit` command to end the interactive shell session. After exiting the shell, make sure to delete the pod:
104
+
105
+
```bash
106
+
kubectl delete pod node-debugger-mynexusk8scluster-0b32128d-agentpool1-md-7h9t4-694gg
107
+
```
108
+
109
109
## Create an interactive shell connection to a node using the IP address
110
110
111
111
### Connecting to the cluster node from Azure jumpbox
0 commit comments