Skip to content

Conversation

@ojhughes
Copy link
Contributor

No description provided.

spec:
containers:
- image: sample/bookstore-service-broker:0.0.1.BUILD-SNAPSHOT
- image: eu.gcr.io/cf-sandbox-ohughes/bookstore-service-broker:0.0.1.BUILD-SNAPSHOT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should not be committed

To test the Service Instance API, the URL can be constructed from the binding credentials;

---
export SI_URI=$(kubectl get secret bookstore-binding -n test -o json | jq -r '.data.uri' | base64 --decode)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to suggest this command, we'll need to add jq as an additional pre-requisite at the top of the document. We shouldn't assume everyone will have that installed.

metadata:
name: bookstore-broker
namespace: bookstore-broker
namespace: service-catalog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the namespace change? That ripples thru a lot of files and doc references. The namespace service-catalog might be confused with the namespace that the actual Service Catalog extension is deployed to, or potentially clash with other service broker sample deployments. It would be better if the name were specific to bookstore.

run: bookstore-broker
spec:
url: http://bookstore-broker.bookstore-broker.svc.cluster.local
url: http://35.197.249.208
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the DNS name not work with LoadBalanced? This IP address won't be valid for all deployments, will it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes using the internal DNS works for me


----
$ kubectl create -f deploy/kubernetes/service-broker-secret.yml
$ kubectl create secret generic -n bookstore-broker bookstore-broker-secret --from-literal=username='admin' --from-literal=password='supersecret'
Copy link
Contributor

@scottfrederick scottfrederick Feb 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the consistency of creating all artifacts from files, but I'm OK with creating with CLI options instead. This commit should remove deploy/kubernetes/service-broker-secret.yml if it's not going to be used though.


----
$ curl http://192.168.1.235:32248/v2/catalog -u admin:supersecret
$ curl http://35.197.249.208/v2/catalog -u admin:supersecret
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this IP address be valid for all deployments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No but I can't see a way of making an IP deterministic without creating and external DNS record

----

Note the value in the `EXTERNAL-IP` column of the node whose `NAME` matches the node for the `bookstore-broker` pod.
Note the value in the `LoadBalancer Ingress` column and the `Port` column below.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no output below this with the specified columns.

----
$ kubectl describe service bookstore-broker -n bookstore-broker
Name: bookstore-broker
$ kubectl describe service bookstore-broker -n bookstore-brokerName: bookstore-broker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a line break before Name: bookstore-broker

@scottfrederick
Copy link
Contributor

@ojhughes I had to fix the imports to get another change in. You should be able to rebase and remove those changes.

Ollie Hughes added 2 commits March 1, 2018 15:50
Ensure internal DNS and correct NS used
Use substituted external IP
Advise on JQ prerequisite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants