diff --git a/src/ztp/target/kubernetes/kubernetes.yml b/src/ztp/target/kubernetes/kubernetes.yml index 0b4670a6e8f6a07be4840918fb24d885fe57f49e..9f78cd52fb8dd600370ba3c9951ab3507dd8b18a 100644 --- a/src/ztp/target/kubernetes/kubernetes.yml +++ b/src/ztp/target/kubernetes/kubernetes.yml @@ -3,8 +3,8 @@ apiVersion: v1 kind: Service metadata: annotations: - app.quarkus.io/commit-id: 92c9cc249d2be0fb74fbc6a3d2d1405fbf5fb083 - app.quarkus.io/build-timestamp: 2024-02-14 - 12:45:13 +0000 + app.quarkus.io/commit-id: 9fcc34bb0e7806d8a5ca5f75cbf3cb9e3358d756 + app.quarkus.io/build-timestamp: 2024-02-15 - 11:02:55 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -17,14 +17,18 @@ metadata: name: ztpservice spec: ports: - - name: http - port: 9192 - protocol: TCP - targetPort: 8080 - name: https port: 443 protocol: TCP targetPort: 8443 + - name: grpc + port: 5050 + protocol: TCP + targetPort: 5050 + - name: http + port: 9192 + protocol: TCP + targetPort: 8080 selector: app.kubernetes.io/name: ztpservice type: ClusterIP @@ -33,8 +37,8 @@ apiVersion: apps/v1 kind: Deployment metadata: annotations: - app.quarkus.io/commit-id: 92c9cc249d2be0fb74fbc6a3d2d1405fbf5fb083 - app.quarkus.io/build-timestamp: 2024-02-14 - 12:45:13 +0000 + app.quarkus.io/commit-id: 9fcc34bb0e7806d8a5ca5f75cbf3cb9e3358d756 + app.quarkus.io/build-timestamp: 2024-02-15 - 11:02:55 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -53,8 +57,8 @@ spec: template: metadata: annotations: - app.quarkus.io/commit-id: 92c9cc249d2be0fb74fbc6a3d2d1405fbf5fb083 - app.quarkus.io/build-timestamp: 2024-02-14 - 12:45:13 +0000 + app.quarkus.io/commit-id: 9fcc34bb0e7806d8a5ca5f75cbf3cb9e3358d756 + app.quarkus.io/build-timestamp: 2024-02-15 - 11:02:55 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -71,10 +75,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace - - name: DEVICE_SERVICE_HOST - value: deviceservice - name: CONTEXT_SERVICE_HOST value: contextservice + - name: DEVICE_SERVICE_HOST + value: deviceservice image: labs.etsi.org:5050/tfs/controller/ztp:0.2.0 imagePullPolicy: Always livenessProbe: @@ -89,12 +93,15 @@ spec: timeoutSeconds: 10 name: ztpservice ports: - - containerPort: 8080 - name: http - protocol: TCP - containerPort: 8443 name: https protocol: TCP + - containerPort: 5050 + name: grpc + protocol: TCP + - containerPort: 8080 + name: http + protocol: TCP readinessProbe: failureThreshold: 3 httpGet: