khuedoan-homelab/experimental/cluster-api/dhcp-server/deployment.yaml

32 lines
616 B
YAML
Raw Normal View History

2021-07-21 03:31:14 +07:00
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dhcp-server
name: dhcp-server
spec:
replicas: 1
selector:
matchLabels:
app: dhcp-server
template:
metadata:
labels:
app: dhcp-server
spec:
containers:
- image: networkboot/dhcpd:1.1.0
name: dhcpd
volumeMounts:
- name: config
mountPath: /data/dhcpd.conf
subPath: dhcpd.conf
hostNetwork: true
volumes:
- name: config
configMap:
name: dhcp-server
items:
- key: dhcpd.conf
path: dhcpd.conf