k8s + opencontrail on AWS
For anyone interested in running a testbed with Kubernetes and OpenContrail on AWS i managed to boil down the install steps to the minimum:
- Use AWS IAM to create a user and download a file “credentials.csv”
- Checkout the scripts via `git clone https://github.com/pedro-r-marques/examples.git`
- Change to the “ec2-k8s-cluster” directory (e.g. /Users/roque/src/examples/ec2-k8s-cluster)
- Edit “credentials.sh” with the location of you csv file and user name and then “eval” this script.
- Run ./setup.sh
The setup script will:
- Create 5 VMs in a VPC on AWS;
- Run the ansible provisioning script that installs the cluster;
- Run a minimal sanity check on the cluster;
- Launch an example;
- Fetch the status page of the example app in order to check whether it is running successfully.
Please let me know if you run into any glitch… the “setup.sh” script can be rerun multiple times (the ansible provisioning is designed to be idempotent).
Next, I need to wrap this up with a Jenkins CI pipeline. And build permutations for:
- kubernetes vs openshift;
- single vs multiple network interfaces;
- direct internet access vs http-proxy;
- software gateway or a vSRX (for hybrid cloud interconnect);
The fun never stops !
