1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
3 # Copyright (c) 2019 Nokia. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
25 app.kubernetes.io/name: adm-ctrl-xapp
26 app.kubernetes.io/instance: {{ .Release.Name }}
27 #app.kubernetes.io/managed-by: {{ .Release.Service }}
28 #helm.sh/chart: {{ include "adm-ctrl-xapp.chart" . }}
30 replicas: {{ .Values.replicaCount }}
34 # app.kubernetes.io/name: {{ include "adm-ctrl-xapp.name" . }}
35 # app.kubernetes.io/instance: {{ .Release.Name }}
40 #app.kubernetes.io/name: {{ include "adm-ctrl-xapp.name" . }}
41 #app.kubernetes.io/instance: {{ .Release.Name }}
43 hostname: adm-ctrl-xapp
45 - name: {{ .Values.imageCredentials.name }}
48 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
49 imagePullPolicy: {{ .Values.image.pullPolicy }}
53 containerPort: {{ .Values.service.xapp_port}}
56 containerPort: {{ .Values.service.rmr_port}}
60 {{- toYaml .Values.resources | nindent 12 }}
61 #command: ["{{ .Values.xapp.env.run_command }}"]
62 #args: ["-p", "{{ .Values.service.xapp_port}}", "-g", "{{ .Values.xapp.env.gNodeB}}" , "-r", "{{ .Values.xapp.env.start_request_id }}", "-x", "{{ .Values.xapp.env.requests }}", "-t", "{{ .Values.xapp.env.interval }}"]
63 command: [ "/bin/bash", "-c", "--" ]
64 args: [ "while true; do sleep 30; done;" ]
67 value: "127.0.0.1:9995"
69 value: "{{ .Values.xapp.env.threads}}"
71 value: {{ printf "%s/%s" .Values.xapp.env.route_path .Values.xapp.env.route_file }}
73 value: "{{ .Values.xapp.env.deleteMode}}"
74 - name: "RAN_FUNCTION_ID"
75 value: "{{ .Values.xapp.env.ranFunctionId}}"
77 value: "{{ .Values.xapp.env.actionId }}"
79 value: "{{ .Values.xapp.env.actionType }}"
81 value: "{{ .Values.xapp.env.triggerDef }}"
84 - name : rmr-route-info
85 mountPath: {{ .Values.xapp.env.route_path }}
88 - name: rmr-route-info
90 name: rmr-configmap-xapp
92 - key : {{ .Values.xapp.env.route_file }}
93 path: {{ .Values.xapp.env.route_file }}
95 {{- with .Values.nodeSelector }}
97 {{- toYaml . | nindent 8 }}
99 {{- with .Values.affinity }}
101 {{- toYaml . | nindent 8 }}
103 {{- with .Values.tolerations }}
105 {{- toYaml . | nindent 8 }}