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
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,12 @@ After you've written your function, you can simply deploy it from your local
165
165
machine using the `gcloud` command-line tool.
166
166
[Check out the Cloud Functions quickstart](https://cloud.google.com/functions/docs/quickstart).
167
167
168
+
When mounting Secret Manager secrets with `gcloud functions deploy --set-secrets`,
169
+
do not mount a secret over `/workspace`. Cloud Run functions load the deployed
170
+
function source from `/workspace`, so mounting a secret there can hide the
171
+
application files and prevent the function from starting. Mount secret files
172
+
under a different path, such as `/etc/secrets` or `/tmp`.
173
+
168
174
### Container environments based on Knative
169
175
170
176
Cloud Run and Cloud Run for Anthos both implement the [Knative Serving API](https://www.knative.dev/docs/). The Functions Framework is designed to be compatible with Knative environments. Just build and deploy your container to a Knative environment.
0 commit comments