Overview
LightYear Managed Kubernetes (LMK) provisions a fully managed control plane with worker nodes running on high-performance GPU or CPU instances.
Prerequisites
- LightYear account with sufficient wallet balance
kubectlinstalled locallyhelminstalled locally (optional)
Step 1 — Create a Cluster
- Navigate to Kubernetes → Create Cluster.
- Choose a Kubernetes version (1.29 recommended).
- Select a region.
- Configure the node pool:
- Node plan:
vcpu-4-8gb(minimum) or GPU plan - Node count: 3 (for HA)
- Node plan:
- Click Deploy Cluster.
Provisioning takes 3–5 minutes.
Step 2 — Download kubeconfig
$# From the cluster detail page, download kubeconfig.yaml$export KUBECONFIG=~/kubeconfig.yaml$kubectl get nodesExpected output:
NAME STATUS ROLES AGE VERSION
node-pool-1a Ready <none> 2m v1.29.2
node-pool-1b Ready <none> 2m v1.29.2
node-pool-1c Ready <none> 2m v1.29.2
Step 3 — Deploy a Sample Application
# nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.25
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-lb
spec:
type: LoadBalancer
selector:
app: nginx
ports:
- port: 80
targetPort: 80$kubectl apply -f nginx-deployment.yaml$kubectl get svc nginx-lbStep 4 — GPU Workloads on Kubernetes
Install the NVIDIA device plugin:
$kubectl apply -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.3/nvidia-device-plugin.ymlRequest GPU in your pod spec:
resources:
limits:
nvidia.com/gpu: 1Scaling Node Pools
$# Scale via control panel: Kubernetes → [Cluster] → Node Pools → EditUpgrading Kubernetes
LightYear supports in-place minor version upgrades. Go to Kubernetes → [Cluster] → Upgrade.
