Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 0c24495

Browse files
authored
Fix location of secrets in serverless.yml (#218)
1 parent a91b678 commit 0c24495

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ Putting this information in a secret is safer and more flexible than putting it
138138
2. Add the secret key into the provider definition in the serverless.yml file below the `secrets` key. You can specify an array of secrets and they will be mounted at root level in the pod file system using the path `/<secret-name>`:
139139

140140
```yaml
141-
provider:
142-
name: kubeless
143-
....
144-
secrets:
145-
- secret-file
141+
...
142+
functions:
143+
my-handler:
144+
secrets:
145+
- secret-file
146+
...
146147
```
147148

148149
3. Now inside your pod, you will be able to access the route `/secret-file/secret.txt`.

0 commit comments

Comments
 (0)