Simple PoC to run a small swift cluster in Kubernetes.
./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
After provisioning the kubernetes cluster and configuring kubectl, run quartermaster and deploy the swift cluster:
kubectl run -n kube-system kube-qm --image=thiagodasilva/qm
kubectl create -f swift-cluster.yaml
kubectl get all
Now test the Swift cluster:
kubectl get svc
curl -i http://192.168.10.90:32499/info
<---- update portecho "hello world" > hw
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: