Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Multi-stage build: one image with all Spur binaries
FROM rust:1.82 AS builder
FROM rust:1.94.1 AS builder

WORKDIR /build
COPY . .

RUN apt-get update && apt-get install -y --no-install-recommends \
protobuf-compiler \
libprotobuf-dev \
&& rm -rf /var/lib/apt/lists/*

# Build all workspace binaries in release mode
RUN cargo build --release \
--bin spur \
Expand Down
7 changes: 4 additions & 3 deletions deploy/k8s/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ metadata:
namespace: spur
data:
spur.conf: |
[cluster]
name = "spur-k8s"
cluster_name = "spur-k8s"

[scheduler]
interval_secs = 2
Expand All @@ -17,8 +16,10 @@ data:
enabled = true
address = "spurdbd.spur.svc.cluster.local:6819"

[partitions.default]
[[partitions]]
name = "default"
state = "UP"
default = true
nodes = "ALL"
max_time = "7d"
default_time = "1h"
1 change: 0 additions & 1 deletion deploy/k8s/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ spec:
image: spur:latest
command: [spur-k8s-operator]
args:
- run
- --controller-addr=spurctld.spur.svc.cluster.local:6817
- --listen=[::]:6818
- --namespace=spur
Expand Down
18 changes: 10 additions & 8 deletions deploy/k8s/spurctld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ spec:
- name: config
configMap:
name: spur-config
volumeClaimTemplates:
- metadata:
name: spool
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 10Gi
- name: spool
emptyDir: {}
# volumeClaimTemplates:
# - metadata:
# name: spool
# spec:
# accessModes: [ReadWriteOnce]
# resources:
# requests:
# storage: 10Gi
2 changes: 1 addition & 1 deletion deploy/k8s/spurrestd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
command: [spurrestd]
args:
- --listen=[::]:6820
- --controller=spurctld.spur.svc.cluster.local:6817
- --controller=http://spurctld.spur.svc.cluster.local:6817
ports:
- containerPort: 6820
name: http
Expand Down
Loading