Phase 1: sandbox namespace with PSA restricted enforcement, ResourceQuota (20 pods, 10/20 CPU, 20/40Gi memory), and CiliumNetworkPolicy denying pi-session egress to kube-apiserver. Phase 2: sandbox-observer Role + poimen-devs RoleBinding for OIDC-authenticated kubectl access to sandbox pod status/logs.
13 lines
244 B
YAML
13 lines
244 B
YAML
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: pi-session-deny-kube-api
|
|
namespace: poimen-sandbox
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app: pi-session
|
|
egressDeny:
|
|
- toEntities:
|
|
- kube-apiserver
|