diff --git a/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md b/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md index 8befb51e4..78cb09ad1 100644 --- a/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md +++ b/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md @@ -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: