blob: 4a63279496ba03b7bb226976dd5fdad78b6261a4 [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
16apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: dhcp-server
20 labels:
21 app: dhcp-server
22spec:
23 replicas: 1
24 template:
25 metadata:
26 labels:
27 app: dhcp-server
28 spec:
29 containers:
30 - name: dhcp-server
Zack Williams2749ae52018-09-28 09:43:43 -070031 image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}
32 imagePullPolicy: {{ .Values.image.pullPolicy }}
Luca Preteb618ded2018-04-03 10:28:04 -070033 #command: ["/bin/bash", "-", "sleep 86400"]
34 ports:
35 - containerPort: 67
36 port: 67
37 protocol: UDP
38 volumeMounts:
39 - name: dhcp-server
40 mountPath: /data/dhcpd.conf
41 subPath: mymounts/dhcpd.conf
42 volumes:
43 - name: dhcp-server
44 configMap:
45 name: dhcp-server
46 items:
47 - key: config
48 path: mymounts/dhcpd.conf