Skip to content

Commit

Permalink
Made 5/8 programs running succesfully on kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
flimdejong committed Oct 21, 2024
1 parent 5232577 commit 593c846
Showing 1 changed file with 100 additions and 96 deletions.
196 changes: 100 additions & 96 deletions docker/runner/kube.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,6 @@
# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: roboteam-build-pvc
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 1Gi

# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: roboteam-interface-pvc
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 1Gi

# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: roboteam-autoref-pvc
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 1Gi
#/home/roboteamtwente/roboteam

# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# name: roboteam-root-pvc
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 5Gi

---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -83,11 +37,11 @@ spec:
- name: roboteam-primary-ai
image: roboteamtwente/roboteam:kubernetes
command: ["/bin/sh"]
args: ["-c", "/home/roboteamtwente/bin/roboteam_ai --primary-ai"]
args: ["-c", "/home/roboteamtwente/roboteam/build/release/bin/roboteam_ai --primary-ai"]
env:
- name: LD_LIBRARY_PATH
value: /home/roboteamtwente/lib
workingDir: /home/roboteamtwente
value: /home/roboteamtwente/roboteam/build/release/lib
workingDir: /home/roboteamtwente/roboteam

resources:
requests:
Expand Down Expand Up @@ -116,11 +70,11 @@ spec:
- name: roboteam-observer-sim
image: roboteamtwente/roboteam:kubernetes
command: ["/bin/sh"]
args: ["-c", "/home/roboteamtwente/bin/roboteam_observer --vision-ip 224.5.23.2 --referee-ip 224.5.23.1 --vision-port 10020 --referee-port 10003 --log"]
args: ["-c", "/home/roboteamtwente/roboteam/build/release/bin/roboteam_observer --vision-ip 224.5.23.2 --referee-ip 224.5.23.1 --vision-port 10020 --referee-port 10003 --log"]
env:
- name: LD_LIBRARY_PATH
value: /home/roboteamtwente/lib
workingDir: /home/roboteamtwente
- name: LD_LIBRARY_PATH
value: /home/roboteamtwente/roboteam/build/release/lib
workingDir: /home/roboteamtwente/roboteam

resources:
requests:
Expand All @@ -133,11 +87,11 @@ spec:
- name: roboteam-robothub-sim
image: roboteamtwente/roboteam:kubernetes
command: ["/bin/sh"]
args: ["-c", "/home/roboteamtwente/bin/roboteam_robothub"]
args: ["-c", "/home/roboteamtwente/roboteam/build/release/bin/roboteam_robothub"]
env:
- name: LD_LIBRARY_PATH
value: "/home/roboteamtwente/lib/"
workingDir: /home/roboteamtwente/
- name: LD_LIBRARY_PATH
value: /home/roboteamtwente/roboteam/build/release/lib
workingDir: /home/roboteamtwente/roboteam

resources:
requests:
Expand All @@ -149,26 +103,33 @@ spec:

# - name: roboteam-interface
# image: roboteamtwente/roboteam:kubernetes
# workingDir: "/home/roboteamtwente/"
# command: ["/bin/sh", "-c"]
# args: ["yarn serve --host 0.0.0.0"]
# command: ["/bin/sh"]
# args: ["-c", "yarn serve --host 0.0.0.0"]
# ports:
# - containerPort: 8080
# volumeMounts:
# - name: roboteam-interface
# mountPath: /home/roboteamtwente
# workingDir: /home/roboteamtwente/

# resources:
# requests:
# cpu: 100m
# memory: 128Mi
# limits:
# cpu: 500m
# memory: 500Mi

# - name: roboteam-autoref
# image: gradle:8.4.0-jdk17
# workingDir: "/home/roboteamtwente/"
# command: ["/bin/sh", "-c"]
# args: ["./gradlew run --args=\"-cli --world-ip=127.0.0.1 --world-port=5558 --gc-ip=127.0.0.1 --gc-port=10007\""]
# env:
# - name: GRADLE_USER_HOME
# value: "/home/roboteamtwente/.cache"
# volumeMounts:
# - name: roboteam-autoref
# mountPath: /home/roboteamtwente
# command: ["/bin/sh"]
# args: ["-c", "./gradlew run --args=\"-cli --world-ip=127.0.0.1 --world-port=5558 --gc-ip=127.0.0.1 --gc-port=10007\""]

# resources:
# requests:
# cpu: 100m
# memory: 128Mi
# limits:
# cpu: 500m
# memory: 500Mi

# - name: erforce-autoref-sim
# image: roboteamtwente/roboteam:kubernetes
Expand All @@ -181,12 +142,24 @@ spec:

# - name: erforce-simulator
# image: roboteamtwente/roboteam:kubernetes
# workingDir: "/home/roboteamtwente/external/framework/build/bin/"
# command: ["/bin/sh", "-c"]
# args: ["./simulator-cli"]
# volumeMounts:
# - name: roboteam-root
# mountPath: /home/roboteamtwente
# workingDir: "/home/roboteamtwente/roboteam/external/framework/build/bin/"
# command: ["/bin/sh"]
# args: ["-c", "./simulator-cli"]
# ports:
# - containerPort: 10301
# - containerPort: 30011
# - containerPort: 10302
# - containerPort: 30012
# - containerPort: 10300
# - containerPort: 30013

# resources:
# requests:
# cpu: 100m
# memory: 128Mi
# limits:
# cpu: 500m
# memory: 500Mi

# volumes:
# - name: ssl-game-controller-config
Expand All @@ -206,21 +179,52 @@ spec:
# persistentVolumeClaim:
# claimName: roboteam-root-pvc

---
apiVersion: v1
kind: Service
metadata:
name: roboteam-simulator-service
spec:
type: NodePort
selector:
app: roboteam-simulator
ports:
- name: ssl-game-controller
port: 8081
targetPort: 8081
nodePort: 30081
- name: roboteam-interface
port: 8080
targetPort: 8080
nodePort: 30080
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: roboteam-simulator-service
# spec:
# type: NodePort
# selector:
# app: roboteam-simulator
# ports:
# - name: ssl-game-controller
# port: 8081
# targetPort: 8081
# nodePort: 30081
# - name: roboteam-interface
# port: 8080
# targetPort: 8080
# nodePort: 30080



# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: erforce-simulator-service
# spec:
# selector:
# app: erforce-simulator
# type: NodePort
# ports:
# - name: blue-control
# port: 10301
# targetPort: 10301
# - name: blue-feedback
# port: 30011
# targetPort: 30011
# - name: yellow-control
# port: 10302
# targetPort: 10302
# - name: yellow-feedback
# port: 30012
# targetPort: 30012
# - name: sim-control
# port: 10300
# targetPort: 10300
# - name: sim-feedback
# port: 30013
# targetPort: 30013

0 comments on commit 593c846

Please sign in to comment.