Skip to content

bsavinel/42-IoT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-IoT

This project aims to deepen your knowledge by making you use K3d and K3s with Vagrant. You will learn how to set up a personal virtual machine with Vagrant and the distribution of your choice. Then, you will learn how to use K3s and its Ingress. Last but not least, you will discover K3d that will simplify your life.

Part 2

Add these code to /etc/hosts

127.0.0.1	app1.com
127.0.0.1	app2.com
127.0.0.1	app3.com
127.0.0.1	localgitlab.gitlab.com

Curling

curl http://app3.com:8082/

Usefull commands

Vagrant

Turn on auto resync on synced folders

vagrant rsync-auto

Kubectl

Watch pods on live

watch -n 1 kubectl get pod

Aliases script

This script setup usefull aliases

echo "alias a='alias'
alias k='kubectl '
alias ka='kubectl apply -f '
alias kg='kubectl get '
alias kgn='kubectl get nodes'
alias kgnw='kubectl get nodes -o wide'
alias kgnl='kubectl get nodes --show-labels'
alias kgp='kubectl get pods'
alias kgs='kubectl get svc'
alias kgd='kubectl get deployments'
alias kcf='kubectl create -f '
alias kd='kubectl delete '
alias kdf='kubectl delete -f '
alias kaf='kubectl apply -f '
alias kgpa='kubectl get pods --all-namespaces'
alias wpods='watch -n 1 kubectl get pod'" >> ~/.bashrc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published