kind: Pod apiVersion: v1 metadata: name: testpod-dhcp-server namespace: cni-tests annotations: k8s.v1.cni.cncf.io/networks: '[{"name": "dhcp8brbw", "ips": ["10.255.255.201/24"]}]' spec: volumes: - name: "dhcp" emptyDir: initContainers: - name: initcontainer image: quay.io/ocp-edge-qe/cnf-gotests-client:v4.10 volumeMounts: - name: "dhcp" mountPath: "/etc/dhcp/" command: - sh - '-c' - "echo subnet 10.255.255.0 netmask 255.255.255.0 \"{option broadcast-address 10.255.255.255; default-lease-time 3600; allow duplicates; max-lease-time 7200; interface net1;}\" host test0 \"{hardware ethernet 20:04:0f:f1:88:A1; fixed-address 10.255.255.1; max-lease-time 7200;}\" host test1 \"{hardware ethernet 20:04:0f:f1:88:A3; fixed-address 10.255.255.2; max-lease-time 7200;}\" host test2 \"{hardware ethernet 20:04:0f:f1:88:B2; fixed-address 10.255.255.3; max-lease-time 7200;}\" host test3 \"{hardware ethernet 20:04:0f:f1:88:B4; fixed-address 10.255.255.4; max-lease-time 7200;}\" \u003e /etc/dhcp/dhcpd.conf" containers: - name: test volumeMounts: - name: "dhcp" mountPath: "/etc/dhcp/" image: quay.io/ocp-edge-qe/cnf-gotests-client:v4.10 command: - "/bin/bash" - "-c" args: - "cat /etc/dhcp/dhcpd.conf && /usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf && sleep INF" securityContext: privileged: true restartPolicy: Always nodeSelector: kubernetes.io/hostname: helix09.lab.eng.tlv2.redhat.com