Kubernetes Pod Security Admission Test (using Laravel)

This is just a draft project to test the Pod Security Admission.

Usage

  1. cd docker && docker compose build && cd ..
  2. kind create cluster --config=kubernetes/kind-cluster.yaml
  3. kind load docker-image kind-apps--lv:latest
  4. kubectl label --overwrite ns default pod-security.kubernetes.io/warn=baseline
  5. kubectl label --dry-run=server --overwrite ns --all pod-security.kubernetes.io/enforce=baseline
  6. kubectl apply -f ./kubernetes/deploy/