blob: c1aefa662b2d68b19d9a7ab773ab49152f86a6a2 [file] [log] [blame]
Andy Bavier2259a6b2018-07-12 15:27:48 -07001---
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
16apiVersion: apps/v1beta1
17kind: Deployment
18metadata:
19 name: rg
20 namespace: {{ .Values.global.namespace }}
21spec:
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
44 image: {{ .Values.pull_docker_registry }}{{ .Values.images.rg.repository }}:{{ .Values.images.rg.tag }}
45 env:
46 - name: POD_IP
47 valueFrom:
48 fieldRef:
49 fieldPath: status.podIP
50 - name: NAMESPACE
51 valueFrom:
52 fieldRef:
53 fieldPath: metadata.namespace
54 command: [ "/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait" ]
55 imagePullPolicy: {{ .Values.images.olt.pullPolicy }}