Skip to content

Commit ddfee56

Browse files
committed
adding non-root access
1 parent 7561975 commit ddfee56

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/iot-operations/develop-edge-apps/quickstart-get-started-sdks.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ GitHub Codespaces provides the most streamlined experience and can get the devel
8080
1. Deploy a new k3d cluster
8181
1. Set up port forwarding for ports `1883`, `8883`, and `8884` to enable TLS
8282
1. Create a local container registry
83+
84+
1. For the next step you will need non-root access to the cluster, run the following command:
85+
86+
```bash
87+
mkdir ~/.kube; sudo install -o $USER -g $USER -m 600 /root/.kube/config ~/.kube/config
88+
```
89+
90+
This command gives your non-root user access to the Kubernetes cluster by copying the cluster configuration file from the root account to your user account, ensuring you have the correct permissions to use Kubernetes tools like kubectl without needing root access.
8391

8492
### [Visual Studio Code Dev Containers](#tab/vscode-dev-containers)
8593

@@ -194,7 +202,7 @@ Open a new bash terminal and do the following steps:
194202
1. Load the environment variables into your shell, run the following command in your terminal:
195203

196204
```bash
197-
source <REPOSITORY ROOT>/.env
205+
source .env
198206
```
199207

200208
1. Run the `install-aio-arc.sh` script to arc-enable your cluster and deploy Azure IoT Operations:

0 commit comments

Comments
 (0)