Deploy an app to Kubernetes
Run a web app like production teams do: 2 replicas with probes and limits, a Service, an Ingress and an autoscaler.
You'll end with: Production-style Kubernetes manifests in your GitHub, deployed to a real cluster on every push.
Do it here, in your browser
Follow the steps on the left and type in the terminal on the right. Each step ticks itself off when your files are right. At the end, one button creates the repository in your GitHub with your work, and you get a ready LinkedIn post.
Or do it on your own computer
Prefer a real terminal? Make your copy from our GitHub template, work in Codespaces or on your machine, then submit the link below.
akopslabs/build-k8s-deploySteps on your own computer
- 1
Make your copy
Press Use the GitHub template, keep the repository Public and create it.
- 2
Get a cluster
In a Codespace or on your machine, create a local cluster.
kind create cluster # or: minikube start
- 3
Write the manifests
Finish k8s/deployment.yaml and add service.yaml, ingress.yaml and hpa.yaml. The README lists what each needs.
- 4
Apply and test
Apply them and reach the app.
kubectl apply -f k8s/ kubectl rollout status deployment/web kubectl port-forward svc/web 8080:80
- 5
Push
Commit and push. AkOps check creates a kind cluster on GitHub, applies your files and tests the app.
git add k8s && git commit -m "Deploy web to Kubernetes" && git push
- 6
Submit and share
Paste your repository link below and press Check my project.