From 3132e8af07ad114f1ac7cc2d9cc524e9825ae232 Mon Sep 17 00:00:00 2001 From: share2kanna Date: Thu, 6 Jun 2024 22:27:54 +0530 Subject: [PATCH] SDK service for REST server --- charts/kad/Chart.yaml | 2 +- charts/kad/templates/agent-deployment.yaml | 3 +++ .../agent-service-sdk-rest-server.yaml | 17 +++++++++++++++++ charts/kad/values.yaml | 2 ++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 charts/kad/templates/agent-service-sdk-rest-server.yaml diff --git a/charts/kad/Chart.yaml b/charts/kad/Chart.yaml index a5fc1728..c0dd72ec 100644 --- a/charts/kad/Chart.yaml +++ b/charts/kad/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.6 +version: 1.0.7 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/kad/templates/agent-deployment.yaml b/charts/kad/templates/agent-deployment.yaml index ddfa57b6..460a07f2 100644 --- a/charts/kad/templates/agent-deployment.yaml +++ b/charts/kad/templates/agent-deployment.yaml @@ -46,6 +46,9 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + - name: https + containerPort: {{ .Values.service.sdkRestServer.port }} + protocol: TCP # livenessProbe: # httpGet: # path: /status diff --git a/charts/kad/templates/agent-service-sdk-rest-server.yaml b/charts/kad/templates/agent-service-sdk-rest-server.yaml new file mode 100644 index 00000000..41f47f2d --- /dev/null +++ b/charts/kad/templates/agent-service-sdk-rest-server.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "kad.fullname" . }}-agent-sdk-rest-server + labels: + {{- include "kad.labels" . | nindent 4 }} + app.kubernetes.io/component: agent +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.sdkRestServer.port }} + targetPort: https + protocol: TCP + name: https + selector: + {{- include "kad.selectorLabels" . | nindent 4 }} + app.kubernetes.io/component: agent diff --git a/charts/kad/values.yaml b/charts/kad/values.yaml index 28ff4083..29fea5c5 100644 --- a/charts/kad/values.yaml +++ b/charts/kad/values.yaml @@ -42,6 +42,8 @@ env: service: type: ClusterIP port: 8080 + sdkRestServer: + port: 8443 DomainName: capten