Skip to content

Commit 4e3e4d5

Browse files
viveksynghalexellis
authored andcommitted
Add namespace to kubectl create secret command
This changes add --namespace to kubectl create secret command to save secrets to openfaas-fn namespace. It will make secrets available for functions. Signed-off-by: Vivek Singh <[email protected]>
1 parent 9d8365a commit 4e3e4d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In Kubernetes we can leverage the [secrets api](https://kubernetes.io/docs/conce
2121
From the commandline use
2222

2323
```sh
24-
kubectl create secret generic secret-api-key --from-file=secret-api-key=~/secrets/secret_api_key.txt
24+
kubectl create secret generic secret-api-key --from-file=secret-api-key=~/secrets/secret_api_key.txt --namespace openfaas-fn
2525
```
2626

2727
Here we have explicitly named the key of the secret value so that when it is mounted into the function container, it will be named exactly `secret-api-key` instead of `secret_api_key.txt`.

0 commit comments

Comments
 (0)