Skip to content

Commit

Permalink
Adding code tabs where the commands differ between linux/windows
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Beenham <[email protected]>
  • Loading branch information
superbeeny committed Apr 3, 2024
1 parent ac4495e commit f782fbd
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,27 @@ kubectl get pods -n dev-demo
```

Then, exec into the pod and check the environment variable (substitute the pod name with the one you got from the previous command):


{{< tabs "macOS/Linux/WSL" "Windows" >}}

{{% codetab %}}

```bash
kubectl -n dev-demo exec demo-d64cc4d6d-xjnjz -- env | grep MY_SECRET
```

{{% /codetab %}}

{{% codetab %}}

```powershell
kubectl -n dev-demo exec demo-d64cc4d6d-xjnjz -- env | findstr MY_SECRET
```

{{% /codetab %}}

{{< /tabs >}}

## Cleanup

Run the following command to [delete]({{< ref "guides/deploy-apps/howto-delete" >}}) your app and container:
Expand Down

0 comments on commit f782fbd

Please sign in to comment.