Add gocache serve Deployment with nginx stream sidecar #496

Merged
benvin merged 2 commits from benvin/gocache-serve into main 2026-09-27 00:32:33 +10:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit d83735b3e3 - Show all commits
@@ -24,6 +24,8 @@ data:
# The protocol has no authentication: anyone who can reach this port can
# write cache entries, which become code in every build that reads them.
# Loopback is the kubectl port-forward fallback; in a pod netns it is
# only these two containers.
allow 127.0.0.1/32;
allow 10.10.12.200/32;
allow 10.42.0.0/16;
+7 -1
View File
@@ -4,10 +4,16 @@ kind: Service
metadata:
name: gocache
namespace: woodpecker
annotations:
purelb.io/addresses: 198.18.200.11
purelb.io/service-group: common
labels:
app.kubernetes.io/name: gocache
spec:
type: ClusterIP
type: LoadBalancer
# Cluster SNATs off-node traffic to a node address, which would defeat the
# nginx allow rules; Local preserves the wireguard client IP.
externalTrafficPolicy: Local
selector:
app.kubernetes.io/name: gocache
ports: