k3s-argocd-container a.k.a. k8sage
Kubernetes with Argo CD inside a container. Can be used to test infrastructure code locally.
wget -O applications.yaml https://github.com/nedix/k3s-argocd-container/applications.yaml.example
docker run --rm -d --name k8sage \
--privileged \
--cgroupns="host" \
--mount="type=bind,source=${PWD}/applications.yaml,target=/etc/k8sage/repositories/config/applications.yaml" \
-p 127.0.0.1:80:80 \
-p 127.0.0.1:443:443 \
-p 127.0.0.1:6443:6443 \
nedix/k8sage
Copy Kubernetes config to your host
docker cp k8sage:/root/.kube/config "${PWD}/kubeconfig.yaml"
Connect to 127.0.0.1:6443
for access to the API
- Navigate to http://127.0.0.1:80
- Optionally sign in with
admin:admin
as the credentials