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 3bed366 commit 7495af3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
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 7495af3

Please sign in to comment.