Code refactoring for bpa operator
[icn.git] / env / metal3 / 04_dhcp.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: bootstrap-cluster-dhcp
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       name: bootstrap-cluster-dhcp
10   template:
11     metadata:
12       labels:
13         name: bootstrap-cluster-dhcp
14     spec:
15       hostNetwork: true
16       containers:
17         - name: dhcp
18           image: networkboot/dhcpd
19           securityContext:
20             privileged: true
21           command: ["/entrypoint.sh"]
22           args: ["dhcp0"]
23           volumeMounts:
24             - mountPath: /data
25               name: dhcp-data-volume
26       volumes:
27         - name: dhcp-data-volume
28           hostPath:
29             path: /opt/icn/dhcp/