Skip to content

Instantly share code, notes, and snippets.

@frobware
Created August 28, 2024 13:00
Show Gist options
  • Save frobware/8da4158eaf7d62f2a8f825bc4f39fb19 to your computer and use it in GitHub Desktop.
Save frobware/8da4158eaf7d62f2a8f825bc4f39fb19 to your computer and use it in GitHub Desktop.
bpfdaemon with Nix paths mounted
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: daemon
namespace: kube-system
spec:
template:
spec:
containers:
- name: bpfman-supervisor
volumeMounts:
- name: home-dir
mountPath: /home/aim
- name: nix-default-profile
mountPath: /nix/var/nix/profiles/default
- name: nix-user-profile
mountPath: /home/aim/.nix-profile
- name: nix-store
mountPath: /nix/store
readOnly: true
volumes:
- name: home-dir
hostPath:
path: /home/aim
type: Directory
- name: nix-default-profile
hostPath:
path: /nix/var/nix/profiles/default
type: Directory
- name: nix-user-profile
hostPath:
path: /home/aim/.nix-profile
type: Directory
- name: nix-store
hostPath:
path: /nix/store
type: Directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment