Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add optional Gateway API resource definition to expose endpoints #280

Merged
merged 44 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
029df12
feat: add helper scripts to manage prometheus deployment
leninmehedy Aug 13, 2023
07fe722
fix: use network-node-svc label selector
leninmehedy Aug 13, 2023
cc4eac2
fix: install prometheus operator only if crds are not installed yet
leninmehedy Aug 14, 2023
36c9145
feat: deploy prometheus service monitor conditionally along with hede…
leninmehedy Aug 14, 2023
a59ab4b
style: add missing new lines
leninmehedy Aug 14, 2023
3fa482d
fix: allow prometheus service monitor endpoints to be set by user
leninmehedy Aug 14, 2023
29a7b8a
Merge branch 'main' into 227-prometheus-servicemonitor
leninmehedy Aug 14, 2023
77e427d
ci: setup prometheus operator in CI/CD pipeline
leninmehedy Aug 14, 2023
4a68fa2
fix: update dev script to deploy prometheus operator locally if not i…
leninmehedy Aug 14, 2023
3664f81
style: fix spotless lint issue
leninmehedy Aug 14, 2023
cfcd596
fix: function definition in bash script for consistency
leninmehedy Aug 14, 2023
ee18328
Merge branch 'main' into 227-prometheus-servicemonitor
leninmehedy Aug 16, 2023
54e5cb3
Update charts/hedera-network/templates/services/network-node-svc.yaml
leninmehedy Aug 21, 2023
f5d5fc9
fix: remove otel ports from value file
leninmehedy Aug 21, 2023
e68165a
Merge branch 'main' into 227-prometheus-servicemonitor
leninmehedy Aug 21, 2023
9cb82c2
fix: port name and updated README for manual tests
leninmehedy Aug 21, 2023
59248e6
fix: port name
leninmehedy Aug 21, 2023
bff50ba
fix: install minio operator if not installed already during network d…
leninmehedy Aug 21, 2023
00d9b9c
fix: increase timeout during example app deployment
leninmehedy Aug 21, 2023
2072ad3
fix: only expose OTel metrics port from node svc
leninmehedy Aug 22, 2023
5e57f43
fix: update health-check port name for otel collector
leninmehedy Aug 22, 2023
9ddc4b2
feat: initial gateway setup files
leninmehedy Aug 16, 2023
28df314
feat: add setup files for haproxy ingress controller
leninmehedy Aug 16, 2023
a000bae
feat: working copy of gateway with http-debug svc
leninmehedy Aug 16, 2023
0c6353c
feat: setup routes conditionally for envoy-proxy, haproxy and network…
leninmehedy Aug 17, 2023
088f6ba
feat: support templated hostname for routes
leninmehedy Aug 17, 2023
bd768ea
fix: envoy cluster name
leninmehedy Aug 17, 2023
5b0aabe
fix: working http route using envoy-gateway
leninmehedy Aug 21, 2023
f82e63a
fix: enable haproxy ingress controller
leninmehedy Aug 22, 2023
9af10e9
test: add http and grpc route test scripts
leninmehedy Aug 22, 2023
38a8849
feat: add tcp-route example
leninmehedy Aug 22, 2023
baf0cee
feat: add test scripts for tcp route
leninmehedy Aug 22, 2023
d33d9af
fix: fst-gateway template
leninmehedy Aug 22, 2023
ca8b78e
fix: working copy for gateway-api demo with helper scripts
leninmehedy Aug 23, 2023
fe304cb
fix check for tcp route test success
leninmehedy Aug 24, 2023
0a8aa3d
add tcp grpc route to node-svc
leninmehedy Aug 24, 2023
4b25584
add haproxy tcp route to port 50211
leninmehedy Aug 24, 2023
3a9eb7d
fix: add envoy-proxy httproute and remap ports
leninmehedy Aug 25, 2023
5342416
feat: add support for rendering an optional PrometheusOperator Servic…
leninmehedy Aug 22, 2023
f0f0b5f
feat: mirror node as a conditional subchart (#272)
deepak-swirlds Aug 22, 2023
c256e63
style: add missing newlines
leninmehedy Aug 25, 2023
ffa0cb5
Merge branch 'main' into gateway-api
leninmehedy Aug 25, 2023
c08e809
fix: cleanup
leninmehedy Aug 25, 2023
33c8f5e
style: add missing newline
leninmehedy Aug 25, 2023
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
Prev Previous commit
Next Next commit
fix: update health-check port name for otel collector
Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
  • Loading branch information
leninmehedy committed Aug 22, 2023
commit 5e57f435dadf967443320c9271a73928f79fed6b
4 changes: 2 additions & 2 deletions charts/hedera-network/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ defaults:
livenessProbe:
httpGet:
path: /
port: healthcheck
port: otel-health
readinessProbe:
httpGet:
path: /
port: healthcheck
port: otel-health
resources: {}

# This configures the minio tenant subchart
Expand Down
16 changes: 14 additions & 2 deletions dev/scripts/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,21 @@ function prep_address_book() {
local addresses=()
for node_name in "${NODE_NAMES[@]}"; do
local pod="network-${node_name}-0" # pod name
while [[ $(kubectl get pod ${pod} -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do
echo "waiting for pod" && sleep 1
local max_attempts=$MAX_ATTEMPTS
local attempts=0
local status=$(kubectl get pod "${pod}" -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}')

while [[ "${attempts}" -lt "${max_attempts}" && "${status}" != "True" ]]; do
kubectl get pod network-node0-0 -o 'jsonpath={..status.conditions[?(@.type=="Ready")]}'

echo ""
echo "Waiting for the pod to be ready - ${pod}: Attempt# ${attempts}/${max_attempts} ..."
sleep 5

status=$(kubectl get pod "${pod}" -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}')
attempts=$((attempts + 1))
done

echo "${KCTL} get pod ${pod} -o jsonpath='{.status.podIP}' | xargs"
local POD_IP=$("${KCTL}" get pod "${pod}" -o jsonpath='{.status.podIP}' | xargs)
if [ -z "${POD_IP}" ]; then
Expand Down