Skip to content

Flux NetworkPolicies blocks KuboCD artifact download #40

Description

@leuwen-lc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions