Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 1 | --- |
Luca Prete | b618ded | 2018-04-03 10:28:04 -0700 | [diff] [blame] | 2 | # 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 | |
| 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: dhcp-server |
| 20 | labels: |
| 21 | app: dhcp-server |
| 22 | spec: |
| 23 | replicas: 1 |
| 24 | template: |
| 25 | metadata: |
| 26 | labels: |
| 27 | app: dhcp-server |
| 28 | spec: |
| 29 | containers: |
| 30 | - name: dhcp-server |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 31 | image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }} |
| 32 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
Luca Prete | b618ded | 2018-04-03 10:28:04 -0700 | [diff] [blame] | 33 | #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 |