service-broker

by AppsCode Inc.

Helm chartv0.3.1App 0.3.1Verified publisher

Run AppsCode cloud services on Kubernetes via the Open Service Broker API

About this chart

AppsCode Service Broker

AppsCode Service Broker - Run AppsCode cloud services on Kubernetes via the Open Service Broker API.

TL;DR;

$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm install appscode/service-broker --name appscode-service-broker --namespace kube-system

Introduction

This chart bootstraps a Service-Broker deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.9+

Installing the Chart

To install the chart with the release name appscode-service-broker:

$ helm install appscode/service-broker --name appscode-service-broker --namespace kube-system

The command deploys AppsCode Service Broker on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the appscode-service-broker:

$ helm delete appscode-service-broker

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the AppsCode Service Broker chart and their default values.

ParameterDescriptionDefault
replicaCountNumber of Service Broker replicas to create (only 1 is supported)1
broker.registryDocker registry used to pull service broker imageappscode
broker.repositoryService broker container imageservice-broker
broker.tagService broker container image tag0.3.1
cleaner.registryDocker registry used to pull service broker cleaner imageappscode
cleaner.repositoryService broker cleaner container imagekubectl
cleaner.tagService broker cleaner container image tagv1.12
imagePullSecretsSpecify image pull secretsnil (does not add image pull secrets to deployed pods)
imagePullPolicyImage pull policyIfNotPresent
criticalAddonIf true, installs service broker as critical addonfalse
logLevelLog level for service broker3
resourcesCPU/Memory resource requests/limits{}
affinityAffinity rules for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations used pod assignment{}
serviceAccount.createIf true, create a new service accounttrue
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the fullname template``
apiserver.useKubeapiserverFqdnForAksIf true, uses kube-apiserver FQDN for AKS cluster to workaround https://github.com/Azure/AKS/issues/522true
apiserver.healthcheck.enabledEnable readiness and liveliness probestrue
enableAnalyticsSend usage events to Google Analyticstrue
monitoring.enabledSpecify whether to monitor service broker.false
monitoring.agentSpecify which monitoring agent to use for monitoring service broker. It accepts either prometheus.io/builtin or prometheus.io/coreos-operator.none
monitoring.prometheus.namespaceSpecify the namespace where Prometheus server is running or will be deployed.Release namespace
monitoring.serviceMonitor.labelsSpecify the labels for ServiceMonitor. Prometheus crd will select ServiceMonitor using these labels. Only usable when monitoring agent is prometheus.io/coreos-operator.app: <generated app name> and release: <release name>
catalog.namesList of catalog["kubedb"]
catalog.pathThe path where catalog for different service plans are mounted/etc/config/catalog
catalog.controller.enabledSpecify false if used without service catalog (eg CloudFoundry)true
catalog.controller.serviceAccount.namespaceNamespace of service catalog manager controller service accountcatalog
catalog.controller.serviceAccount.nameName of service catalog controller manager service accountservice-catalog-controller-manager
defaultNamespaceThe default namespace for brokers when the request doesn't specifydefault

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:

$ helm install --name appscode-service-broker --set image.pullPolicy=Always appscode/service-broker

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:

$ helm install --name appscode-service-broker --values values.yaml appscode/service-broker

Deploy service-broker with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has service-broker on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartservice-broker is pinned at v0.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply