Skip to content

thiagodasilva/kubernetes-swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-swift

Simple PoC to run a small swift cluster in Kubernetes.

Usage

Start the kubernetes cluster using the Vagrantfile

  • ./up.sh

This will start 4 VMs and configure kubernetes with 1 master and 3 worker nodes. Once provisioning is complete, the admin.conf file will be copied to /vagrant in the master node, which will allow for accessing the kubernetes cluster from the host machine.

To access the kubernetes cluster, install kubectl and set the enviroment variable like:

  • export KUBECONFIG=/home/thiago/Projects/kubernetes-swift/admin.conf
  • kubectl get nodes

Create Swift cluster with Quartermaster

After provisioning the kubernetes cluster and configuring kubectl, run quartermaster and deploy the swift cluster:

  1. kubectl run -n kube-system kube-qm --image=thiagodasilva/qm
  2. kubectl create -f swift-cluster.yaml
  3. kubectl get all

Now test the Swift cluster:

  1. kubectl get svc
  2. curl -i http://192.168.10.90:32499/info <---- update port
  3. echo "hello world" > hw
  4. swift -A http://192.168.10.90:32499/auth/v1.0 -U admin:admin -K admin upload c1 hw

Checkout this asciicast for a demo of deploying quartermaster and swift cluster:

asciicast

Releases

No releases published

Packages

No packages published

Languages

  • Shell 50.5%
  • Python 49.5%