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

updated base deployment with new image

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