Skip to content

Fully isolated Kubernetes environment (container level via VS Code DevContainer), for try and test components of the Kubernetes ecosystem

License

Notifications You must be signed in to change notification settings

nzuguem/kubernetes-sandbox-environment

Repository files navigation

Kubernetes Stack

Késako ?

Fully isolated Kubernetes environment (container level via VS Code DevContainer), for try and test components of the Kubernetes ecosystem.

It contains configurations and examples for the following components:

Launch DevContainer

📌 prerequisite :

  • Docker
  • VS Code

Open in Visual Studio Code ⤵️

Open in Dev Containers

Troubleshooting

From my experience at this sandbox, 90% of its boot failures were due to ports on my host machine already in use.

Make sure that the following ports are available :

  • 80 : Ingress Controller Nginx - HTTP
  • 443: Ingress Controller Nginx - HTTPS
  • 8080: Kourier for Knative - HTTP
  • 8443: Kourier for Knative - HTTPS
  • 9080: Nginx Gateway Fabric - HTTP
  • 9443: Nginx Gateway Fabric - HTTPS

Execute the command lsof -i:<PORT> to identify the PID occupying one of these ports. Then execute the command kill -9 <PID> to kill the process

Manage cluster in DevContainer

  • Start cluster

ℹ️ Cluster deployed after devContainer startup

## Deploy CLuster
task cluster-kind-deploy
  • Delete cluster

ℹ️ The DevContainer associated with this environment is deleted when the VS Code Dev Container mode is disconnected.

task cluster-kind-undeploy

⏳⏳⏳

About

Fully isolated Kubernetes environment (container level via VS Code DevContainer), for try and test components of the Kubernetes ecosystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages