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 create
You now have a kubernetes cluster running in Kind. Interact with it using kubectl
commands.
kubectl apply -f base/deployment.yaml
You can also deploy using kustomize to leverage templates and dev and prod values patching.
kubectl apply -k overlays/dev
or
kubectl apply -k overlays/prod
helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
helm install --create-namespace kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard
Add sample user for dashboard
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
EOF
Get token for Dashboard login
kubectl -n kubernetes-dashboard create token admin-user