Commit 7a041b3d authored by Larkin Heintzman's avatar Larkin Heintzman

updated base deployment with new image

parent 84e4d4c5
apiVersion: apps/v1
kind: Deployment
metadata:
name: base
name: basestation
labels:
app: cluster
node: base
node: basestation
spec:
replicas: 1
selector:
matchLabels:
node: base
node: basestation
app: cluster
template:
metadata:
labels:
app: cluster # gotta match spec-template-metadata-labels
node: base
node: basestation
spec:
hostname: service-master
volumes:
- name: image-storage
persistentVolumeClaim:
claimName: image-volume-claim
hostname: basestation
tolerations:
- key: "node-role.kubernetes.io/master"
effect: "NoSchedule"
operator: "Exists"
- key: "node-role.kubernetes.io/control-plane"
effect: "NoSchedule"
operator: "Exists"
- key: "node.kubernetes.io/disk-pressure"
effect: "NoSchedule"
operator: "Exists"
containers:
- name: base
- name: basestation
securityContext:
privileged: true
volumeMounts:
- name: image-storage
mountPath: /home/ssher/imageNFS
image: llh/basestation:v0
command: ["/bin/bash"]
args: ["-c", "source /opt/ros_ws/devel/setup.bash && /usr/local/bin/ros_entrypoint.sh && roscore"]
image: localhost:5000/ros-base-station:latest
command: ["usr/bin/bash"]
args: ["-c", "source /opt/ros/noetic/setup.bash && source /catkin_ws/devel/setup.bash && alias python=python3 && echo ready && /usr/sbin/sshd -D"]
ports:
- containerPort: 11311
name: baseport
nodeSelector:
kubernetes.io/hostname: pop-os
kubernetes.io/hostname: turbokang
---
apiVersion: v1
......@@ -46,12 +49,12 @@ metadata:
name: service-master
labels:
app: cluster
node: base
node: basestation
spec:
clusterIP: None
ports:
- port: 11311
name: base
name: basestation
selector:
node: base
node: basestation
app: cluster
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