First, bring up baas
helm init
go get -u github.com/cclin81922/osbapi-baas/cmd/osbapibaas
cd ~/go/src/github.com/cclin81922/osbapi-baas
make deploy-baas
export POD_NAME=$(kubectl get pods --namespace baas-skeleton -l "app=osbapibaas,release=baas-skeleton" -o jsonpath="{.items[0].metadata.name}")
kubectl -n baas-skeleton logs $POD_NAME
# 2018/10/15 02:06:06 Base url is https://localhost.localdomain:443/
Second, bring up broker
go get -u github.com/cclin81922/osb-starter-pack/cmd/servicebroker
cd ~/go/src/github.com/cclin81922/osb-starter-pack
make deploy-sc
svcat get brokers # KEEP TRYING
# NAME NAMESPACE URL STATUS
# +------+-----------+-----+--------+
WAIT UNTIL SC READY
make deploy-broker
svcat get brokers broker-skeleton # KEEP TRYING
# NAME NAMESPACE URL STATUS
# +-----------------+-----------+---------------------------------------------------------------------------+--------+
# broker-skeleton https://broker-skeleton-broker-skeleton.broker-skeleton.svc.cluster.local Ready
WAIT UNTIL BROKER READY
Finally, bring up app
go get -u github.com/cclin81922/osbapi-app/cmd/osbapiapp
cd ~/go/src/github.com/cclin81922/osbapi-app
make provision-svc
make bind-svc
kubectl get secrets osbapi-app-secret -n app-skeleton
# NAME TYPE DATA AGE
# osbapi-app-secret Opaque 6 18s
make deploy-app
export POD_NAME=$(kubectl get pods --namespace app-skeleton -l "app=osbapiapp,release=app-skeleton" -o jsonpath="{.items[0].metadata.name}")
kubectl -n app-skeleton logs $POD_NAME
# 2018/10/15 02:48:46 2018-10-15 02:48:46.154432755 +0000 UTC m=+3.001906152
Fisrt, bring up a GKE cluster
gcloud container clusters create k8s-osbapi --num-nodes 2 --cluster-version=1.10
WAIT UNTIL GKE CLUSTER READY
kubectl apply -f manifests/service-account-helm.yaml
helm init --service-account helm
helm list # KEEP TRYING
WAIT UNTIL HELM TILLER READY
Second, bring up baas
go get -u github.com/cclin81922/osbapi-baas/cmd/osbapibaas
cd ~/go/src/github.com/cclin81922/osbapi-baas
PULL=IfNotPresent make push deploy-baas
export POD_NAME=$(kubectl get pods --namespace baas-skeleton -l "app=osbapibaas,release=baas-skeleton" -o jsonpath="{.items[0].metadata.name}")
kubectl -n baas-skeleton logs $POD_NAME
# 2018/10/15 03:38:17 Base url is https://localhost.localdomain:443/
Third, bring up broker
go get -u github.com/cclin81922/osb-starter-pack/cmd/servicebroker
cd ~/go/src/github.com/cclin81922/osb-starter-pack
make deploy-sc
svcat get brokers # KEEP TRYING
# NAME NAMESPACE URL STATUS
# +------+-----------+-----+--------+
WAIT UNTIL SC READY
PULL=IfNotPresent make push deploy-broker
svcat get brokers broker-skeleton # KEEP TRYING
# NAME NAMESPACE URL STATUS
# +-----------------+-----------+---------------------------------------------------------------------------+--------+
# broker-skeleton https://broker-skeleton-broker-skeleton.broker-skeleton.svc.cluster.local Ready
WAIT UNTIL BROKER READY
Fourth, bring up app
go get -u github.com/cclin81922/osbapi-app/cmd/osbapiapp
cd ~/go/src/github.com/cclin81922/osbapi-app
make provision-svc
make bind-svc
kubectl get secrets osbapi-app-secret -n app-skeleton
# NAME TYPE DATA AGE
# osbapi-app-secret Opaque 6 18s
PULL=IfNotPresent make push deploy-app
export POD_NAME=$(kubectl get pods --namespace app-skeleton -l "app=osbapiapp,release=app-skeleton" -o jsonpath="{.items[0].metadata.name}")
kubectl -n app-skeleton logs $POD_NAME
# 2018/10/15 03:43:01 2018-10-15 03:43:01.878283557 +0000 UTC m=+3.001102517