-
Notifications
You must be signed in to change notification settings - Fork 0
Add Cloudflare Tunnel sidecar to Cloud Run deployment #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
000246b
370f8e8
118355b
db978a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ spec: | |
| run.googleapis.com/container-dependencies: '{"ingress":["backend"]}' | ||
| autoscaling.knative.dev/minScale: "0" | ||
| autoscaling.knative.dev/maxScale: "3" | ||
| run.googleapis.com/cpu-throttling: "false" | ||
| spec: | ||
| containers: | ||
| - name: ingress | ||
|
|
@@ -52,4 +53,16 @@ spec: | |
| timeoutSeconds: 5 | ||
| periodSeconds: 10 | ||
| failureThreshold: 6 | ||
| - name: cloudflared | ||
| image: cloudflare/cloudflared:latest | ||
| args: ["tunnel", "--no-autoupdate", "run"] | ||
| env: | ||
| - name: TUNNEL_TOKEN | ||
| value: "${CLOUDFLARE_TUNNEL_TOKEN}" | ||
| - name: TUNNEL_URL | ||
| value: "http://localhost:8080" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The value: "http://localhost:3000" |
||
| resources: | ||
| limits: | ||
| cpu: "100m" | ||
| memory: "128Mi" | ||
| ${TRAFFIC_BLOCK} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the
:latesttag for container images is not recommended in production environments. It can lead to unpredictable behavior when a new version is pushed to the registry, and it makes it difficult to track which version of the image is running or to roll back to a previous version. It's best practice to pin to a specific, immutable image tag (e.g., a version number or a git SHA).