initial commit
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m21s

This commit is contained in:
Michael Trip 2026-06-23 15:06:17 +02:00
commit 4dbcde381f
20 changed files with 1151 additions and 0 deletions

24
k8s/networkpolicy.yaml Normal file
View file

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: k8s-mgmt-pod
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: k8s-mgmt-pod
policyTypes:
- Ingress
ingress:
# Starting point only. Adjust these selectors to the namespaces or pods that should reach the bastion.
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: k8s-mgmt-pod
- namespaceSelector:
matchLabels:
k8s-mgmt-pod-access: "true"
ports:
- protocol: TCP
port: 22
- protocol: TCP
port: 3000