Skip to content

Commit 215263d

Browse files
committed
Chore: change filebrowser database path.
1 parent c2b4832 commit 215263d

5 files changed

Lines changed: 60 additions & 6 deletions

File tree

config/deployment/templates/chantico.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ spec:
2626
annotations:
2727
kubectl.kubernetes.io/default-container: manager
2828
spec:
29+
securityContext:
30+
runAsNonRoot: true
31+
seccompProfile:
32+
type: RuntimeDefault
2933
containers:
3034
- name: manager
3135
image: {{ .Values.controller.image }}
@@ -68,6 +72,8 @@ spec:
6872
capabilities:
6973
drop:
7074
- ALL
75+
seccompProfile:
76+
type: RuntimeDefault
7177
volumeMounts:
7278
- name: chantico-volume
7379
mountPath: /data
@@ -78,7 +84,5 @@ spec:
7884
imagePullSecrets:
7985
- name: {{ .Values.imagePullSecretName }}
8086
serviceAccountName: chantico-controller-manager
81-
securityContext:
82-
runAsNonRoot: true
8387
terminationGracePeriodSeconds: 10
8488
{{- end }}

config/deployment/templates/filebrowser.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,23 @@ spec:
1313
labels:
1414
app: chantico-filebrowser
1515
spec:
16+
securityContext:
17+
runAsNonRoot: true
18+
runAsUser: 1000
19+
fsGroup: 1000
20+
seccompProfile:
21+
type: RuntimeDefault
1622
containers:
1723
- name: filebrowser
1824
image: filebrowser/filebrowser:v2.32.2
25+
securityContext:
26+
allowPrivilegeEscalation: false
27+
capabilities:
28+
drop:
29+
- ALL
30+
runAsNonRoot: true
31+
seccompProfile:
32+
type: RuntimeDefault
1933
ports:
2034
- containerPort: 80
2135
volumeMounts:
@@ -25,9 +39,9 @@ spec:
2539
- sh
2640
- -c
2741
- |
28-
/filebrowser config init;
29-
/filebrowser users add admin admin;
30-
/filebrowser
42+
/filebrowser config init --database /srv/.filebrowser.db;
43+
/filebrowser users add admin admin --database /srv/.filebrowser.db;
44+
/filebrowser --database /srv/.filebrowser.db
3145
volumes:
3246
- name: chantico-volume-mount
3347
persistentVolumeClaim:

config/deployment/templates/prometheus.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,25 @@ spec:
2929
subPath: "prometheus"
3030
ports:
3131
- containerPort: 9090
32+
securityContext:
33+
allowPrivilegeEscalation: false
34+
capabilities:
35+
drop:
36+
- ALL
37+
runAsNonRoot: true
38+
seccompProfile:
39+
type: RuntimeDefault
3240
initContainers:
3341
- image: busybox
3442
name: prometheus-initialization
43+
securityContext:
44+
allowPrivilegeEscalation: false
45+
capabilities:
46+
drop:
47+
- ALL
48+
runAsNonRoot: true
49+
seccompProfile:
50+
type: RuntimeDefault
3551
command: ["/bin/sh"]
3652
args:
3753
- -c

config/deployment/templates/snmp.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ spec:
1616
app: chantico-snmp
1717
spec:
1818
securityContext:
19+
runAsNonRoot: true
20+
runAsUser: 1000
1921
fsGroup: 1000
22+
seccompProfile:
23+
type: RuntimeDefault
2024
containers:
2125
- image: ricardbejarano/snmp_exporter:0.26.0
2226
name: snmp
@@ -26,9 +30,25 @@ spec:
2630
subPath: "snmp/yml/snmp.yml"
2731
ports:
2832
- containerPort: 9116
33+
securityContext:
34+
allowPrivilegeEscalation: false
35+
capabilities:
36+
drop:
37+
- ALL
38+
runAsNonRoot: true
39+
seccompProfile:
40+
type: RuntimeDefault
2941
initContainers:
3042
- image: busybox
3143
name: structure-initialization
44+
securityContext:
45+
allowPrivilegeEscalation: false
46+
capabilities:
47+
drop:
48+
- ALL
49+
runAsNonRoot: true
50+
seccompProfile:
51+
type: RuntimeDefault
3252
command: ["/bin/sh"]
3353
args:
3454
- -c

docs/how-tos/how-to-install-chantico.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The GitLab repository of Chantico hosts several relevant images, including the o
4040

4141
1. Install CRDs
4242

43-
The CRDs used by Chantico are typically already in place under `config/deployment/crd`. If you want to (re)install them there, do so with the following make command:
43+
Install the CRDs within `config/deployment/crd` to the cluster:
4444
```
4545
make install
4646
```

0 commit comments

Comments
 (0)