-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add service definitions for HAProxy and Envoy with support for …
…both ClusterIP and LoadBalancer configurations (#268) Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
- Loading branch information
1 parent
8598481
commit 8563e16
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{ range $index, $node := ($.Values.hedera.nodes) }} | ||
{{- $envoyProxy := $node.envoyProxy | default dict -}} | ||
{{- $defaults := $.Values.defaults.haproxy }} | ||
{{- if default $defaults.enable $envoyProxy.enable | eq "true" }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: envoy-proxy-{{ $node.name }}-svc | ||
spec: | ||
{{- if default $defaults.loadBalancerEnabled $envoyProxy.loadBalancerEnabled | eq "true" }} | ||
type: LoadBalancer | ||
{{- end }} | ||
selector: | ||
app: envoy-proxy-{{ $node.name }} | ||
ports: | ||
- port: 8080 | ||
targetPort: 8080 | ||
{{- end }} | ||
{{- end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{- range $index, $node := ($.Values.hedera.nodes) }} | ||
{{- $haproxy := $node.haproxy | default dict -}} | ||
{{- $defaults := $.Values.defaults.haproxy }} | ||
{{- if default $defaults.enable $haproxy.enable | eq "true" }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: haproxy-{{ $node.name }}-svc | ||
spec: | ||
{{- if default $defaults.loadBalancerEnabled $haproxy.loadBalancerEnabled | eq "true" }} | ||
type: LoadBalancer | ||
{{- end }} | ||
selector: | ||
app: haproxy-{{ $node.name }} | ||
ports: | ||
- name: non-tls-grpc-client-port | ||
port: 50211 | ||
targetPort: 50211 | ||
- name: tls-grpc-client-port | ||
port: 50212 | ||
targetPort: 50212 | ||
{{- end }} | ||
{{- end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters