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

ci/multicluster: Test WireGuard in clustermesh #17453

Merged
merged 2 commits into from
Oct 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/conformance-multicluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,26 @@ jobs:
--test '!/pod-to-.*-nodeport' \
--flow-validation=disabled

- name: Enable WireGuard
run: |
for ctx in ${{ steps.contexts.outputs.context1 }} ${{ steps.contexts.outputs.context2 }} ; do
kubectl config use-context "$ctx"
cilium config set --restart=false enable-wireguard true
cilium config set --restart=false enable-wireguard-userspace-fallback true
cilium config set --restart=true enable-l7-proxy false
cilium status --wait
done

- name: Run connectivity test with WireGuard
run: |
# TODO: Once WireGuard supports the L7 proxy, the L7 tests can be
# included here. See cilium/cilium#15462
cilium connectivity test \
--context ${{ steps.contexts.outputs.context1 }} \
--multi-cluster ${{ steps.contexts.outputs.context2 }} \
--test '!/pod-to-.*-nodeport,!client-egress-l7,!echo-ingress-l7,!to-fqdns,!dns-only' \
--flow-validation=disabled

- name: Post-test information gathering
if: ${{ !success() }}
run: |
Expand Down
11 changes: 11 additions & 0 deletions Documentation/gettingstarted/encryption-wireguard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@ must hold:
- ``peers[*].allowed-ips`` should contain a list of pod IP addresses running
on the remote.

Cluster Mesh
============

WireGuard enabled Cilium clusters can be connected via :ref:`Cluster Mesh`. The
``clustermesh-apiserver`` will forward the necessary WireGuard public keys
automatically to remote clusters.
In such a setup, it is important to note that all participating clusters must
have WireGuard encryption enabled, i.e. mixed mode is currently not supported.
In addition, UDP traffic between nodes of different clusters on port ``51871``
must be allowed.

Limitations
===========

Expand Down