secondary-daemonset.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: isc-dhcp-secondary
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: isc-dhcp-secondary
  9. app.kubernetes.io/part-of: isc-dhcp
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: isc-dhcp-secondary
  14. app.kubernetes.io/part-of: isc-dhcp
  15. spec:
  16. affinity:
  17. nodeAffinity:
  18. requiredDuringSchedulingIgnoredDuringExecution:
  19. nodeSelectorTerms:
  20. - matchExpressions:
  21. - key: isc-dhcp-secondary.cluster.local/schedulable
  22. operator: In
  23. values:
  24. - "true"
  25. tolerations:
  26. - key: "workstation.cluster.local"
  27. operator: "Equal"
  28. value: "true"
  29. effect: "NoSchedule"
  30. hostNetwork: true
  31. containers:
  32. - image: harbor.home.wugi.info/library/isc-dhcp:0633b40c
  33. name: guix
  34. volumeMounts:
  35. - mountPath: /etc/dhcpd.conf
  36. subPath: dhcpd.conf
  37. readOnly: true
  38. name: config
  39. volumes:
  40. - name: config
  41. configMap:
  42. name: isc-dhcp-secondary-configuration