Guess the name of a child or pet to be named.
- DockerMachine - https://docs.docker.com/engine/install/
- DockerCompose - https://docs.docker.com/compose/install/
- Git - Ubuntu: sudo apt install git
- Npm - Ubuntu: sudo apt install npm
- Minikube - https://minikube.sigs.k8s.io/docs/start/
- Grep - brew install grep - PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
- Rancher Desktop - https://rancherdesktop.io/
- Ingress controller - https://docs.rancherdesktop.io/how-to-guides/setup-NGINX-Ingress-Controller/
- minikube start
- minikube addons enable ingress
- kubectl get pods -n ingress-nginx (verify you have ingress)
- ./k8s/deploy.sh
- kubectl get ingress
- Navigate to localhost:port in the browser
- Run Rancher Desktop
- kubectl config use-context rancher-desktop
- ./k8s/deploy.sh
- Port forward the ingress controller
- Navigate to localhost:port in the browser
- echo -n 'username' | base64
- echo -n 'password' | base64
- minikube tunnel
- minikube service --url mongo-express-service
- minikube service mongo-express-service
- Note that without minikube tunnel, kubernetes would be showing external IP as "pending".
- https://minikube.sigs.k8s.io/docs/handbook/accessing/
- Install Telepresence: https://www.telepresence.io/docs/latest/install/
- How to intercept: https://www.telepresence.io/docs/latest/howtos/intercepts/
- telepresence connect
- curl -ik https://kubernetes.default
- telepresence list (find the service you want to intercept)
- telepresence intercept api --port 3000 --env-file ~/backend-service-intercept.env
- source ./scripts/telepresence-source-backend.sh
- From api run: npm run dev
- telepresence intercept frontend --port 3001 --env-file ~/frontend-service-intercept.env
- From frontend run: npm run dev
- docker-compose up --build
- docker-compose --file docker-compose-explicit.yaml up
See: https://minikube.sigs.k8s.io/docs/handbook/registry/ minikube addons enable registry docker run --rm -it --network=host alpine ash -c "apk add socat && socat TCP-LISTEN:5000,reuseaddr,fork TCP:$(minikube ip):5000" export REGISTRY_BASE_PATH=localhost:5000
- telepresence leave service-name
- Useful when intercept is not working: telepresence uninstall --everything
- Useful when intercept is not working: hard refresh
- Images are tagged with commit ID, add a commit before building and deploying
- Select aws profile: export AWS_PROFILE=user1
- Capture logging
- host: guessthename.com