Skip to content

Adding the kubernetes services to the list of Master server names - #1481

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
brenton:cert1
Mar 27, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
brenton:cert1

Conversation

@brenton

@brenton brenton commented Mar 27, 2015

Copy link
Copy Markdown
Contributor

This is needed for pods that want to connect to the Master securely via the
service and don't know the public-master name.

@brenton

brenton commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

@liggitt, could we have this? It allows pods that want to connect securely to the Master service do so if they have access to the out-of-the-box certificates.

A few things we could think about fixing longer term:

  • It would be nice if there was a way to pass in arbitrary alternate hostnames for the master
  • It would be nice not to have to hardcode these kubernetes services. We could be able to read pull them from a variable but it doesn't seem like upstream kubernetes has that yet. It seems you can pull the name of the namespace from the kubelet but the service names aren't exposed.
  • If this proved really useful we might eventually want equivalent openshift and openshift-ro services. This would be required in the case openshift and kubernetes weren't colocated.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

works for me. @smarterclayton should we also "openshift.default.local", or wait until we're creating that service?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sign it anyway, we might do trickeration in the DNS API to make that happen.

----- Original Message -----

@@ -297,7 +297,7 @@ func (args MasterArgs) GetServerCertHostnames()
(util.StringSet, error) {
return nil, err
}

  • allHostnames := util.NewStringSet("localhost", "127.0.0.1",
    masterAddr.Host, masterPublicAddr.Host, kubePublicAddr.Host,
    assetPublicAddr.Host)

works for me. @smarterclayton should we also "openshift.default.local", or
wait until we're creating that service?


Reply to this email directly or view it on GitHub:
https://github.com/openshift/origin/pull/1481/files#r27304323

@liggitt

liggitt commented Mar 27, 2015

Copy link
Copy Markdown
Contributor

@brenton that list is just for development. You can also pregenerate certs using openshift admin create-all-certs (soon to be openshift admin create-master-certs) and you get to specify all the hostnames you desire

@brenton

brenton commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

@liggitt, ahh, I knew I had heard of a way to specify extra hostnames. I stumbled across create-node-certs yesterday but I didn't think to check for a command to create the master certificates. Does the admin command certificate creation fill in any extra names by default? I think these would be good to have if not. I can't think of how the kubernetes.default.local (and eventually openshift service) will be useful if the certificates don't have them listed.

@liggitt

liggitt commented Mar 27, 2015

Copy link
Copy Markdown
Contributor

The fundamental admin commands try to not be tricky... the args you provide are what you get. We could add validation/warnings if you generate certs directly without including things we think should be there, but I don't want to auto-add them. For example, if you're running openshift against an existing kubernetes cluster, you wouldn't want openshift serving with a cert that's valid for kubernetes.default.local

@liggitt

liggitt commented Mar 27, 2015

Copy link
Copy Markdown
Contributor

@brenton go ahead and add openshift.default.local and openshift-ro.default.local and we can merge this

@smarterclayton

Copy link
Copy Markdown
Contributor

Don't add OpenShift-ro - we won't expose it

On Mar 27, 2015, at 11:55 AM, Jordan Liggitt [email protected] wrote:

@brenton go ahead and add openshift.default.local and openshift-ro.default.local and we can merge this

—
Reply to this email directly or view it on GitHub.

… of Master

server names

This is needed for pods that want to connect to the Master securely via the
service and don't know the public-master name.
@brenton

brenton commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

Updated. +1 for DNS trickeration.

@liggitt

liggitt commented Mar 27, 2015

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/1320/) (Image: devenv-fedora_1149)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin up to 948d77c

openshift-bot pushed a commit that referenced this pull request Mar 27, 2015
Merged by openshift-bot
@openshift-bot
openshift-bot merged commit 0ed75c2 into openshift:master Mar 27, 2015
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Oct 27, 2017
…service-catalog/' changes from 510060232e..892b0368f0

892b0368f0 origin build: add origin tooling
e4293d3 v0.1.1 chart changes (openshift#1493)
bf0d18b Adding log level option to make test, filter integration tests by name. (openshift#1477)
af15c20 Send deprovision request when an instance is deleted even when the provision request failed (openshift#1481)
4268429 simplify installation and docs (openshift#1398)
fdd02a0 Clear orphan mitigation when deleted by user (openshift#1484)
24d2b9e Remove extraneous logging, events, and conditions from reconciliation timeout in unbind (openshift#1489)
699e1aa Minor code moves in controller_binding.go (openshift#1486)
77c1353 Make instance UpdateRequests and broker RelistRequests optional (openshift#1462)
4696e4e Add logging to help diagnose 'cannot fulfill operation' errors (openshift#1479)
50bbcb7 Actually test parameters are correct when updating instance (openshift#1483)
2aa97a8 Pretty logging controller_binding.go (openshift#1467)
4a365fa Fix the broken link to spring cloud services in docs/parameters.md (openshift#1485)
8448f89 Use the base debian image from kube (openshift#1478)
2f7698e Use versioned API client (openshift#1470)
REVERT: 510060232e origin build: add origin tooling

git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog
git-subtree-split: 892b0368f01e45f2c60e85ce83ca9c24f4827044
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Feb 1, 2018
…ovision request failed (openshift#1481)

* Send deprovision request when an instance is deleted even when the provision request failed.
Do not remove instance resources when deprovision fails.

* Fix lint errors

* Code review feedback.

* Fix typo
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.

4 participants