primary-daemonset.yaml 1002 B

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