Skip to content

Commit

Permalink
SDK service for REST server
Browse files Browse the repository at this point in the history
  • Loading branch information
share2kanna committed Jun 6, 2024
1 parent 04239d3 commit 3132e8a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kad/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions charts/kad/templates/agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions charts/kad/templates/agent-service-sdk-rest-server.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions charts/kad/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ env:
service:
type: ClusterIP
port: 8080
sdkRestServer:
port: 8443

DomainName: capten

Expand Down

0 comments on commit 3132e8a

Please sign in to comment.