a56db70937
IUCLabs runner jobs pull pip, uv, go and npm packages straight from public registries because their egress blocks traefik-internal and their tools do not trust the internal CA. - add an artifactapi component setting pip, uv, go, npm, yarn and corepack registry env on every runner - build a combined public + internal CA bundle in an init container for SSL_CERT_FILE and REQUESTS_CA_BUNDLE - allow every runner egress to traefik-internal on 443, replacing the dind and build copies Reviewed-on: #617 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
26 lines
652 B
YAML
26 lines
652 B
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: egress-artifactapi
|
|
namespace: iuclabs-runners
|
|
spec:
|
|
podSelector:
|
|
matchExpressions:
|
|
- key: runners.unkin.net/scale-set
|
|
operator: Exists
|
|
policyTypes:
|
|
- Egress
|
|
egress:
|
|
# artifactapi via traefik-internal; kube-proxy DNATs its LB IP to these pods
|
|
- to:
|
|
- namespaceSelector:
|
|
matchLabels:
|
|
kubernetes.io/metadata.name: traefik-system
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: traefik-internal-traefik-system
|
|
ports:
|
|
- protocol: TCP
|
|
port: 443
|