Last active
May 6, 2019 20:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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