Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

fix: move tcp-router healthcheck port to avoid clash #1526

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions chart/assets/operations/instance_groups/tcp-router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
path: /instance_groups/name=routing-api/jobs/name=routing-api/properties/routing_api/router_groups/name=default-tcp/reservable_ports
value: "{{ $service.port_range.start }}-{{ $service.port_range.end }}"

- type: replace
path: /instance_groups/name=tcp-router/jobs/name=tcp_router/properties/tcp_router?/health_check_port
value: 8787

- type: replace
path: /instance_groups/name=tcp-router/jobs/name=tcp_router/properties/quarks?
value:
ports:
- name: healthcheck
protocol: TCP
internal: 80
internal: 8787
{{- range $port := until (int (add 1 (sub $service.port_range.end $service.port_range.start))) }}
{{- $port = add $port $service.port_range.start }}
- name: "tcp-route-{{ $port }}"
Expand All @@ -23,7 +27,7 @@
tcp_router:
readiness:
httpGet:
port: 80
port: 8787
path: /health

# Add necessary labels to the tcp-router instance group so that the service can select it to create
Expand Down
4 changes: 2 additions & 2 deletions chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ spec:
ports:
- name: healthcheck
protocol: TCP
port: 80
targetPort: 80
port: 8787
targetPort: 8787
{{- range $port := until (int (add 1 (sub $service.port_range.end $service.port_range.start))) }}
{{- $port = add $port $service.port_range.start }}
- name: "tcp-route-{{ $port }}"
Expand Down