Fix: Ingress-External NetworkPolicy

This commit is contained in:
nold 2022-01-11 18:38:12 +01:00
parent 1c432775dd
commit 985c7729cf
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,14 @@
apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
metadata:
name: "traefik-allow-kubeapi"
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: traefik
app.kubernetes.io/instance: ingress-external
egress:
- toServices:
- k8sService:
serviceName: kubernetes
namespace: default

View file

@ -4,9 +4,9 @@ config:
config: config:
allowNamespace: false allowNamespace: false
rules: rules:
#- allow-dns - allow-dns
- allow-ingress-traffic - allow-ingress-traffic
#- allow-external-services - allow-external-services
#- allow-kubeapi #- allow-kubeapi
apps: apps: