blob: 7daaeb677b40e8bca0e73f82b135618cd429abd7 [file] [log] [blame]
Zack Williams2749ae52018-09-28 09:43:43 -07001---
Luca Preteb618ded2018-04-03 10:28:04 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080016apiVersion: apps/v1
Luca Preteb618ded2018-04-03 10:28:04 -070017kind: Deployment
18metadata:
19 name: dhcp-server
20 labels:
21 app: dhcp-server
22spec:
23 replicas: 1
Matteo Scandolo5628d4b2021-01-11 11:46:12 -080024 selector:
25 matchLabels:
26 name: dhcp-server
27 release: {{ .Release.Name }}
Luca Preteb618ded2018-04-03 10:28:04 -070028 template:
29 metadata:
30 labels:
31 app: dhcp-server
32 spec:
33 containers:
34 - name: dhcp-server
Zack Williams2749ae52018-09-28 09:43:43 -070035 image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}
36 imagePullPolicy: {{ .Values.image.pullPolicy }}
Luca Preteb618ded2018-04-03 10:28:04 -070037 #command: ["/bin/bash", "-", "sleep 86400"]
38 ports:
39 - containerPort: 67
40 port: 67
41 protocol: UDP
42 volumeMounts:
43 - name: dhcp-server
44 mountPath: /data/dhcpd.conf
45 subPath: mymounts/dhcpd.conf
46 volumes:
47 - name: dhcp-server
48 configMap:
49 name: dhcp-server
50 items:
51 - key: config
52 path: mymounts/dhcpd.conf