-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoctoprint.yaml
38 lines (38 loc) · 882 Bytes
/
octoprint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: apps/v1
kind: Deployment
metadata:
name: octoprint-deployment
namespace: octoprint
labels:
app: octoprint
spec:
replicas: 1
selector:
matchLabels:
app: octoprint
template:
metadata:
labels:
app: octoprint
spec:
containers:
- name: octoprint
image: registry-test.lan:5000/octoprint:0.1
env:
- name: SOCAT_PRINTER_TYPE
value: "tcp"
- name: SOCAT_PRINTER_HOST
value: "k3sw002.lan"
- name: SOCAT_PRINTER_PORT
value: "4000"
- name: SOCAT_PRINTER_LINK
value: "/dev/ttyACM0"
volumeMounts:
- name: octostorage
mountPath: "/root/.octoprint"
ports:
- containerPort: 8080
volumes:
- name: octostorage
persistentVolumeClaim:
claimName: octoprint-claim