Skip to content

Commit 9607833

Browse files
authored
Remove mount on /etc folder. (#387)
The example deployment of ToolHive Registry Server mounted an `emptyDir` volume on top of `/etc`. This is a leftover of some local testing and is definitely not something we should suggest users to do. Thanks @dmartinol for finding it.
1 parent 4785f19 commit 9607833

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/toolhive/guides-registry/deployment.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ spec:
5151
command:
5252
- /bin/sh
5353
- -c
54-
- cp /cfg/* /etc/ && chmod 0600 /etc/pgpass && chown 65532:65532
55-
/etc/pgpass
54+
- cp /cfg/* /thv/ && chmod 0600 /thv/pgpass && chown 65532:65532
55+
/thv/pgpass
5656
volumeMounts:
57-
- name: etc
58-
mountPath: /etc
57+
- name: thv
58+
mountPath: /thv
5959
- name: config
6060
mountPath: /cfg/config.yaml
6161
subPath: config.yaml
@@ -67,16 +67,16 @@ spec:
6767
image: ghcr.io/stacklok/toolhive-registry-server/thv-registry-api:latest
6868
args:
6969
- serve
70-
- --config=/etc/config.yaml
70+
- --config=/thv/config.yaml
7171
env:
7272
- name: PGPASSFILE
73-
value: /etc/pgpass
73+
value: /thv/pgpass
7474
ports:
7575
- containerPort: 8080
7676
name: http
7777
volumeMounts:
78-
- name: etc
79-
mountPath: /etc
78+
- name: thv
79+
mountPath: /thv
8080
readOnly: true
8181
livenessProbe:
8282
httpGet:
@@ -91,7 +91,7 @@ spec:
9191
initialDelaySeconds: 5
9292
periodSeconds: 5
9393
volumes:
94-
- name: etc
94+
- name: thv
9595
emptyDir: {}
9696
- name: config
9797
configMap:

0 commit comments

Comments
 (0)