See docs/example.go for an example & apiv1/interfaces.go for interface details.
CPIs using this library:
The green and orange boxes describe what we're attempting to stand up with Bosh CPIs. We'd like to utilize Azure Files and AKS Pods to back a bosh Kubernetes CPI implementation.
You need dep
for pulling in all Golang dependencies:
go get -u github.com/golang/dep/cmd/dep
And compile
git clone https://github.com/plooploops/bosh-cpi-go && cd bosh-cpi-go
dep ensure
go build docs/kubernetes-cpi.go
We can use Bash (WSL / Linux):
docs/test.sh
This will use the json templates to create stemcells and pods.
kubectl --kubeconfig kubeconfig proxy
Navigate to aka.ms/k8sui to check out the pods in a browser.
We can also use kubectl to get into a running pod.
kubectl exec -it trustypod -- bash
- Create Stemcell
- Fill in other parts of CPI interface