initial commit

This commit is contained in:
gwg313 2025-06-21 15:47:08 -04:00
commit 471f30f0b1
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
13 changed files with 286 additions and 0 deletions

View file

@ -0,0 +1,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: secure-default
labels:
pod-security.kubernetes.io/enforce: "restricted"
pod-security.kubernetes.io/enforce-version: "latest"

View file

@ -0,0 +1,10 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-all
namespace: secure-default
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress

12
security/rbac.yaml Normal file
View file

@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: readonly-users
subjects:
- kind: Group
name: readonly
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: view
apiGroup: rbac.authorization.k8s.io