Extend K8S and RIC installation instructions
[it/dep.git] / ric-aux / 85-Ext-Services / helm / extsvcaux / templates / services-ric.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
18 kind: "Service"
19 apiVersion: "v1"
20 metadata:
21   name: {{ include "common.ingressurl.ric" . }}
22   namespace: {{ include "common.namespace.aux" . }}
23 spec:
24   ports:
25     - name: {{ include "common.ingressurl.ric" . }}-http-ingress-port
26       protocol: "TCP"
27       port: 80
28     - name: {{ include "common.ingressurl.ric" . }}-https-ingress-port
29       protocol: "TCP"
30       port: 443
31 ---
32 kind: "Endpoints"
33 apiVersion: "v1"
34 metadata:
35   # match with the selector-less service
36   name: {{ include "common.ingressurl.ric" . }}
37   namespace: {{ include "common.namespace.aux" . }}
38 subsets: 
39   - addresses:
40       - ip: "{{ .Values.extsvcaux.ricip }}"
41     ports:
42       - port: {{ include "common.ingresshttpport" . }}
43         name: {{ include "common.ingressurl.ric" . }}-http-ingress-port
44       - port: {{ include "common.ingresshttpsport" . }}
45         name: {{ include "common.ingressurl.ric" . }}-https-ingress-port