Holiday Project Part 2

During my two weeks off of work I set myself the challenge to move as much of my home network infrastructure to Kubernetes as possible. My wife has often questioned “Why do you need any network Infrastructure, other then a wifi point?”. This article is still not going to address that question. What is VPN?

In short by having a VPN Server allows me to connect to my home network securely from any location. As I travel around the world I find this useful for backing up files, fixing computer issues and many other reasons.

VPN in Kubernetes

This uses the hwdsl2/ipsec-vpn-server container.

The helm chart can be downloaded from https://github.com/ChrisPhillips-cminion/vpn-helm.

Update the values.yaml file then run helm install <path to directory>

The values file must contain these entries

VPN_IPSEC_PSK: shared-password
VPN_USER: cminion
VPN_PASSWORD: password
#Public IP
EXTERNALIP: 1.1.1.1
  • [VPN_IPSEC_PSK - The share password]
  • [VPN_USER - username]
  • [VPN_PASSWORD - User Password]
  • [ExternalIP: The IP you will be connecting to, for me this is my houses public IP, it is required to route through Kubernetes.]

By Chris Phillips on December 27, 2018.

Canonical link

Exported from Medium on April 6, 2019.