Forked from luisangelorjr/gist:47ab7f185e1465e67a413b02163aa382
Created
March 21, 2020 15:48
-
-
Save alexsandro-xpt/bc4d4afbbbd09f19e6b8266523d599a7 to your computer and use it in GitHub Desktop.
Aula do linuxTips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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