Skip to content

nedix/k3s-argocd-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k3s-argocd-container a.k.a. k8sage

Kubernetes with Argo CD inside a container. Can be used to test infrastructure code locally.

Usage

1. Configure the applications.yaml file

wget -O applications.yaml https://github.com/nedix/k3s-argocd-container/applications.yaml.example

2. Start the container

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

3. Access the Kubernetes API

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

4. Access the Argo CD GUI

About

Kubernetes with Argo CD inside a container.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •