-
Notifications
You must be signed in to change notification settings - Fork 692
Add support for IPv6 #1555
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
Add support for IPv6 #1555
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4c47c5a
Add support for IPv6 ring address detection
zalegrala abfbea5
Update dskit dependency after inet6 merge
zalegrala 4227bbe
Add withInet6 jsonnet method to microservices
zalegrala fe3aaa9
Update serverless vendor
zalegrala a52638d
Update jsonnet overrides for ipv6 testing
zalegrala f3bffe0
Drop unnecessary address spec
zalegrala 87788e7
Include configuration docs
zalegrala 01d526e
Update changelog
zalegrala 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
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
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,89 @@ | ||
| --- | ||
| title: Configure IPv6 | ||
| weight: 37 | ||
| --- | ||
|
|
||
| # Configure IPv6 | ||
|
|
||
| Tempo can be configured to communicate between the components using Internet Protocol Version 6, or IPv6. | ||
|
|
||
| > Note: In order to support this support this configuration, the underlying infrastructure must support this address family. This configuration may be used in a single-stack IPv6 environment, or in a dual-stack environment where both IPv6 and IPv4 are present. In a dual-stack scenario, only one address family may be configured at a time, and all components must be configured for that address family. | ||
|
zalegrala marked this conversation as resolved.
|
||
|
|
||
| ## Protocol configuration | ||
|
|
||
| This sample listen configuration will allow the gRPC and HTTP servers to listen on IPv6, and configure the various memberlist components to enable IPv6. | ||
|
|
||
| ```yaml | ||
| memberlist: | ||
| bind_addr: | ||
| - '::' | ||
| bind_port: 7946 | ||
|
|
||
| compactor: | ||
| ring: | ||
| kvstore: | ||
| store: memberlist | ||
| enable_inet6: true | ||
|
|
||
| metrics_generator: | ||
| ring: | ||
| enable_inet6: true | ||
|
|
||
| ingester: | ||
| lifecycler: | ||
| address: '::' | ||
| enable_inet6: true | ||
|
|
||
| server: | ||
| grpc_listen_address: '[::0]' | ||
| grpc_listen_port: 9095 | ||
| http_listen_address: '[::0]' | ||
| http_listen_port: 3200 | ||
| ``` | ||
|
|
||
| ## Kubernetes service configuration | ||
|
|
||
| Each service fronting the workloads will need to be configured with with `spec.ipFamilies` and `spec.ipFamilyPolicy` set. See this `compactor` example. | ||
|
|
||
| ```yaml | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| labels: | ||
| name: compactor | ||
| name: compactor | ||
| namespace: trace | ||
| spec: | ||
| clusterIP: fccb::31a7 | ||
| clusterIPs: | ||
| - fccb::31a7 | ||
| internalTrafficPolicy: Cluster | ||
| ipFamilies: | ||
| - IPv6 | ||
| ipFamilyPolicy: SingleStack | ||
| ports: | ||
| - name: compactor-http-metrics | ||
| port: 3200 | ||
| protocol: TCP | ||
| targetPort: 3200 | ||
| selector: | ||
| app: compactor | ||
| name: compactor | ||
| sessionAffinity: None | ||
| type: ClusterIP | ||
| ``` | ||
|
|
||
| You can check the listening service from within a pod. | ||
|
|
||
| ```sh | ||
| ❯ k exec -it compactor-55c778b8d9-2kch2 -- sh | ||
| / # apk add iproute2 | ||
| OK: 12 MiB in 27 packages | ||
| / # ss -ltn -f inet | ||
| State Recv-Q Send-Q Local Address:Port Peer Address:Port Process | ||
| / # ss -ltn -f inet6 | ||
| State Recv-Q Send-Q Local Address:Port Peer Address:Port Process | ||
| LISTEN 0 4096 *:7946 *:* | ||
| LISTEN 0 4096 *:9095 *:* | ||
| LISTEN 0 4096 *:3200 *:* | ||
| ``` | ||
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
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
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
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.