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.
<!-- remote desktop tutorial:
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"
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 @@
# VIP="$ip1.$ip2.$ip3.25" # virtual ip addr
# IFS=$OLDIFS
VIP="192.168.1.25" # vip for load balancer
INTERFACE="wlp0s20f3" # laptop interface
JINTERFACE="wlan0" # jetson interface
VIP="192.168.111.25" # vip for load balancer
# INTERFACE="wlp0s20f3" # laptop interface
INTERFACE="enp8s0" # laptop interface
# JINTERFACE="wlan0" # jetson interface
JINTERFACE="eth0" # jetson interface
echo "Using interface: $INTERFACE"
echo "Using jetson interface: $JINTERFACE"
......@@ -58,7 +60,7 @@ OLDIFS=$IFS
IFS=''
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" \
--interface wlan0 \
--interface "$JINTERFACE" \
--arp \
--controlplane \
--leaderElection | sudo tee /etc/kubernetes/manifests/vip.yaml"
......
......@@ -3,7 +3,7 @@ apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
kubernetesVersion: v1.24.0
# gets set by startup
controlPlaneEndpoint: 192.168.1.25:6443
controlPlaneEndpoint: 192.168.111.25:6443
networking:
podSubnet: "10.244.0.0/16"
# api:
......
......@@ -25,16 +25,18 @@ spec:
- key: "node-role.kubernetes.io/control-plane"
effect: "NoSchedule"
operator: "Exists"
- key: "node.kubernetes.io/disk-pressure"
effect: "NoSchedule"
operator: "Exists"
volumes:
- name: ping-storage
hostPath:
path: /home/llh/pingStats
path: /home/larkin/pingStats
terminationGracePeriodSeconds: 3
containers:
- name: ping
securityContext:
privileged: true
# image: doorbell:latest
volumeMounts:
- name: ping-storage
mountPath: /tmp/pingStats
......@@ -44,7 +46,7 @@ spec:
args: ["-c", "/ping.sh & while true; do sleep 10; done;"]
env:
- name: endpoints
value: "192.168.1.230"
value: "192.168.111.200"
- name: filename
value: "/tmp/pingStats/pingStats.json"
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