feat(k8s/archmirror): add Arch Linux mirror stack
This commit is contained in:
29
kubernetes/app/archmirror/networkpolicy.yaml
Normal file
29
kubernetes/app/archmirror/networkpolicy.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
# Default deny all ingress in the archmirror namespace
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: default-deny-ingress
|
||||
namespace: archmirror
|
||||
spec:
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
---
|
||||
# Allow Traefik ingress controller to reach nginx
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: allow-ingress-controller
|
||||
namespace: archmirror
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: archmirror
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: traefik
|
||||
Reference in New Issue
Block a user