Stand Up k3s-Based Staging Cluster on OCI for Sztab (SZ-96)
rk@tigase.net opened 2 hours ago

Summary

Provision and configure a single-node k3s Kubernetes cluster on Oracle Cloud Infrastructure (OCI) to serve as the staging environment for Sztab.

This staging environment will support:

  • Deployment of release images via Helm
  • Validation of Docker → Kubernetes migration
  • Ingress and networking validation
  • Database migration testing (Flyway)
  • Pre-production smoke testing

Objective

Create a reproducible staging environment running:

  • sztab-backend (Spring Boot)
  • sztab-ui (Nginx static build)
  • sztabina (embedded Git service)
  • Postgres (in-cluster StatefulSet)
  • Traefik ingress (default from k3s)

All components deployed within namespace: sztab-staging.


Scope

  1. Provision OCI VM (Ubuntu 22.04)
  2. Install and configure k3s (single-node cluster)
  3. Configure remote kubectl access
  4. Create namespace sztab-staging
  5. Push release images to OCI Container Registry
  6. Configure imagePullSecrets for registry access
  7. Deploy Sztab components via Helm
  8. Configure ingress (Traefik)
  9. Validate full deployment
  10. Document deployment and upgrade procedure

Out of Scope

  • Multi-node HA cluster
  • Autoscaling
  • Production-grade database HA
  • Regional failover
  • Observability stack (Prometheus/Grafana/ELK)
  • CI/CD automation (future task)

Deliverables

  • Running k3s cluster on OCI VM
  • Namespace sztab-staging
  • Helm-based deployment working end-to-end
  • Public staging endpoint (HTTP or HTTPS)
  • Deployment documentation committed to repository
  • Verified successful startup of all components

Acceptance Criteria

  • kubectl get nodes shows node in Ready state
  • All pods in sztab-staging namespace Running and Ready
  • Ingress responds successfully
  • Backend /actuator/health reports UP
  • Postgres PVC bound and stable
  • Deployment reproducible using Helm upgrade/install

Notes

This task establishes a stable staging foundation for future releases and enables controlled pre-production validation of Sztab.

  • rk@tigase.net changed title 2 hours ago
    Previous Value Current Value
    Kubernetes-based Staging Deployment of Sztab
    Stand Up k3s-Based Staging Cluster on OCI for Sztab
  • rk@tigase.net commented 2 hours ago

    Estimated Effort

    Total Estimate: 6–8 hours

    Breakdown

    • OCI VM provisioning: 1 hour
    • k3s installation and configuration: 1 hour
    • Registry integration and secret configuration: 1 hour
    • Helm configuration and deployment: 2 hours
    • Ingress configuration and DNS setup: 1 hour
    • Verification, smoke testing, and documentation: 1–2 hours

    Work Log Plan

    Phase 1 – Infrastructure Setup

    • Provision VM
    • Configure firewall/security rules
    • Install k3s
    • Verify cluster health

    Phase 2 – Registry and Namespace

    • Push images to OCI registry
    • Create imagePullSecret
    • Create namespace sztab-staging

    Phase 3 – Helm Deployment

    • Configure values-staging.yaml
    • Deploy via Helm
    • Validate pod startup and services

    Phase 4 – Ingress and Validation

    • Configure ingress rules
    • Validate UI and API access
    • Verify DB connectivity
    • Confirm Git service accessibility

    Phase 5 – Documentation

    • Document deployment steps
    • Document upgrade procedure
    • Document rollback procedure

issue 1 of 1
Type
Task
Priority
Normal
Assignee
Version
1.10
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (3)
Reference
SZ-96
Please wait...
Page is in error, reload to recover