k8s-playground/setup/templates/wg-k8s.conf
2019-05-30 13:37:13 +02:00

24 lines
848 B
Text

[Interface]
PrivateKey = {{ wg_secret_key }}
ListenPort = 51820
[Peer]
Endpoint = {{ hostvars['cluster-control01'].ansible_ssh_host }}:51820
PublicKey = {{ hostvars['cluster-control01'].wg_public_key }}
AllowedIPs = {{ hostvars['cluster-control01'].wg_ip }}/32
[Peer]
Endpoint = {{ hostvars['cluster-worker01'].ansible_ssh_host }}:51820
PublicKey = {{ hostvars['cluster-worker01'].wg_public_key }}
AllowedIPs = {{ hostvars['cluster-worker01'].wg_ip }}/32
[Peer]
Endpoint = {{ hostvars['cluster-worker02'].ansible_ssh_host }}:51820
PublicKey = {{ hostvars['cluster-worker02'].wg_public_key }}
AllowedIPs = {{ hostvars['cluster-worker02'].wg_ip }}/32
[Peer]
Endpoint = {{ hostvars['cluster-worker03'].ansible_ssh_host }}:51820
PublicKey = {{ hostvars['cluster-worker03'].wg_public_key }}
AllowedIPs = {{ hostvars['cluster-worker03'].wg_ip }}/32