https://github.com/kevinpollet/k8s-tunnel
Example of a secured mTLS tunnel between two Kubernetes clusters.
https://github.com/kevinpollet/k8s-tunnel
clusters k8s mtls tunnel
Last synced: 3 months ago
JSON representation
Example of a secured mTLS tunnel between two Kubernetes clusters.
- Host: GitHub
- URL: https://github.com/kevinpollet/k8s-tunnel
- Owner: kevinpollet
- License: mit
- Created: 2021-08-06T15:51:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T21:21:24.000Z (almost 4 years ago)
- Last Synced: 2025-06-05T04:26:45.328Z (4 months ago)
- Topics: clusters, k8s, mtls, tunnel
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k8s-tunnel
This repository contains an example of an mTLS tunnel between two Kubernetes clusters. Each cluster contains a `gateway`
allowing to setup a secured mTLS tunnel.The `East` cluster contains a whoami service. The `West` cluster contains a shadow service allowing to access the whoami
service in the `East` cluster through the secured tunnel.### Requirements
- k3d [v5.0.0](https://github.com/rancher/k3d/releases/tag/v5.0.0)
### 1. Start the East cluster
```bash
$ cd east
$ ./start.sh
```### 2. Start the West cluster
```bash
$ cd west
$ ./start.sh
```### 3. Send a request to the Whoami service
```bash
$ kubectl exec deployment/client -- curl http://whoami.default.svc
```### License
[MIT](./LICENSE.md)