blob: d6c99b13713156105c77b07d97a4022aba09e295 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050014apiVersion: apps/v1beta1
15kind: Deployment
16metadata:
17 name: rg
Stephane Barbarie35595062018-02-08 08:34:39 -050018 namespace: voltha
Stephane Barbarie5e8d9e42018-02-07 16:15:05 -050019spec:
20 replicas: 1
21 template:
22 metadata:
23 labels:
24 app: rg
25 annotations:
26 cni: "pon0"
27 spec:
28 containers:
29 - name: rg
30 image: "voltha-tester:latest"
31 env:
32 - name: POD_IP
33 valueFrom:
34 fieldRef:
35 fieldPath: status.podIP
36 - name: NAMESPACE
37 valueFrom:
38 fieldRef:
39 fieldPath: metadata.namespace
40 command: [ "/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait" ]
41 imagePullPolicy: Never