ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c

View file

@ -0,0 +1,50 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: ca-sync
namespace: vault
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: ca-sync
egress:
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: kube-system
k8s-app: kube-dns
toPorts:
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
rules:
dns:
- matchName: vault.vault.svc.cluster.local
- toEndpoints:
- matchLabels:
app.kubernetes.io/name: vault
component: server
toPorts:
- ports:
- port: "8200"
protocol: TCP
---
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: ca-sync-vault
namespace: vault
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: vault
component: server
ingress:
- fromEndpoints:
- matchLabels:
app.kubernetes.io/name: ca-sync
toPorts:
- ports:
- port: "8200"
protocol: TCP