PoCAT Documentation Get Started

Kubernetes Deployment

K8s zero-downtime deploy, resource guidance, and rollout steps.

Last updated: 2026-05-27 Section: Deployment

K8s deploys target zero-downtime releases, fast rollback, and predictable resource use.

Prerequisites Requires Java 11+ image, GATEWAY_HOME mount, separate ConfigMap/Secret, and an ingress controller.

Required resources

  • Deployment, Service, Ingress
  • ConfigMap / Secret
  • HPA (traffic variance), PDB (availability)

Recommended parameters

ItemRecommendedNotes
replicas2–3min 2 in prod
rollingUpdatemaxSurge 1 / maxUnavailable 0Zero downtime
CPU/MemoryP95 + 20%limits = requests recommended
probesstartup / readiness / livenessKeep separate
strategy:
  type: RollingUpdate
  rollingUpdate:
    maxSurge: 1
    maxUnavailable: 0

Deploy to Kubernetes

  1. Build and push the image; update the Deployment manifest tag.
  2. Apply ConfigMap/Secret per environment.
  3. Run kubectl apply -f and verify rollout status.
  4. Shift traffic gradually after readiness passes.
  5. Monitor error rate, P95, and pod restarts for 30 minutes.