hive-apps/projects/gitea/manifests/netpol.yaml

17 lines
300 B
YAML
Raw Permalink Normal View History

2022-12-15 16:46:52 +00:00
apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
metadata:
name: allow-cnpg-kubeapi
namespace: gitea
spec:
endpointSelector:
matchLabels:
cnpg.io/podRole: instance
egress:
- toEntities:
- kube-apiserver
- toPorts:
- ports:
- port: "6443"
protocol: TCP