You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+30
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,15 @@ Kubeless is a Kubernetes-native Serverless solution.
9
9
Make sure you have a kubernetes endpoint running and kubeless installed. You can find the installation intructions [here](https://github.com/kubeless/kubeless#installation).
10
10
11
11
Once you have Kubeless running in your cluster you can install serverless
If you have a change in your function and you want to redeploy it you can run:
115
+
106
116
```bash
107
117
$ serverless deploy function-f hello
108
118
Serverless: Redeploying hello...
109
119
Serverless: Function hello successfully deployed
110
120
```
111
121
112
122
Finally you can remove the function.
123
+
113
124
```bash
114
125
$ serverless remove
115
126
Serverless: Removing function: hello...
116
127
Serverless: Function hello successfully deleted
117
128
```
118
129
130
+
## Kubernetes secrets
131
+
132
+
Kubernetes secret objects let you store and manage sensitive information, such as passwords, OAuth tokens, and ssh keys.
133
+
Putting this information in a secret is safer and more flexible than putting it verbatim in a Pod definition or in a container image. To use secrets follow the next steps:
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>`:
139
+
140
+
```yaml
141
+
provider:
142
+
name: kubeless
143
+
....
144
+
secrets:
145
+
- secret-file
146
+
```
147
+
148
+
3. Now inside your pod, you will be able to access the route `/secret-file/secret.txt`.
0 commit comments