-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Thank you for @bryopsida chats, which allow me to directly deploy wg services with just one click. I look forward to your reply
As title: How to create charts in k8s and use wg client on macos to use them,and Only Route k8s internal domain name traffic
THIS is my values.yaml
wireguard:
clients:
- FriendlyName: cc
PublicKey: tlJXcOQXVigzmEmyMEna3TNLqXAwFeEFD10P6NvYFRE=
AllowedIPs: 192.168.10.1/24
serverAddress: 192.168.0.1/16
serverCidr: 192.168.0.0/16
replicaCount: 2
autoscaling:
minReplicas: 2
maxReplicas: 10
k8s server (alicloud ack ) cidr is 192.168.0.0/16
serverAddress is Randomly set subnets 192.168.0.1/16
clients PublicKey is macos client generate ,AllowedIPs is Randomly set subnets 192.168.10.1/24
my client (macos appstore download)config is imitate your example https://github.com/bryopsida/wireguard-chart?tab=readme-ov-file#example-tunnel-configurations:
[Interface]
PrivateKey = mGmJINaT0IYddr6X+0Qfyyr1OQCzouI/ReyaRTmmclc=
Address = 192.168.10.1/24
DNS = 192.168.0.10
[Peer]
PublicKey = olf180XbonwpKVncLkCxLrbjazo878h5es2Tc3EQZn4=
AllowedIPs = 0.0.0.0/0
Endpoint = 47.237.109.24:51820
Interface:
PrivateKey is mac os generate
Address is same to server config AllowedIPs
dns is k8s kube dns clusterIp type service ip ,
DNS
Peer:
PublicKey is wg server pod console printf copy
AllowedIPs temp allow all (Actually, I only want the internal network service to be accessed through wg, while the rest go through normal traffic)
Endpoint is wg service loadbalance generate
this k8s is demo cluster ,so im not mask .
expected ,Just like you, im dig mysql.default.svc.cluster.local is can visited
actually , im dig get info:
% dig mysql.default.svc.cluster.local
; <<>> DiG 9.10.6 <<>> mysql.default.svc.cluster.local
;; global options: +cmd
;; connection timed out; no servers could be reached
