aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/clamp/templates/all-services.yaml
blob: c9f4f5ed5f77312fde2d3cec13db3771cedd87eb (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
#{{ if not .Values.disableClampClampMariadb }}
apiVersion: v1
kind: Service
metadata:
  name: clamp-mariadb
  namespace: "{{ .Values.nsPrefix }}"
  labels:
    app: clamp-mariadb
spec:
  ports:
  - name: clamp-mariadb
    port: 3306
  selector:
    app: clamp-mariadb
  clusterIP: None
#{{ end }}
#{{ if not .Values.disableClampClamp }}
---
apiVersion: v1
kind: Service
metadata:
  name: clamp
  namespace: "{{ .Values.nsPrefix }}"
  annotations:
    msb.onap.org/service-info: '[
      {
          "serviceName": "clamp",
          "version": "v1",
          "url": "/restservices/clds/v1",
          "protocol": "REST",
          "port": "8080",
          "visualRange":"1"
      }
      ]'
spec:
  ports:
  - name: clamp
    port: 8080
    nodePort: {{ .Values.nodePortPrefix }}95
  selector:
    app: clamp
  type: NodePort
#{{ end }}