This is a simple app that can be run locally.
git config --global user.name praveenkumarv-github
git config --global user.email praveenkumar081097@gmail.com
ssh-keygen -t ed25519 -C "praveenkumar081097@gmail.com"
# For more: Added a new SSH key to your GitHub account - https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection
git remote set-url --push origin 'git@github.com:praveenkumarv-github/simpleapp.git'
https://hub.docker.com/r/praveenkumar081097/simpleapp
To run this app locally, you need to install the httpserver
package using pip:
For running it locally
pip install httpserver
python /simpleapp/main.py
docker pull praveenkumar081097/simpleapp:latest
docker run -it --rm -d -p 80:80 --name web praveenkumar081097/simpleapp:latest
curl 192.168.29.173:80
curl 192.168.29.173/hit-server-endpoint
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable traefik --docker --disable metrics-server" sh
firewall-cmd --permanent --add-port=6443/tcp
firewall-cmd --reload
cat /var/lib/rancher/k3s/server/node-token
curl https://releases.rancher.com/install-docker/20.10.sh | sh
curl -sfL https://get.k3s.io | K3S_URL=https://IP:6443 K3S_TOKEN=XXXXXXX::server:YYYYY sh -
kubectl label node worker1.com node-role.kubernetes.io/worker=worker
Follow -> https://metallb.universe.tf/installation/
kubectl apply -f simpleapp/k8s/crd/kube-proxy.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.9/config/manifests/metallb-native.yaml
kubectl apply -f k8s/sampleapp-dep.yaml
kubectl apply -f k8s/sampleapp-svc.yaml
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl create namespace ingress-nginx
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginx --create-namespace