Commit be0e1527 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Added REST-API to Context service and updated service manifest files.

parent 9ec6b204
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ spec:
        imagePullPolicy: Always
        ports:
        - containerPort: 1010
        - containerPort: 8080
        env:
        - name: DB_ENGINE
          value: "redis"
@@ -51,3 +52,27 @@ spec:
  - name: grpc
    port: 1010
    targetPort: 1010
  - name: http
    port: 8080
    targetPort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: contextservice-public
  labels:
    app: contextservice
spec:
  type: NodePort
  selector:
    app: contextservice
  ports:
  - name: grpc
    protocol: TCP
    port: 1010
    targetPort: 1010
  - name: http
    protocol: TCP
    port: 8080
    targetPort: 8080
---
+1 −0
Original line number Diff line number Diff line
@@ -49,5 +49,6 @@ spec:
    app: deviceservice
  ports:
  - name: grpc
    protocol: TCP
    port: 2020
    targetPort: 2020
+1 −0
Original line number Diff line number Diff line
@@ -46,5 +46,6 @@ spec:
    app: monitoringservice
  ports:
  - name: grpc
    protocol: TCP
    port: 8080
    targetPort: 8080
+16 −0
Original line number Diff line number Diff line
@@ -36,3 +36,19 @@ spec:
    port: 6379
    targetPort: 6379
---
apiVersion: v1
kind: Service
metadata:
  name: redis-public
  labels:
    app: redis
spec:
  type: NodePort
  selector:
    app: redis
  ports:
  - name: redis
    protocol: TCP
    port: 6379
    targetPort: 6379
---
+1 −0
Original line number Diff line number Diff line
@@ -49,5 +49,6 @@ spec:
    app: serviceservice
  ports:
  - name: grpc
    protocol: TCP
    port: 3030
    targetPort: 3030
Loading