-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the demo wiki!
- docker build -t demo-boot .
- docker run -p 3333:8080 demo-boot
- docker tag imageID master1qr/demo-boot:jsurf
- docker login --username=master1qr
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
There was an issue with raspbian DNS
- vi /etc/dhcpcd.conf
static domain_name_servers=8.8.8.8 8.8.4.4
- sudo vi /etc/resolvconf.conf
name_servers=8.8.8.8
- sudo service dhcpcd restart
- more /etc/resolv.conf
Push the image tag to Docker Hub
- sudo docker push master1qr/demo-boot name_servers=8.8.8.8
Docker was full of resources not used.
- docker container ls -a
- docker container prune
- docker image prune -a
To remove a particular image:
- docker rmi image demo-boot
On Master node
- kubectl drain --ignore-daemonsets pc1-slave
- kubectl delete node pc1-slave
On Slave node
kubadm reset
- kubectl run demo-boot --image=master1qr/demo-boot:jsurf --replicas=2 -l conf=rufus,app=demo-boot
- kubectl expose deployment demo-boot --port=8181 --target-port=8080 --type=NodePort
On MAC
- brew install azure/draft/draft
- draft init
- draft create
https://snapcraft.io/install/helm/raspbian
export HELM_VERSION=v2.9.1
export HELM_INSTALL_DIR=~/bin
mkdir bin
wget https://kubernetes-helm.storage.googleapis.com/helm-$HELM_VERSION-linux-arm.tar.gz
tar xvzf helm-$HELM_VERSION-linux-arm.tar.gz
mv linux-arm/helm $HELM_INSTALL_DIR/helm
rm -rf linux-arm
helm list
### Since November 13, 2020, the new location for the stable repository is https://charts.helm.sh/stable and the new location for the incubator repository is https://charts.helm.sh/incubator.
kubectl proxy --port=8080 &
./helm init --stable-repo-url=https://charts.helm.sh/stable --tiller-image=jessestuart/tiller:v2.9.1
sudo ./helm repo add arm-stable https://peterhuene.github.io/arm-charts/stable
sudo ./helm install arm-stable/mariadb
sudo apt update
sudo apt install snapd
sudo reboot
sudo snap install helm --classic
Install Traefik Ingress Controler before going forward
-
cd /home/javarock2/work/helm/ngnix-rpi/charts
-
helm install nginx ngnix-rpi/
-
http://192.168.0.17/ > > Welcome to nginx!
-
kubectl exec nginx-944578d54-ght5g -- nginx -v
-
helm upgrade --set replicaCount=5,image.tag="arm32v7/nginx:stable" nginx ngnix-rpi/ --debug
-
helm rollback nginx 1
-
helm uninstall nginx
-
helm repo add traefik https://containous.github.io/traefik-helm-chart
-
helm repo update
-
helm search repo traefik
helm install my-traefik-release stable/traefik --set dashboard.enabled=true,serviceType=NodePort,dashboard.domain=dashboard.traefik,rbac.enabled=true,externalIP=192.168.0.17,imageTag=1.7.12 --namespace kube-system --debug
-
helm install traefik traefik/traefik
-
kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name) 9000:9000
-
kubectl patch service traefik \-n default \-p '{"spec": {"type": "LoadBalancer", "externalIPs":["192.168.0.17"]}}'