Skip to main content

Managed Kubernetes Service

Okustera Managed Kubernetes delivers upstream, CNCF-certified Kubernetes clusters orchestrated declaratively with immutable node lifecycles.

Every tenant cluster runs on isolated virtual machine nodes equipped with high-performance container networking, dynamic Container Storage Interface (CSI) persistent volumes, and enterprise-grade zero-downtime upgrade workflows.

Okustera Managed Kubernetes Service Console


Architecture: Immutable Rolling Infrastructure​

Rather than mutating running node operating systems and Kubernetes binaries in place, Okustera treats every Kubernetes node as an immutable compute instance:

  • Zero Host Drift: Worker and control-plane nodes are never patched in place.
  • Deterministic Rollouts: Upgrades launch fresh nodes from certified golden images, join them to the cluster, safely drain workloads, and decommission previous nodes.
  • Declarative Reconciliation: Cluster topology, node pools, and desired Kubernetes versions are reconciled continuously by the Okustera Kubernetes management plane.

Zero-Downtime Kubernetes Version Upgrades​

Okustera supports three complementary zero-downtime upgrade strategies designed to keep customer APIs, microservices, and stateful workloads continuously available:

Strategy 1: Node Rolling Surge​

The default in-cluster upgrade workflow guarantees capacity before evicting running pods:

  1. Surge Before Eviction: A fresh replacement worker node is booted before any existing node is drained.
  2. Readiness Verification: The new node registers with the Kubernetes API, initializes cluster networking, and reports Ready.
  3. Cordon & Safe Eviction: The outgoing node is cordoned (kubectl cordon) and pods are evicted in strict compliance with configured PodDisruptionBudgets (PDBs).
  4. Automatic Volume Reattachment: Persistent volumes automatically detach from the draining node and reattach to the newly scheduled node via the CSI driver.
  5. Decommission: Once fully drained, the previous worker node is cleanly terminated.

Protecting Workloads with PodDisruptionBudgets​

Ensure critical deployments retain at least one healthy replica during rolling node drains:

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: api-pdb
namespace: default
spec:
minAvailable: 1
selector:
matchLabels:
app: api-service

Strategy 2: Cluster-Level Blue/Green Deployment with Canary Traffic Shifting​

For major Kubernetes releases involving deprecated APIs or breaking CRD schema updates, Okustera supports Cluster-Level Blue/Green Deployments:

  1. Provision Green Cluster: Deploy a parallel cluster declaratively via Terraform or the Cloud Portal.
  2. Synchronize Addons & Workloads: Deploy application manifests and connect managed database replicas or S3 backups.
  3. Progressive Traffic Shift: Shift live traffic incrementally (5% → 25% → 50% → 100%) across clusters using weighted edge routing.
  4. Instant Rollback: If latency or error rates rise on Green, shift 100% of traffic back to Blue immediately.
  5. Decommission Blue: Once Green is verified under full load, decommission Cluster Blue.

Strategy 3: Application Canary Releases via Kubernetes Gateway API​

Deploy canary microservice releases inside any cluster using standard Kubernetes Gateway API weighted HTTPRoute rules:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: production-canary
namespace: default
spec:
parentRefs:
- name: okustera-gateway
rules:
- matches:
- path:
type: PathPrefix
value: /api/v1/
backendRefs:
- name: backend-v1
port: 80
weight: 90
- name: backend-v2
port: 80
weight: 10

Outdated Helm Packages & Deprecated API Management​

Before upgrading Kubernetes minor versions, outdated Helm charts, obsolete CRDs, and removed Kubernetes APIs should be audited and remediated.

Common Helm Upgrade Hazards​

  1. Removed Kubernetes APIs: Charts rendering templates with removed API versions (e.g., policy/v1beta1 → policy/v1 or networking.k8s.io/v1beta1 → networking.k8s.io/v1) are rejected by newer API servers.
  2. Stale Release Secrets: Helm stores rendered manifests in release Secrets (sh.helm.release.v1.<release>.v<n>). Upgrading a cluster before updating old releases can block subsequent helm upgrade or helm rollback operations.
  3. CRD Immutability in Helm: Standard helm upgrade commands do not automatically upgrade CRDs under a chart's crds/ directory.

Pre-Upgrade Lifecycle Workflow​

1. Scan for Deprecated APIs​

Run deprecation checks against your cluster before initiating an upgrade:

# Scan live in-cluster resources
kubent

# Scan Helm release storage Secrets
pluto detect-helm

2. Apply CRDs Explicitly​

Apply updated CRD manifests before upgrading operator Helm charts:

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml

3. Recovering Stale Releases with helm-mapkubeapis​

If a cluster was upgraded before a Helm release was updated, use helm-mapkubeapis to remap deprecated API versions in place:

# 1. Install plugin
helm plugin install https://github.com/helm/helm-mapkubeapis

# 2. Dry-run inspection
helm mapkubeapis --namespace default my-release --dry-run

# 3. Apply in-place API mapping
helm mapkubeapis --namespace default my-release

# 4. Run standard upgrade
helm upgrade my-release my-repo/my-chart

Provisioning a Cluster via Terraform​

Manage Kubernetes clusters declaratively with the official Okustera Terraform provider:

# Discover certified cluster configuration
data "okustera_kubernetes_cluster_config" "default" {
cluster_name = "k8s-production-cluster"
}

# Provision upstream CNCF-certified Kubernetes cluster
resource "okustera_kubernetes_cluster" "tenant_cluster" {
name = "production-k8s-cluster"
cluster_template_id = "k8s-v1.30-standard"
master_count = 1
node_count = 3
floating_ip_enabled = true
keypair = "production-key"
}

Learn more in the Terraform Provider Documentation.


Tenant Cluster Operations in the Cloud Portal​

The Okustera Cloud Portal (/kubernetes) simplifies cluster access and day-2 scaling:

1. Downloading Your Kubeconfig​

To manage your cluster with kubectl:

  1. Navigate to Kubernetes in the left sidebar.
  2. Select your cluster and click Download Kubeconfig.
  3. Save the file locally and configure your shell environment:
    export KUBECONFIG=~/.kube/my-cluster.kubeconfig
    kubectl get nodes

2. Dynamic Worker Node Scaling​

To scale cluster capacity in response to workload demand:

  1. In the cluster details view, click Scale Cluster.
  2. Adjust the Worker Node Count (e.g., from 3 to 5 nodes).
  3. Click Apply Scale. Okustera provisions new worker nodes, joins them to your encrypted cluster mesh, and transitions them to Ready without interrupting running pods.

REST API Reference​

  • GET /api/v1/kubernetes/clusters — List all Kubernetes clusters in the tenant project.
  • POST /api/v1/kubernetes/clusters — Provision a new Kubernetes cluster from a certified template.
  • GET /api/v1/kubernetes/clusters/{id} — Inspect cluster health, API endpoint, and node count.
  • POST /api/v1/kubernetes/clusters/{id}/scale — Dynamically scale the worker node pool count.
  • GET /api/v1/kubernetes/clusters/{id}/kubeconfig — Download the cluster admin kubeconfig.
  • DELETE /api/v1/kubernetes/clusters/{id} — Safely drain and decommission cluster resources.
  • GET /api/v1/kubernetes/cluster-templates — List certified upstream Kubernetes templates.