diff --git a/services/gitops-ui/kustomization.yaml b/services/gitops-ui/kustomization.yaml index fad837d..a86611a 100644 --- a/services/gitops-ui/kustomization.yaml +++ b/services/gitops-ui/kustomization.yaml @@ -6,3 +6,4 @@ resources: - source.yaml - helmrelease.yaml - certificate.yaml + - networkpolicy-acme.yaml diff --git a/services/gitops-ui/networkpolicy-acme.yaml b/services/gitops-ui/networkpolicy-acme.yaml new file mode 100644 index 0000000..a7a5063 --- /dev/null +++ b/services/gitops-ui/networkpolicy-acme.yaml @@ -0,0 +1,17 @@ +# services/gitops-ui/networkpolicy-acme.yaml +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-acme-solver + namespace: flux-system +spec: + podSelector: + matchLabels: + acme.cert-manager.io/http01-solver: "true" + policyTypes: + - Ingress + ingress: + - from: + - namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: traefik