Skip to content

Commit 2b1a5fb

Browse files
committed
fix: update README.md for installtion add Dockerfile version and labels
Signed-off-by: Kevin Klopfenstein <kk@sudo-i.net>
1 parent bdc99e6 commit 2b1a5fb

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ spec:
4444
initContainers:
4545
- name: install-capsule-plugin
4646
image: ghcr.io/projectcapsule/headlamp-plugin:vX.Y.Z
47-
command: ['cp', '-r', '/plugins/capsule', '/plugins']
47+
command: ['/bin/cp', '-r', '/plugins/capsule', '/target/plugins']
48+
volumeMounts:
49+
- name: plugins
50+
mountPath: /target/plugins
51+
containers:
52+
- name: headlamp
4853
volumeMounts:
4954
- name: plugins
5055
mountPath: /plugins
@@ -60,7 +65,6 @@ spec:
6065
6166
#### Using an image volume (Kubernetes 1.31+)
6267
63-
Build the image from the repo `Dockerfile`, push it to your registry, then mount it directly using the native Kubernetes image volume feature (no initContainer needed):
6468
6569
```yaml
6670
spec:
@@ -74,7 +78,7 @@ spec:
7478
volumes:
7579
- name: plugins
7680
image:
77-
reference: your-registry/capsule-plugin:vX.Y.Z
81+
reference: ghcr.io/projectcapsule/headlamp-plugin:vX.Y.Z
7882
pullPolicy: IfNotPresent
7983
```
8084

0 commit comments

Comments
 (0)