Skip to content
Snippets Groups Projects
Commit 6a47aee3 authored by Konstantinos Poulakakis's avatar Konstantinos Poulakakis
Browse files

refactor: regenerate kubernetes.yml file for grpc port.

parent 9fcc34bb
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!209Resolve "(UBI) Upgrade ZTP Quarkus to v.3"
...@@ -3,8 +3,8 @@ apiVersion: v1 ...@@ -3,8 +3,8 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
annotations: annotations:
app.quarkus.io/commit-id: 92c9cc249d2be0fb74fbc6a3d2d1405fbf5fb083 app.quarkus.io/commit-id: 9fcc34bb0e7806d8a5ca5f75cbf3cb9e3358d756
app.quarkus.io/build-timestamp: 2024-02-14 - 12:45:13 +0000 app.quarkus.io/build-timestamp: 2024-02-15 - 11:02:55 +0000
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
prometheus.io/path: /q/metrics prometheus.io/path: /q/metrics
prometheus.io/port: "8080" prometheus.io/port: "8080"
...@@ -17,14 +17,18 @@ metadata: ...@@ -17,14 +17,18 @@ metadata:
name: ztpservice name: ztpservice
spec: spec:
ports: ports:
- name: http
port: 9192
protocol: TCP
targetPort: 8080
- name: https - name: https
port: 443 port: 443
protocol: TCP protocol: TCP
targetPort: 8443 targetPort: 8443
- name: grpc
port: 5050
protocol: TCP
targetPort: 5050
- name: http
port: 9192
protocol: TCP
targetPort: 8080
selector: selector:
app.kubernetes.io/name: ztpservice app.kubernetes.io/name: ztpservice
type: ClusterIP type: ClusterIP
...@@ -33,8 +37,8 @@ apiVersion: apps/v1 ...@@ -33,8 +37,8 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
annotations: annotations:
app.quarkus.io/commit-id: 92c9cc249d2be0fb74fbc6a3d2d1405fbf5fb083 app.quarkus.io/commit-id: 9fcc34bb0e7806d8a5ca5f75cbf3cb9e3358d756
app.quarkus.io/build-timestamp: 2024-02-14 - 12:45:13 +0000 app.quarkus.io/build-timestamp: 2024-02-15 - 11:02:55 +0000
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
prometheus.io/path: /q/metrics prometheus.io/path: /q/metrics
prometheus.io/port: "8080" prometheus.io/port: "8080"
...@@ -53,8 +57,8 @@ spec: ...@@ -53,8 +57,8 @@ spec:
template: template:
metadata: metadata:
annotations: annotations:
app.quarkus.io/commit-id: 92c9cc249d2be0fb74fbc6a3d2d1405fbf5fb083 app.quarkus.io/commit-id: 9fcc34bb0e7806d8a5ca5f75cbf3cb9e3358d756
app.quarkus.io/build-timestamp: 2024-02-14 - 12:45:13 +0000 app.quarkus.io/build-timestamp: 2024-02-15 - 11:02:55 +0000
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
prometheus.io/path: /q/metrics prometheus.io/path: /q/metrics
prometheus.io/port: "8080" prometheus.io/port: "8080"
...@@ -71,10 +75,10 @@ spec: ...@@ -71,10 +75,10 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: DEVICE_SERVICE_HOST
value: deviceservice
- name: CONTEXT_SERVICE_HOST - name: CONTEXT_SERVICE_HOST
value: contextservice value: contextservice
- name: DEVICE_SERVICE_HOST
value: deviceservice
image: labs.etsi.org:5050/tfs/controller/ztp:0.2.0 image: labs.etsi.org:5050/tfs/controller/ztp:0.2.0
imagePullPolicy: Always imagePullPolicy: Always
livenessProbe: livenessProbe:
...@@ -89,12 +93,15 @@ spec: ...@@ -89,12 +93,15 @@ spec:
timeoutSeconds: 10 timeoutSeconds: 10
name: ztpservice name: ztpservice
ports: ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8443 - containerPort: 8443
name: https name: https
protocol: TCP protocol: TCP
- containerPort: 5050
name: grpc
protocol: TCP
- containerPort: 8080
name: http
protocol: TCP
readinessProbe: readinessProbe:
failureThreshold: 3 failureThreshold: 3
httpGet: httpGet:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment