Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7aa56dcb1e | |||
| cbb564ccf5 |
@@ -8,7 +8,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: gitea-runner
|
app: gitea-runner
|
||||||
annotations:
|
annotations:
|
||||||
config-version: "2026-05-04-public-instance-url"
|
config-version: "2026-05-04-docker-sock-fix"
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: gitea-runner
|
app: gitea-runner
|
||||||
annotations:
|
annotations:
|
||||||
config-version: "2026-05-04-public-instance-url"
|
config-version: "2026-05-04-docker-sock-fix"
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
@@ -92,7 +92,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: neuron-technologies-runner
|
app: neuron-technologies-runner
|
||||||
annotations:
|
annotations:
|
||||||
config-version: "2026-05-04-public-instance-url"
|
config-version: "2026-05-04-docker-sock-fix"
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
@@ -103,7 +103,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: neuron-technologies-runner
|
app: neuron-technologies-runner
|
||||||
annotations:
|
annotations:
|
||||||
config-version: "2026-05-04-public-instance-url"
|
config-version: "2026-05-04-docker-sock-fix"
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
|
|||||||
@@ -17,13 +17,7 @@ spec:
|
|||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
template:
|
template:
|
||||||
data:
|
data:
|
||||||
# Public URL — the in-cluster name (gitea.git.svc.cluster.local) is
|
GITEA_INSTANCE_URL: "http://gitea.git.svc.cluster.local:3000"
|
||||||
# not resolvable from build containers running with `network: host`,
|
|
||||||
# which causes `git fetch` to fail at the very first checkout step.
|
|
||||||
# The runner polls Gitea over Cloudflare; the latency cost is small
|
|
||||||
# and the build container's clone URL is derived from this instance,
|
|
||||||
# so it has to be a name the build container can resolve.
|
|
||||||
GITEA_INSTANCE_URL: "https://git.neuralplatform.ai"
|
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ .runner_token }}"
|
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ .runner_token }}"
|
||||||
data:
|
data:
|
||||||
- secretKey: runner_token
|
- secretKey: runner_token
|
||||||
@@ -47,8 +41,7 @@ spec:
|
|||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
template:
|
template:
|
||||||
data:
|
data:
|
||||||
# Public URL — see commentary on the gitea-runner-secret above.
|
GITEA_INSTANCE_URL: "http://gitea.git.svc.cluster.local:3000"
|
||||||
GITEA_INSTANCE_URL: "https://git.neuralplatform.ai"
|
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ .runner_token }}"
|
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ .runner_token }}"
|
||||||
data:
|
data:
|
||||||
- secretKey: runner_token
|
- secretKey: runner_token
|
||||||
|
|||||||
@@ -117,6 +117,32 @@ spec:
|
|||||||
matchLabels:
|
matchLabels:
|
||||||
kubernetes.io/metadata.name: neuron-prod
|
kubernetes.io/metadata.name: neuron-prod
|
||||||
---
|
---
|
||||||
|
# ── dharma: accept from Traefik (kube-system) and neuron-prod namespace ──────
|
||||||
|
# The dharma pod was healthy and the IngressRoute was correct, but cross-
|
||||||
|
# namespace ingress from kube-system (Traefik) was denied by default-deny-all,
|
||||||
|
# so every external request landed at Traefik and bounced back as 502. This
|
||||||
|
# allow rule mirrors `allow-mcp-ingress` and brings dharma into line with the
|
||||||
|
# other neuron-prod services.
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: allow-dharma-ingress
|
||||||
|
namespace: neuron-prod
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: dharma
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
ingress:
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: kube-system
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: neuron-prod
|
||||||
|
---
|
||||||
# ── Egress: all prod pods may reach platform (postgres/redis), vault,
|
# ── Egress: all prod pods may reach platform (postgres/redis), vault,
|
||||||
# monitoring (alloy OTLP), kube-dns, and the internet (external APIs) ─
|
# monitoring (alloy OTLP), kube-dns, and the internet (external APIs) ─
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user