_.._
__d'_, `.
/ ) ) StrongSwan
/ / Kubernetes
/ / Proof of Concept
/ /_..-====-..__
/ Y `_=
( ( _.-"
( `-===-'" `"=-
`._________.-"
This is a proof of concept that demostrates how to establish pod-to-pod IPSec connections using StrongSwan in Kubernetes.
Make sure you have SecretStrongSwanCerts.yaml prefilled in the ./k8s
directory. There is a sample file SecretStrongSwanCerts.yaml.sample that
you can use as a template.
First create the PVC:
cd k8s
kubectl apply -f SharedVolumeClaim.yamlThen deploy the rest of the cluster:
cd k8s
kubectl apply -f .Shell into any of the pods, you will see several scripts.
root@strongswan-pod1-7666dbf567-z949g:/# ls / | grep .sh
load.sh
start.sh
status.sh
tunnel.shThen do these in order in both of the pods:
- Execute
sh start.shto start IPSec. - Execute
sh load.shto load the configuration. - Execute
sh tunnel.shto connect to the other pod. - Execute
sh status.shto check the status of the connection.