blob: a4aaca33c6b05e234b4f40a4711dc7f02b539aae [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001# Copyright 2020-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.
14---
15apiVersion: v1
16kind: Service
17metadata:
18 name: bbsim-sadis-server
19spec:
20 ports:
21 - name: http
22 port: 58080
23 targetPort: 8080
24 selector:
25 app: bbsim-sadis-server-dev
26---
27apiVersion: v1
28kind: Pod
29metadata:
30 name: bbsim-sadis-server
31 labels:
32 app: bbsim-sadis-server-dev
33spec:
34 containers:
35 - name: server
36 image: matteoscandolo/bbsim-sadis-server:master
37 imagePullPolicy: "Always"
38 command: [ "/app/bbsim-sadis-server" ]
39 args: [
40 "-kubeconfig", "/etc/kube/kube_config",
41 "-log_level", "INFO",
42 "-log_format", "console",
43 ]
44 env:
45 - name: SLEEP_TIME
46 value: 5s
47 volumeMounts:
48 - name: kube-config-volume
49 mountPath: /etc/kube
50 volumes:
51 - name: kube-config-volume
52 configMap:
53 # Provide the name of the ConfigMap containing the files you want
54 # to add to the container
55 name: kube-config
56 restartPolicy: Never