Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renyunkang/clab
https://github.com/renyunkang/clab
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/renyunkang/clab
- Owner: renyunkang
- Created: 2023-05-26T06:47:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-22T07:55:47.000Z (5 months ago)
- Last Synced: 2024-07-23T03:56:00.857Z (5 months ago)
- Language: Shell
- Size: 26.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clab
more clab examples -> : https://github.com/srl-labs/containerlab/tree/main/lab-examplesFor more convenient command operations, you can create the following command aliases:
```bash
cat .bash_aliases
alias clab='containerlab'
alias knode1-exec='docker exec -it cluster-control-plane bash'
alias knode2-exec='docker exec -it cluster-worker bash'
alias knode3-exec='docker exec -it cluster-worker2 bash'
alias knode4-exec='docker exec -it cluster-worker3 bash'
alias node1-exec='docker exec -it clab-bgp-server1 bash'
alias node2-exec='docker exec -it clab-bgp-server2 bash'
alias node3-exec='docker exec -it clab-bgp-server3 bash'
alias node4-exec='docker exec -it clab-bgp-server4 bash'
alias spine1-exec='docker exec -it clab-bgp-spine1 bash'
alias spine2-exec='docker exec -it clab-bgp-spine2 bash'
alias leaf1-exec='docker exec -it clab-bgp-leaf1 bash'
alias leaf2-exec='docker exec -it clab-bgp-leaf2 bash'
alias vspine1-exec='docker exec -it clab-bgp-spine1 su vyos'
alias vspine2-exec='docker exec -it clab-bgp-spine2 su vyos'
alias vleaf1-exec='docker exec -it clab-bgp-leaf1 su vyos'
alias vleaf2-exec='docker exec -it clab-bgp-leaf2 su vyos'
```## Required tools
### Docker
https://docs.docker.com/engine/install/
```shell
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
```### kind
https://kind.sigs.k8s.io/docs/user/quick-start/#installing-from-release-binaries
```shell
# For AMD64 / x86_64
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
# For ARM64
[ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-arm64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
```### containerlab
https://containerlab.dev/install/
```shell
bash -c "$(curl -sL https://get.containerlab.dev)"
```### kubectl
https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-kubectl-binary-with-curl-on-linux
```shell
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
``````shell
apt-get install bash-completion
echo 'source <(kubectl completion bash)' >> ~/.bashrc
source ~/.bashrc
```## Other tools
### k9s
https://github.com/derailed/k9s/releases
```shell
# install script
curl -sS https://webinstall.dev/k9s | bash# other way: download binary
wget https://github.com/derailed/k9s/releases/download/v0.32.4/k9s_Linux_amd64.tar.gz
tar -zxf k9s_Linux_amd64.tar.gz
chmod +x ./k9s
mv ./k9s /usr/local/bin/k9s
```### helm
https://github.com/derailed/k9s/releases
```shell
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
```### direnv
```shell
curl -sfL https://direnv.net/install.sh | bash
```