GCP K8s Service Catalog
The tutorial to learn - GCP
- Connecting Cloud Pub/Sub with Service Catalog
- Install K8s Service Catalog and Service Broker
- Using K8s Service Catalog
Which comes out with key concepts to learn
- Kubernetes Service Catalog
- Google Cloud Platform Service Broker
The tutorial to learn - Azure
- Open Service Broker Azure
- Install Service Broker
- Advanced Configuration
Creating a Service Principal && Obtain Your Subscription ID, etc.
```bash $ az ad sp create-for-rbac Retrying role assignment creation: 1/36 { “appId”: “ae69388d-0d08-46da-9350-1e0aac0bb39c”, “displayName”: “azure-cli-2018-05-17-16-00-03”, “name”: “http://azure-cli-2018-05-17-16-00-03”, “password”: “69725c73-f9b3-40b4-ac0f-57c3d45aac6a”, “tenant”: “ff38a05d-2e52-4838-9b07-7fbd50bbae9f” }
$ export AZURE_SUBSCRIPTION_ID=$(az account show –query id | sed s/"//g) $ export AZURE_TENANT_ID=ff38a05d-2e52-4838-9b07-7fbd50bbae9f $ export AZURE_CLIENT_ID=ae69388d-0d08-46da-9350-1e0aac0bb39c $ export AZURE_CLIENT_SECRET=69725c73-f9b3-40b4-ac0f-57c3d45aac6a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#### Installing the Open Service Broker for Azure to Kubernetes cluster
```bash
$ helm init
$ helm repo add azure https://kubernetescharts.blob.core.windows.net/azure
"azure" has been added to your repositories
$ kubectl create serviceaccount --namespace kube-system tiller
$ kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
$ kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
$ helm init --service-account tiller --upgrade
$ helm install azure/open-service-broker-azure --name azure-osba --namespace service-catalog \
--set azure.subscriptionId=$AZURE_SUBSCRIPTION_ID \
--set azure.tenantId=$AZURE_TENANT_ID \
--set azure.clientId=$AZURE_CLIENT_ID \
--set azure.clientSecret=$AZURE_CLIENT_SECRET \
--set modules.minStability=experimental
$ kubectl get clusterservicebroker -o yaml
$ kubectl get clusterserviceclasses -o=custom-columns=NAME:.metadata.name,EXTERNAL\ NAME:.spec.externalName
7bade660-32f1-4fd7-b9e6-d416d975170b azure-eventhubs
$ kubectl get clusterserviceplans -o=custom-columns=NAME:.metadata.name,EXTERNAL\ NAME:.spec.externalName,SERVICE\ CLASS:.spec.clusterServiceClassRef.name --sort-by=.spec.clusterServiceClassRef.name
264ab981-9e37-44ba-b6bb-2d0fe3e80565 standard 7bade660-32f1-4fd7-b9e6-d416d975170b
80756db5-a20c-495d-ae70-62cf7d196a3c basic 7bade660-32f1-4fd7-b9e6-d416d975170b
$ svcat get plans | grep azure-service
basic azure-servicebus Basic Tier, Shared Capacity
standard azure-servicebus Standard Tier, Shared
premium azure-servicebus Premium Tier, Dedicated
Reference: