-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsua-service.yaml
54 lines (54 loc) · 1.24 KB
/
sua-service.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: apps/v1
kind: Deployment
metadata:
name: suaservice
labels:
app: suaservice
spec:
replicas: 1
selector:
matchLabels:
app: suaservice
template:
metadata:
labels:
app: suaservice
spec:
containers:
- name: suaservice
image: ghcr.io/eclipse-leda/leda-contrib-self-update-agent/self-update-agent:latest
command: ["/app/sdv-self-update-agent"]
args: ["-p", "/data/selfupdates"]
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /var/run/dbus/system_bus_socket
name: system-dbus-socket
readOnly: true
- mountPath: /RaucUpdate
name: shared-rauc-vol
ports:
- name: default
containerPort: 50052
protocol: TCP
imagePullSecrets:
- name: ghcr-user
volumes:
- hostPath:
path: /var/run/dbus/system_bus_socket
name: system-dbus-socket
- hostPath:
path: /data/selfupdates
name: shared-rauc-vol
---
apiVersion: v1
kind: Service
metadata:
name: suaservice-nodeport
spec:
type: NodePort
selector:
app: suaservice
ports:
- port: 50052
targetPort: 50052
nodePort: 30052