Skip to content

Commit f617c23

Browse files
committed
flux: docs: Update the docs to use ephemeral dirs
Signed-off-by: Kirill <[email protected]>
1 parent 0e407ac commit f617c23

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

flux/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,32 @@ spec:
9292
persistentVolumeClaim:
9393
claimName: headlamp # The name of the Helm release
9494
```
95+
96+
As alternative, you can also use the Use EmptyDir (Ephemeral Shared Volume) to pass files from the init containers to the main container.
97+
98+
```yaml
99+
config:
100+
pluginsDir: /build/plugins
101+
initContainers:
102+
- command:
103+
- /bin/sh
104+
- -c
105+
- mkdir -p /build/plugins && cp -r /plugins/* /build/plugins/ && chown -R 100:101 /build
106+
image: ghcr.io/headlamp-k8s/headlamp-plugin-flux:latest
107+
imagePullPolicy: Always
108+
name: headlamp-plugins
109+
securityContext:
110+
runAsNonRoot: false
111+
privileged: false
112+
runAsUser: 0
113+
runAsGroup: 0
114+
volumeMounts:
115+
- mountPath: /build/plugins
116+
name: headlamp-plugins
117+
volumeMounts:
118+
- mountPath: /build/plugins
119+
name: headlamp-plugins
120+
volumes:
121+
- name: headlamp-plugins
122+
emptyDir: {}
123+
```

0 commit comments

Comments
 (0)