Add standalone R3 RIC platform helm charts and deployment scripts.
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / extsvcplt / templates / services-aux.yaml
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #   Copyright (c) 2019 Nokia.                                                  #
4 #                                                                              #
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                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
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 ################################################################################
17 {{ $platformNameSpace := include "common.namespace.platform" . }}
18 {{ $xAppNameSpace := include "common.namespace.xapp" . }}
19 {{ $nameSpaceList := list $platformNameSpace $xAppNameSpace }}
20 {{- range $nameSpaceList }}
21 ---
22 kind: "Service"
23 apiVersion: "v1"
24 metadata:
25   name: {{ include "common.ingresscontroller.url.aux" $ }}
26   namespace: {{ . }}
27 spec:
28   ports:
29     - name: {{ include "common.ingresscontroller.url.aux" $ }}-http-ingress-port
30       protocol: "TCP"
31       port: 80
32     - name: {{ include "common.ingresscontroller.url.aux" $ }}-https-ingress-port
33       protocol: "TCP"
34       port: 443
35 ---
36 kind: "Endpoints"
37 apiVersion: "v1"
38 metadata:
39   # match with the selector-less service
40   name: {{ include "common.ingresscontroller.url.aux" $ }}
41   namespace: {{ . }}
42 subsets: 
43   - addresses:
44       - ip: "{{ $.Values.auxip }}"
45     ports:
46       - port: {{ include "common.ingresscontroller.port.http" $ }}
47         name: {{ include "common.ingresscontroller.url.aux" $ }}-http-ingress-port
48       - port: {{ include "common.ingresscontroller.port.https" $ }}
49         name: {{ include "common.ingresscontroller.url.aux" $ }}-https-ingress-port
50 {{- end -}}