Skip to content

Instantly share code, notes, and snippets.

@Lillecarl
Created January 21, 2026 10:37
Show Gist options
  • Select an option

  • Save Lillecarl/4ac32c791e2bb79383200ced86ac8f2b to your computer and use it in GitHub Desktop.

Select an option

Save Lillecarl/4ac32c791e2bb79383200ced86ac8f2b to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
annotations:
kubectl.kubernetes.io/default-container: cifsmounter
labels:
app.kubernetes.io/name: cifsmounter
name: cifsmounter-hn94h
namespace: kube-system
spec:
containers:
- command:
- /nix/store/fmsr47r21ryayc420xs4ma6p2gvqy0pq-tini-0.19.0/bin/tini
- /nix/store/d75200gb22v7p0703h5jrkgg8bqydk5q-coreutils-9.8/bin/sleep
- infinity
env:
- name: server_addr
value: //u531666-sub1.your-storagebox.de/531666-sub1
- name: test_file
value: /nix/store/s2i01x44f84q9rplj6j7x17hbgzfb32m-test_file
envFrom:
- secretRef:
name: sb1-kube
image: ghcr.io/lillecarl/nix-csi/scratch:1.0.1
name: cifsmounter
volumeMounts:
- mountPath: /nix
name: nix-store
readOnly: true
subPath: nix
- mountPath: /bin
name: nix-store
readOnly: true
subPath: bin
- mountPath: /sbin
name: nix-store
readOnly: true
subPath: sbin
- mountPath: /etc/group
name: nix-store
readOnly: true
subPath: etc/group
- mountPath: /etc/passwd
name: nix-store
readOnly: true
subPath: etc/passwd
- mountPath: /etc/nsswitch.conf
name: nix-store
readOnly: true
subPath: etc/nsswitch.conf
- mountPath: /etc/ssl
name: nix-store
readOnly: true
subPath: etc/ssl
- mountPath: /etc/pki
name: nix-store
readOnly: true
subPath: etc/pki
- mountPath: /var/lib/cifs
name: cifs
volumes:
- hostPath:
path: /var/lib/cifs
type: DirectoryOrCreate
name: cifs
- csi:
driver: nix.csi.store
readOnly: true
volumeAttributes:
x86_64-linux: /nix/store/dpb1csc8cqylkdm5vg6saz4cr0zdi0k7-cifsmounter-env
name: nix-store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment