Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ROS-Kubernetes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Larkin Heintzman
ROS-Kubernetes
Commits
0a65f405
Commit
0a65f405
authored
May 18, 2022
by
Larkin Heintzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cluster start up and config updates
parent
e6e03d6f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
README.md
README.md
+3
-0
clusterStartup.sh
clusterStartup.sh
+6
-4
kubeadm-config.yaml
kubeadm-config.yaml
+1
-1
ping-deployment.yaml
kubernetes/ping-deployment.yaml
+5
-3
No files found.
README.md
View file @
0a65f405
...
...
@@ -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
-->
...
...
clusterStartup.sh
View file @
0a65f405
...
...
@@ -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"
...
...
kubeadm-config.yaml
View file @
0a65f405
...
...
@@ -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.1
11
.25:6443
networking
:
podSubnet
:
"
10.244.0.0/16"
# api:
...
...
kubernetes/ping-deployment.yaml
View file @
0a65f405
...
...
@@ -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/l
lh
/pingStats
path
:
/home/l
arkin
/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
.23
0"
value
:
"
192.168.1
11.20
0"
-
name
:
filename
value
:
"
/tmp/pingStats/pingStats.json"
ports
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment