Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexsandro-xpt/bc4d4afbbbd09f19e6b8266523d599a7 to your computer and use it in GitHub Desktop.
Save alexsandro-xpt/bc4d4afbbbd09f19e6b8266523d599a7 to your computer and use it in GitHub Desktop.
Aula do linuxTips
hostname elliot-01
echo elliot-01 > /etc/hostname
bash
curl -fsSL https://get.docker.com | bash
docker version
docker ps
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
apt-get update
apt-get install kubelet kubectl kubeadm
kubectl version
kubeadm config images pull
kubeadm init
kubectl get nodes
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
kubectl get nodes
kubectl get pods
kubectl get pods --all-namespaces
kubectl get nodes
kubectl get pods --all-namespaces
kubectl get nodes
source <(kubectl completion bash)
ls
curl -L https://istio.io/downloadIstio | sh -
istioctl
export PATH="$PATH:/root/istio-1.5.0/bin"
ls
ls istio-1.5.0/bin/istioctl
istioctl
history
ls
c istio-1.5.0/
cd istio-1.5.0/
ls
istioctl manifest apply --set profile=demo
kubectl label namespace default istio-injection=enabled
kubectl get namespaces
kubectl get namespaces default -o yaml
ls
cd samples/
ls
cd ..
ls
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
vim samples/bookinfo/platform/kube/bookinfo.yaml
kubectl get pods -n istio-system
history
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
# kubectl describe gateway bookinfo-gateway
kubectl port-forward svc/kiali 20001:20001 -n istio-system --address 0.0.0.0
kubectl port-forward svc/kiali 20001:20001 -n istio-system --address 0.0.0.0kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
# kubectl describe gateway bookinfo-gateway
kubectl port-forward svc/kiali 20001:20001 -n istio-system --address 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment