This repository is set up for development with GitHub Codespaces and VS Code Dev Containers.
- Docker-in-Docker (with Docker Compose v2 support)
- Helm
- KinD (Kubernetes in Docker)
- kubectl
- Azure CLI
Fire up the devcontainer
Once it has started, from the command line run
kind cluster createYou now have a kubernetes cluster running in Kind. Interact with it using kubectl commands.
kubectl apply -f base/deployment.yamlYou can also deploy using kustomize to leverage templates and dev and prod values patching.
kubectl apply -k overlays/devor
kubectl apply -k overlays/prodhelm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
helm install --create-namespace kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboardAdd sample user for dashboard
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
EOFGet token for Dashboard login
kubectl -n kubernetes-dashboard create token admin-user