Guest User

Untitled

a guest
Dec 11th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. ## Reserver IP address
  2. ```sh
  3. gcloud compute addresses create staging-vpn --region REGION
  4. ```
  5.  
  6. ## Retrive IP address
  7. ```sh
  8. gcloud compute addresses describe staging-vpn --region REGION | grep address:
  9. ```
  10.  
  11. ## Apply IP
  12. Put the IP in `loadBalancerIP`.
  13.  
  14. ## Add user
  15. ```sh
  16. kubectl exec staging-vpn-0 --namespace staging -it -- "easyrsa build-client-full USERNAME nopass
  17. ```
  18.  
  19. ## Retrive user config
  20. ```sh
  21. kubectl exec staging-vpn-0 --namespace staging -it -- ovpn_getclient USERNAME > USERNAME.ovpn
  22. ```
  23. ## DNS Server (Automatically)
  24. The server will pickup the DNS server automatically in the initialization stage.
  25. If the cluster when down/ DNS server get changed, you must update it manually.
  26. ## DNS Server (manually)
  27. Get the IP address of the DNS server
  28. ```sh
  29. kubectl exec staging-vpn-0 --namespace staging -c staging-vpn -it -- cat /etc/resolv.conf | grep nameserver
  30. ```
  31. ## Trubleshot (Mac OS)
  32. If the DNS search domain did not work, you need to restart the DNS resolver
  33. using
  34. ```sh
  35. $ sudo killall -HUP mDNSResponder
  36. ```
Add Comment
Please, Sign In to add comment