Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 539 Bytes

readme.md

File metadata and controls

32 lines (24 loc) · 539 Bytes

Docker commands

cd webapp
docker build -t k8s-webapp .

docker run -p 8080:3000 --name webapp -d k8s-webapp
docker rm webapp -f
docker ps
docker logs webapp
docker exec -it webapp sh

docker tag k8s-webapp wprmdev/k8s-webapp
docker push wprmdev/k8s-webapp

K8s commands

kubectl apply -f ./k8s/namespace.yaml
kubectl apply -f ./k8s/deployment.yaml
kubectl delete -f ./k8s/namespace.yaml
watch 'kubectl get pods'

kubectl --insecure-skip-tls-verify get pods

App

url: https://k8s-webapp.hwcloud.com.br