Code Monkey home page Code Monkey logo

clab's Introduction

clab

more clab examples -> : https://github.com/srl-labs/containerlab/tree/main/lab-examples

For more convenient command operations, you can create the following command aliases:

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/

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

# 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/

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

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
apt-get install bash-completion
echo 'source <(kubectl completion bash)' >> ~/.bashrc
source ~/.bashrc

Other tools

k9s

https://github.com/derailed/k9s/releases

# 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

curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.