You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are facing any problems please open an [issue](https://github.com/jodevsa/wireguard-operator/issues) or start a [discussion](https://github.com/jodevsa/wireguard-operator/discussions)
11
-
# Tested with
11
+
## Tested with
12
12
-[x] IBM Cloud Kubernetes Service
13
13
-[x] Gcore Labs KMP
14
14
* requires `spec.enableIpForwardOnPodInit: true`
@@ -22,52 +22,53 @@ If you are facing any problems please open an [issue](https://github.com/jodevsa
22
22
-[ ] Azure Kubernetes Service
23
23
-[ ] ...?
24
24
25
-
# Architecture
25
+
##Architecture
26
26
27
27

28
-
# Features
28
+
29
+
## Features
29
30
* Falls back to userspace implementation of wireguard [wireguard-go](https://github.com/WireGuard/wireguard-go) if wireguard kernal module is missing
30
31
* Automatic key generation
31
32
* Automatic IP allocation
32
33
* Does not need persistance. peer/server keys are stored as k8s secrets and loaded into the wireguard pod
33
34
* Exposes a metrics endpoint by utilizing [prometheus_wireguard_exporter](https://github.com/MindFlavor/prometheus_wireguard_exporter)
34
35
35
-
# Example
36
+
## Example
37
+
38
+
### Server
36
39
37
-
## server
38
40
```
39
-
apiVersion: vpn.example.com/v1alpha1
41
+
apiVersion: vpn.wireguard-operator.io/v1alpha1
40
42
kind: Wireguard
41
43
metadata:
42
44
name: "my-cool-vpn"
43
45
spec:
44
46
mtu: "1380"
45
47
```
46
48
47
-
48
-
## peer
49
+
### Peer
49
50
50
51
```
51
-
apiVersion: vpn.example.com/v1alpha1
52
+
apiVersion: vpn.wireguard-operator.io/v1alpha1
52
53
kind: WireguardPeer
53
54
metadata:
54
55
name: peer1
55
56
spec:
56
57
wireguardRef: "my-cool-vpn"
57
-
58
58
```
59
59
60
+
#### Peer configuration
60
61
62
+
Peer configuration can be retrieved using the following command:
61
63
62
-
### Peer configuration
63
-
64
-
Peer configuration can be retreived using the following command
65
-
#### command:
66
-
```
64
+
```console
67
65
kubectl get wireguardpeer peer1 --template={{.status.config}} | bash
68
66
```
69
-
#### output:
70
-
```
67
+
68
+
After executing it, something similar to the following will be shown. Use this config snippet to configure your
0 commit comments