go run server.go
docker build -t npavans/hello-go .
docker run --rm -p 8080:8080 npavans/hello-go
docker push npavans/hello-go
kind create cluster
kind create cluster --config=kind.yaml --name=CLUSTER_NAME
kubectl config get-clusters
kind get clusters
kind delete clusters CLUSTER_NAME
kubectl cluster-info --context kind-CLUSTER_NAME
kubectl get nodes
kubectl apply -f pod.yaml
kubectl describe pod POD_NAME
kubectl get pods
kubectl delete pod POD_NAME --force
kubectl port-forward pod/goserver 8000:8080
# acessar em http://localhost:8000/hello
kubectl get replicasets
kubectl delete replicaset REPLICASET_NAME
kubectl get deployments
kubectl describe deployment DEPLOYMENT_NAME
kubectl rollout history deployment DEPLOYMENT_NAME
# output
# REVISION CHANGE-CAUSE
# 1 <none>
kubectl rollout undo deployment DEPLOYMENT_NAME
kubectl rollout undo deployment DEPLOYMENT_NAME --to-revision=REVISION_NUMBER
kubectl get svc
kubectl port-forward svc/SERVICE_NAME 8000:8080
# acessar em http://localhost:8000/hello
kubectl proxy --port=8001
# acessar em http://localhost:8001/api/v1/pods