k8sbroker

command module
v0.0.0-...-24f4705 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

README

k8sbroker

This is a generic K8s service broker that provisions nfs volumes for applications pushed to an Eirini-flavored deployment of Cloud Foundry.

Deploying the k8sbroker

The k8sbroker is a golang application that can be cf pushed to an Eirini deployment (configured with diego staging).

To deploy the broker and enable its services in the cf marketplace:

$ CF_USERNAME=<username> CF_PASSWORD=<password> ./scripts/deploy.sh \
  -k <path-to-kube-config.json> \
  -i <cf-api> \
  -o <org> \
  -s <space> \
  -a <app-domain>

where:

  • path-to-kube-config.json: is the path to a valid kube config json file that allows connection to the kubernetes cluster from within the cluster itself. This file will be used by the k8sbroker to manage persistent volumes and persistent volume claims.
  • cf-api: the cf api endpoint through which the k8sbroker will be pushed
  • org: the org that the k8sbroker will be psuhed into
  • space: the space that the k8sbroker will be pushed into
  • app-domain: the application domain for the CF deployment

Using the k8sbroker

$ cd ~/workspace/
$ git clone https://github.com/cloudfoundry/persi-acceptance-tests
$ cd ~/workspace/persi-acceptance-tests/assets/pora
$ cf push pora --no-start
$ cf create-service nfs Existing mynfs -c '{"server":"<server>", "share":"<share>"}'
$ cf bind-service pora mynfs
$ cf start pora

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
k8sbroker_fake
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL