Skip to content

Instantly share code, notes, and snippets.

@alexlovelltroy
Last active May 6, 2019 20:33
Show Gist options
  • Save alexlovelltroy/346a9f5200e7b3711e452c3e05fd9b9e to your computer and use it in GitHub Desktop.
Save alexlovelltroy/346a9f5200e7b3711e452c3e05fd9b9e to your computer and use it in GitHub Desktop.
DaemonSet for controling the light rings on NUCs. Kubernetes running on debian stretch
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nuc-light-control
spec:
selector:
matchLabels:
name: nuc-light-control
template:
metadata:
labels:
name: nuc-light-control
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: nuc-light-sleep
image: alexlovelltroy/infinitesleep:latest
initContainers:
- name: nuc-light-control
image: alexlovelltroy/nuc_light_control:stretch
env:
- name: BRIGHT
value: "80"
- name: COLOR
value: "cyan"
- name: FADE
value: "fade_slow"
securityContext:
capabilities:
add: ["SYS_MODULE"]
volumeMounts:
- name: proc
mountPath: /writable_proc
volumes:
- name: proc
hostPath:
path: /proc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment