Skip to content

Commit 24438ec

Browse files
Junyi-99claude
andauthored
chore: sync main→staging infra (drop Faro, CSS isolate, cloudflared probes) (#169)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 325f86b commit 24438ec

24 files changed

Lines changed: 5622 additions & 4628 deletions

hack/values-prd.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
namespace: paperdebugger
22

3-
nodeSelector:
4-
kubernetes.io/hostname: xtras3
5-
cloudflareNodeSelector:
6-
kubernetes.io/hostname: nuc
3+
nodeSelector: {}
4+
cloudflareNodeSelector: {}
75

86
mongo:
97
in_cluster: false

helm-chart/templates/cloudflare.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- name: net.ipv4.ping_group_range
3434
value: "65532 65532"
3535
containers:
36-
- image: cloudflare/cloudflared:latest
36+
- image: {{ .Values.cloudflared.image }}
3737
name: cloudflared
3838
env:
3939
# Defines an environment variable for the tunnel token.
@@ -50,16 +50,28 @@ spec:
5050
- --protocol
5151
- http2
5252
- --loglevel
53-
- debug
53+
- info
5454
- --metrics
5555
- 0.0.0.0:2000
5656
- run
57-
livenessProbe:
57+
resources:
58+
{{- toYaml .Values.cloudflared.resources | nindent 12 }}
59+
# cloudflared's /ready returns 200 only when at least one tunnel
60+
# connection is active. Cloudflare rotates edge connections
61+
# periodically, so transient /ready failures are expected and
62+
# cloudflared reconnects on its own. We therefore drop livenessProbe
63+
# (which was killing healthy pods on every reconnect) and rely on
64+
# startupProbe for first-connect tolerance plus readinessProbe for
65+
# rolling-deploy gating.
66+
startupProbe:
5867
httpGet:
59-
# Cloudflared has a /ready endpoint which returns 200 if and only if
60-
# it has an active connection to Cloudflare's network.
6168
path: /ready
6269
port: 2000
63-
failureThreshold: 1
64-
initialDelaySeconds: 10
6570
periodSeconds: 10
71+
failureThreshold: 30
72+
readinessProbe:
73+
httpGet:
74+
path: /ready
75+
port: 2000
76+
periodSeconds: 10
77+
failureThreshold: 3

helm-chart/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ paperdebuggerXtraMcpServer:
1919
nodeSelector: {}
2020
cloudflareNodeSelector: {}
2121

22+
cloudflared:
23+
image: cloudflare/cloudflared:2026.5.0
24+
resources:
25+
requests:
26+
cpu: 50m
27+
memory: 64Mi
28+
limits:
29+
cpu: 500m
30+
memory: 256Mi
31+
2232
mongo:
2333
in_cluster: true
2434
uri: "" # if in_cluster is false, use the external mongo instead

webapp/_webapp/bun.lock

Lines changed: 41 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)