Kick the tires with Portworx on AWS

You can quickly provision a Kubernetes cluster with Portworx running on AWS. Here’s how.

  1. Install the AWS CLI:
sudo yum install -y epel-release git unzip gcc fuse fuse-devel
sudo yum install -y python-pip
sudo pip install awscli
aws configure
  1. Install Vagrant:
curl https://releases.hashicorp.com/vagrant/2.2.4/vagrant_2.2.4_linux_amd64.zip | funzip >vagrant
sudo install -m 755 vagrant /usr/local/bin/vagrant
  1. Install Node.js and the json module:
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install -y nodejs
sudo npm install -g json
  1. Install Vagrant AWS plugin and dummy box:
vagrant plugin install vagrant-aws
vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
  1. Clone the repo:
git clone https://github.com/andrewh1978/px-aws-k8s-multi
cd px-aws-k8s-multi
  1. Edit create-vpc.sh and update AWS_DEFAULT_REGION if necessary.

  2. Edit Vagrantfile. At the least, you will need to update keypair_name.

  3. Generate some SSH keys:

ssh-keygen -t rsa -b 2048 -f id_rsa

These will only be used for SSH between nodes.

  1. Provision the VPC:
. create-vpc.sh
  1. Start the cluster(s):
vagrant up
  1. After a few minutes, both the Kubernetes and Portworx clusters will be up and running:
vagrant ssh master-1
sudo -i
kubectl get nodes
ssh node-1-1 pxctl status