Andy Bavier | 2259a6b | 2018-07-12 15:27:48 -0700 | [diff] [blame] | 1 | --- |
| 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: apps/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: rg |
| 20 | namespace: {{ .Values.global.namespace }} |
| 21 | spec: |
| 22 | replicas: 1 |
| 23 | template: |
| 24 | metadata: |
| 25 | labels: |
| 26 | app: rg |
| 27 | annotations: |
| 28 | cni: "pon0" |
| 29 | spec: |
| 30 | affinity: |
| 31 | podAffinity: |
| 32 | preferredDuringSchedulingIgnoredDuringExecution: |
| 33 | - weight: 100 |
| 34 | podAffinityTerm: |
| 35 | labelSelector: |
| 36 | matchExpressions: |
| 37 | - key: app |
| 38 | operator: In |
| 39 | values: |
| 40 | - onu |
| 41 | topologyKey: kubernetes.io/hostname |
| 42 | containers: |
| 43 | - name: rg |
Zack Williams | 07ef42c | 2018-11-09 13:48:26 -0700 | [diff] [blame] | 44 | image: "{{ .Values.global.registry }}{{ .Values.images.rg.repository }}:{{ tpl .Values.images.rg.tag . }}" |
Zack Williams | 2749ae5 | 2018-09-28 09:43:43 -0700 | [diff] [blame] | 45 | imagePullPolicy: {{ .Values.images.rg.pullPolicy }} |
Andy Bavier | 2259a6b | 2018-07-12 15:27:48 -0700 | [diff] [blame] | 46 | env: |
| 47 | - name: POD_IP |
| 48 | valueFrom: |
| 49 | fieldRef: |
| 50 | fieldPath: status.podIP |
| 51 | - name: NAMESPACE |
| 52 | valueFrom: |
| 53 | fieldRef: |
| 54 | fieldPath: metadata.namespace |
| 55 | command: [ "/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait" ] |
Andy Bavier | 76af8b8 | 2018-08-21 17:48:24 -0700 | [diff] [blame] | 56 | securityContext: |
| 57 | privileged: true |