-
Notifications
You must be signed in to change notification settings - Fork 8
docs: Add OTLP example deployments #120
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
502fa4d
docs: Repo name should be "netobserv"
maksym-iv-ef 12fdf99
docs: Add "NetObserv Flow with OpenSearch" on GKE using Ingress example
maksym-iv-ef b8370d2
docs: Add "NetObserv Flow with OpenSearch" on GKE using Gateway example
maksym-iv-ef e9972f3
docs: Add "NetObserv Flow with OpenSearch SVC" example
maksym-iv-ef ed3af3f
docs: Cleanup
maksym-iv-ef 68fe2ef
fix: License should not be accepted by default
maksym-iv-ef 9b2c933
fix: CI
maksym-iv-ef 9996e05
fix: CI
maksym-iv-ef d02c0e1
fix: Add CI values
maksym-iv-ef 80992d5
fix: Linting
maksym-iv-ef 6261945
Merge branch 'main' into lgo-377-chart-examples
kgrubb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -72,4 +72,4 @@ jobs: | |
| uses: helm/[email protected] | ||
| - name: Run chart-testing (install) | ||
| if: steps.list-changed.outputs.changed == 'true' | ||
| run: ct install --target-branch ${{ github.event.repository.default_branch }} --helm-extra-set-args="--set EF_OUTPUT_STDOUT_ENABLE=true" | ||
| run: ct install --target-branch ${{ github.event.repository.default_branch }} | ||
This file contains hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| env: | ||
| - name: EF_LICENSE_ACCEPTED | ||
| value: "true" | ||
| - name: EF_OUTPUT_STDOUT_ENABLE | ||
| value: "false" |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,80 @@ | ||
| # NetObserv Flow with OpenSearch using K8s (GKE) Gateway | ||
|
|
||
| - [NetObserv Flow with OpenSearch using K8s Gateway](#netobserv-flow-with-opensearch-using-k8s-gateway) | ||
| - [Overview](#overview) | ||
| - [Install](#install) | ||
| - [Access Dashboards](#access-dashboards) | ||
| - [Hints](#hints) | ||
|
|
||
| ## Overview | ||
|
|
||
| This example deploys NetObserv Flow with OpenSearch as the data platform in a GCP GKE cluster with API and OTel gRPC inputs exposed. | ||
| This example is intended only for demonstration, testing, or proof-of-concept use, since OpenSearch is deployed in a single-node mode. | ||
|
|
||
| Notes on the example deployment: | ||
|
|
||
| - This example assumes you can access internal GCP subnets via a VPN. | ||
| - Namespace used in the example: `elastiflow`. | ||
| - GKE [node auto-provisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning) must be enabled. | ||
| - Gateway API is used to route the traffic to the NetObserv Collector so it must be enabled on the GKE custer - [doc](https://cloud.google.com/kubernetes-engine/docs/how-to/deploying-gateways#enable-gateway). | ||
| - TLS: | ||
| - GCP Load Balancer (ingress) needs the backend with TLS enabled since OTlp input uses gRPC, that is why a self-signed certificate is used (validity `Not After : Sep 24 10:48:37 2035 GMT`) | ||
| - In order to enable gRPC between client and GCP Load Balancer certificate is also required, same self-signed certificate is used. | ||
| - HTTP (port `80`) is completely disabled on the GCP Load Balancer that is used for the collector (gRPC, REST) | ||
| - A GKE internal load balancer is used for the OpenSearch Dashboard ingress. | ||
| - Spot instances are used, please tweak affinity and tolerations in the `values.yaml` if needed. | ||
|
|
||
| ## Install | ||
|
|
||
| - Add Helm charts and Deploy | ||
|
|
||
| ```sh | ||
| helm repo add netobserv https://elastiflow.github.io/helm-chart-netobserv/ | ||
| helm repo add opensearch https://opensearch-project.github.io/helm-charts/ | ||
| helm repo update | ||
| kubectl create namespace elastiflow | ||
| helm upgrade -i --wait --timeout 15m -n elastiflow -f examples/flow_os_simple_gke_gw/values.yaml netobserv netobserv/netobserv-os | ||
| ``` | ||
|
|
||
| - Get the GCP Load Balancer IP (API/OTLP endpoints address) by running following command: | ||
|
|
||
| ```sh | ||
| kubectl get gtw netobserv-flow -o=jsonpath='{.status.addresses[0].value}' | ||
| ``` | ||
|
|
||
| - Test the API/OTLP endpoints work as expected: | ||
|
|
||
| ```sh | ||
| export NETOBSERV_LB_ADDR=$(kubectl get gtw netobserv-flow -o=jsonpath='{.status.addresses[0].value}') | ||
| curl -k "https://${NETOBSERV_LB_ADDR}/readyz" | ||
| # 200 - Ready! | ||
|
|
||
| curl -k "https://${NETOBSERV_LB_ADDR}/api" | ||
| # 404 page not found | ||
|
|
||
| grpcurl -insecure ${NETOBSERV_LB_ADDR}:443 list | ||
| # grpc.reflection.v1.ServerReflection | ||
| # grpc.reflection.v1alpha.ServerReflection | ||
| # opentelemetry.proto.collector.trace.v1.TraceService | ||
| ``` | ||
|
|
||
| ## Access Dashboards | ||
|
|
||
| First, get the OpenSearch Dashboards address: | ||
|
|
||
| ```sh | ||
| kubectl get ingress elastiflow-os-dashboards -o=jsonpath='{.status.loadBalancer.ingress[0].ip}' | ||
| ``` | ||
|
|
||
| Now you can navigate to the obtained IP in your browser (assuming you have access to the private network), using `admin`/`Elast1flow!` as the user/password. Select "global tenant", and explore the data. | ||
|
|
||
| ## Hints | ||
|
|
||
| To render and diff Helm templates to Kubernetes manifests, run: | ||
|
|
||
| ```sh | ||
| rm -rf helm_rendered; helm template -n elastiflow -f examples/flow_os_simple_gke_gw/values.yaml --output-dir helm_rendered netobserv netobserv/netobserv-os | ||
|
|
||
| # Diff with existing K8s resources | ||
| kubectl diff -R -f helm_rendered/ | ||
| ``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.