Flux installs NetworkPolicies that restrict access to source-controller (artifact HTTP server on port 9090) to pods within flux-system only. KuboCD's controller runs in the kubocd namespace and needs to fetch artifacts, so a policy as below must be applied before installing KuboCD.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-kubocd
namespace: flux-system
spec:
podSelector:
matchLabels:
app: source-controller
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kubocd
ports:
- port: 9090
protocol: TCP
Flux installs NetworkPolicies that restrict access to source-controller (artifact HTTP server on port 9090) to pods within
flux-systemonly. KuboCD's controller runs in thekubocdnamespace and needs to fetch artifacts, so a policy as below must be applied before installing KuboCD.