Commit 0a65f405 authored by Larkin Heintzman's avatar Larkin Heintzman

cluster start up and config updates

parent e6e03d6f
...@@ -22,6 +22,9 @@ Contains scrips and files to create a fielded ros kubernetes cluster. ...@@ -22,6 +22,9 @@ Contains scrips and files to create a fielded ros kubernetes cluster.
<!-- remote desktop tutorial: <!-- remote desktop tutorial:
https://www.e2enetworks.com/help/knowledge-base/how-to-install-remote-desktop-xrdp-on-ubuntu-18-04/ https://www.e2enetworks.com/help/knowledge-base/how-to-install-remote-desktop-xrdp-on-ubuntu-18-04/
CUDA container install and tutorial:
https://abhishekbose550.medium.com/deep-learning-for-production-deploying-yolo-using-docker-2c32bb50e8d6
start docker registry: "docker run -d -p 5000:5000 --name registry registry:2.7" start docker registry: "docker run -d -p 5000:5000 --name registry registry:2.7"
then build and tag images "docker tag <orig>:latest localhost:5000/<orig>:latest" and follow with "docker push localhost:5000/<orig>:latest" then kubernetes should be able to find the image then build and tag images "docker tag <orig>:latest localhost:5000/<orig>:latest" and follow with "docker push localhost:5000/<orig>:latest" then kubernetes should be able to find the image
--> -->
......
...@@ -9,9 +9,11 @@ ...@@ -9,9 +9,11 @@
# VIP="$ip1.$ip2.$ip3.25" # virtual ip addr # VIP="$ip1.$ip2.$ip3.25" # virtual ip addr
# IFS=$OLDIFS # IFS=$OLDIFS
VIP="192.168.1.25" # vip for load balancer VIP="192.168.111.25" # vip for load balancer
INTERFACE="wlp0s20f3" # laptop interface # INTERFACE="wlp0s20f3" # laptop interface
JINTERFACE="wlan0" # jetson interface INTERFACE="enp8s0" # laptop interface
# JINTERFACE="wlan0" # jetson interface
JINTERFACE="eth0" # jetson interface
echo "Using interface: $INTERFACE" echo "Using interface: $INTERFACE"
echo "Using jetson interface: $JINTERFACE" echo "Using jetson interface: $JINTERFACE"
...@@ -58,7 +60,7 @@ OLDIFS=$IFS ...@@ -58,7 +60,7 @@ OLDIFS=$IFS
IFS='' IFS=''
ifCMD="ip route get 8.8.8.8 | awk -F'dev ' 'NR==1{split(\$2,a,\" \");print a[1]}'" ifCMD="ip route get 8.8.8.8 | awk -F'dev ' 'NR==1{split(\$2,a,\" \");print a[1]}'"
vipCMD="sudo docker run --network host --rm ghcr.io/kube-vip/kube-vip:main manifest pod --vip "$VIP" \ vipCMD="sudo docker run --network host --rm ghcr.io/kube-vip/kube-vip:main manifest pod --vip "$VIP" \
--interface wlan0 \ --interface "$JINTERFACE" \
--arp \ --arp \
--controlplane \ --controlplane \
--leaderElection | sudo tee /etc/kubernetes/manifests/vip.yaml" --leaderElection | sudo tee /etc/kubernetes/manifests/vip.yaml"
......
...@@ -3,7 +3,7 @@ apiVersion: kubeadm.k8s.io/v1beta3 ...@@ -3,7 +3,7 @@ apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration kind: ClusterConfiguration
kubernetesVersion: v1.24.0 kubernetesVersion: v1.24.0
# gets set by startup # gets set by startup
controlPlaneEndpoint: 192.168.1.25:6443 controlPlaneEndpoint: 192.168.111.25:6443
networking: networking:
podSubnet: "10.244.0.0/16" podSubnet: "10.244.0.0/16"
# api: # api:
......
...@@ -25,16 +25,18 @@ spec: ...@@ -25,16 +25,18 @@ spec:
- key: "node-role.kubernetes.io/control-plane" - key: "node-role.kubernetes.io/control-plane"
effect: "NoSchedule" effect: "NoSchedule"
operator: "Exists" operator: "Exists"
- key: "node.kubernetes.io/disk-pressure"
effect: "NoSchedule"
operator: "Exists"
volumes: volumes:
- name: ping-storage - name: ping-storage
hostPath: hostPath:
path: /home/llh/pingStats path: /home/larkin/pingStats
terminationGracePeriodSeconds: 3 terminationGracePeriodSeconds: 3
containers: containers:
- name: ping - name: ping
securityContext: securityContext:
privileged: true privileged: true
# image: doorbell:latest
volumeMounts: volumeMounts:
- name: ping-storage - name: ping-storage
mountPath: /tmp/pingStats mountPath: /tmp/pingStats
...@@ -44,7 +46,7 @@ spec: ...@@ -44,7 +46,7 @@ spec:
args: ["-c", "/ping.sh & while true; do sleep 10; done;"] args: ["-c", "/ping.sh & while true; do sleep 10; done;"]
env: env:
- name: endpoints - name: endpoints
value: "192.168.1.230" value: "192.168.111.200"
- name: filename - name: filename
value: "/tmp/pingStats/pingStats.json" value: "/tmp/pingStats/pingStats.json"
ports: ports:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment