-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpodman.yaml
More file actions
78 lines (78 loc) · 1.98 KB
/
podman.yaml
File metadata and controls
78 lines (78 loc) · 1.98 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
apiVersion: v1
kind: Pod
metadata:
name: centaurx
spec:
containers:
- name: centaurx
image: docker.io/pktsystems/centaurx:v0.5.1
args: ["serve", "-c", "/cx/config-for-container.yaml"]
env:
- name: HOME
value: /centaurx
- name: CENTAURX_HOST_STATE_DIR
value: ${HOME}/.centaurx/state
- name: CENTAURX_HOST_REPO_ROOT
value: ${HOME}/.centaurx/repos
ports:
- containerPort: 27480
hostPort: 27480
protocol: TCP
- containerPort: 27422
hostPort: 27422
protocol: TCP
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- name: centaurx-state
mountPath: /cx/state
- name: centaurx-repos
mountPath: /cx/repos
- name: centaurx-config
mountPath: /cx/config-for-container.yaml
readOnly: true
- name: podman-sock
mountPath: /cx/podman.sock
readOnly: true
- name: tmp
mountPath: /tmp
- name: run
mountPath: /run
- name: var-run
mountPath: /var/run
- name: var-tmp
mountPath: /var/tmp
- name: centaurx-home
mountPath: /centaurx
volumes:
- name: centaurx-state
hostPath:
path: ${HOME}/.centaurx/state
type: DirectoryOrCreate
- name: centaurx-repos
hostPath:
path: ${HOME}/.centaurx/repos
type: DirectoryOrCreate
- name: centaurx-config
hostPath:
path: ${HOME}/.centaurx/config-for-container.yaml
type: File
- name: podman-sock
hostPath:
path: /run/user/${UID}/podman/podman.sock
type: Socket
- name: tmp
emptyDir:
medium: Memory
- name: run
emptyDir:
medium: Memory
- name: var-run
emptyDir:
medium: Memory
- name: var-tmp
emptyDir:
medium: Memory
- name: centaurx-home
emptyDir:
medium: Memory