17 行
264 B
YAML
17 行
264 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: allow-gitea
|
|
namespace: infra-gitops
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: gitea
|
|
ingress:
|
|
- {}
|
|
egress:
|
|
- {}
|
|
policyTypes:
|
|
- Ingress
|
|
- Egress
|