aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/templates/all-services.yaml
blob: 247ee034a8bfea46afd928134c5d4bdded4736ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#{{ if not .Values.disableSdcSdcEs }}
apiVersion: v1
kind: Service
metadata:
  labels:
    app: sdc-es
  name: sdc-es
  namespace: "{{ .Values.nsPrefix }}"
spec:
  ports:
  - name: sdc-es-port-9200
    port: 9200
  - name: sdc-es-port-9300
    port: 9300
  selector:
    app: sdc-es
  clusterIP: None
#{{ end }}
#{{ if not .Values.disableSdcSdcCs }}
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: sdc-cs
  name: sdc-cs
  namespace: "{{ .Values.nsPrefix }}"
spec:
  ports:
  - name: sdc-cs-port-9042
    port: 9042
  - name: sdc-cs-port-9160
    port: 9160
  selector:
    app: sdc-cs
  clusterIP: None
#{{ end }}
#{{ if not .Values.disableSdcSdcKb }}
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: sdc-kb
  name: sdc-kb
  namespace: "{{ .Values.nsPrefix }}"
spec:
  ports:
  - name: sdc-kb-port-5601
    port: 5601
  selector:
    app: sdc-kb
  clusterIP: None
#{{ end }}
#{{ if not .Values.disableSdcSdcBe }}
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: sdc-be
  name: sdc-be
  namespace: "{{ .Values.nsPrefix }}"
  annotations:
    msb.onap.org/service-info: '[
      {
          "serviceName": "sdc",
          "version": "v1",
          "url": "/sdc/v1",
          "protocol": "REST",
          "port": "8080",
          "visualRange":"1"
      },
      {
          "serviceName": "sdc-deprecated",
          "version": "v1",
          "url": "/sdc/v1",
          "protocol": "REST",
          "port": "8080",
          "visualRange":"1",
          "path":"/sdc/v1"
      }
      ]'
spec:
  ports:
  - name: sdc-be-port-8443
    nodePort: {{ .Values.nodePortPrefix }}04
    port: 8443
  - name: sdc-be-port-8080
    nodePort: {{ .Values.nodePortPrefix }}05
    port: 8080
  selector:
    app: sdc-be
  type: NodePort
#{{ end }}
#{{ if not .Values.disableSdcSdcFe }}
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: sdc-fe
  name: sdc-fe
  namespace: "{{ .Values.nsPrefix }}"
  annotations:
    msb.onap.org/service-info: '[
      {
          "serviceName": "sdc-gui",
          "version": "v1",
          "url": "/sdc1",
          "protocol": "UI",
          "port": "8181",
          "visualRange":"0|1"
      }
      ]'
spec:
  ports:
  - name: sdc-fe-port-9443
    nodePort: {{ .Values.nodePortPrefix }}07
    port: 9443
  - name: sdc-fe-port-8181
    nodePort: {{ .Values.nodePortPrefix }}06
    port: 8181
  selector:
    app: sdc-fe
  type: NodePort
#{{ end }}