Skip to content

Commit

Permalink
Merge pull request #4 from ns1labs/bug/grpc-comms
Browse files Browse the repository at this point in the history
bump to 1.0.6, more grpc comms
  • Loading branch information
weyrick authored Nov 11, 2021
2 parents e71e2dd + fd6a90f commit 463d28d
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/orb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: orb
description: Orb Observability Platform
icon: https://avatars1.githubusercontent.com/u/13207490
type: application
version: 1.0.5
version: 1.0.6
appVersion: "0.9.0"
home: https://getorb.io
sources:
Expand Down
88 changes: 88 additions & 0 deletions charts/orb/templates/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,60 @@ data:
- name: envoy.access_loggers.stdout
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
- name: fleet_grpc_listener
address:
socket_address:
address: 0.0.0.0
port_value: {{ .Values.fleet.grpcPort }}
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
access_log:
- name: envoy.access_loggers.stdout
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
stat_prefix: fleet
codec_type: AUTO
route_config:
name: fleet_route
virtual_hosts:
- name: fleet_service
domains: ["*"]
routes:
- match: { prefix: "/" }
route: { cluster: fleet }
http_filters:
- name: envoy.filters.http.grpc_web
- name: envoy.filters.http.router
- name: sinks_grpc_listener
address:
socket_address:
address: 0.0.0.0
port_value: {{ .Values.sinks.grpcPort }}
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
access_log:
- name: envoy.access_loggers.stdout
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
stat_prefix: sinks
codec_type: AUTO
route_config:
name: sinks_route
virtual_hosts:
- name: sinks_service
domains: ["*"]
routes:
- match: { prefix: "/" }
route: { cluster: sinks }
http_filters:
- name: envoy.filters.http.grpc_web
- name: envoy.filters.http.router
- name: policies_grpc_listener
address:
socket_address:
Expand Down Expand Up @@ -129,6 +183,34 @@ data:
socket_address:
address: {{ .Release.Name }}-auth-headless
port_value: {{ .Values.auth.grpcPort }}
- name: fleet
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
http2_protocol_options: {}
load_assignment:
cluster_name: fleet
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: {{ .Release.Name }}-fleet-headless
port_value: {{ .Values.fleet.grpcPort }}
- name: sinks
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
http2_protocol_options: {}
load_assignment:
cluster_name: sinks
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: {{ .Release.Name }}-sinks-headless
port_value: {{ .Values.sinks.grpcPort }}
- name: policies
connect_timeout: 0.25s
type: strict_dns
Expand Down Expand Up @@ -219,6 +301,12 @@ spec:
- port: {{ .Values.auth.grpcPort }}
protocol: TCP
name: auth-grpc
- port: {{ .Values.fleet.grpcPort }}
protocol: TCP
name: fleet-grpc
- port: {{ .Values.sinks.grpcPort }}
protocol: TCP
name: sinks-grpc
- port: {{ .Values.policies.grpcPort }}
protocol: TCP
name: policies-grpc
Expand Down
17 changes: 17 additions & 0 deletions charts/orb/templates/fleet-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,20 @@ spec:
- protocol: TCP
port: {{ .Values.fleet.httpPort }}
name: {{ .Release.Name }}-fleet-http
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-fleet-headless
spec:
selector:
app: {{ .Release.Name }}
component: fleet
ports:
- port: {{ .Values.fleet.httpPort }}
protocol: TCP
name: {{ .Release.Name }}-fleet-{{ .Values.fleet.httpPort }}
- port: {{ .Values.fleet.grpcPort }}
protocol: TCP
name: {{ .Release.Name }}-fleet-{{ .Values.fleet.grpcPort }}
clusterIP: None
17 changes: 17 additions & 0 deletions charts/orb/templates/sinks-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,20 @@ spec:
- protocol: TCP
port: {{ .Values.sinks.httpPort }}
name: {{ .Release.Name }}-sinks-http
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-sinks-headless
spec:
selector:
app: {{ .Release.Name }}
component: sinks
ports:
- port: {{ .Values.sinks.httpPort }}
protocol: TCP
name: {{ .Release.Name }}-sinks-{{ .Values.sinks.httpPort }}
- port: {{ .Values.sinks.grpcPort }}
protocol: TCP
name: {{ .Release.Name }}-sinks-{{ .Values.sinks.grpcPort }}
clusterIP: None

0 comments on commit 463d28d

Please sign in to comment.