Skip to content

Override hostname for kubernetes et al.#390

Closed
iMartyn wants to merge 4 commits intodocker-mailserver:masterfrom
iMartyn:master
Closed

Override hostname for kubernetes et al.#390
iMartyn wants to merge 4 commits intodocker-mailserver:masterfrom
iMartyn:master

Conversation

@iMartyn
Copy link
Copy Markdown

@iMartyn iMartyn commented Nov 27, 2016

In kubernetes land, it's not possible to set the hostname of a container, it's always set to a variation of the pod name, with random characters in it.

This PR should allow the env var OVERRIDE_HOSTNAME to replace the hostname commands that are used in the script.

@tyranron
Copy link
Copy Markdown
Contributor

There is a possibility: v1.PodSpec hostname & subdomain. Please, look here for example.
I'm successfully using this image in Kubernetes.

@iMartyn
Copy link
Copy Markdown
Author

iMartyn commented Nov 27, 2016

Hi tyanron,

Sure, that's useful, but it doesn't give you the option of returning the dns name. if you set subdomain, it includes the .svc.cluster stuff. I still think that giving the option of specifically using env override is better.

@tomav
Copy link
Copy Markdown
Contributor

tomav commented Dec 25, 2016

@iMartyn moved to another project.
Feel free to get this back to life if needed.

@tomav tomav closed this Dec 25, 2016
@tomav tomav reopened this Jan 18, 2017
@kvncrw kvncrw mentioned this pull request Jan 19, 2017
@tomav
Copy link
Copy Markdown
Contributor

tomav commented Jan 19, 2017

Moved to #484

@tomav tomav closed this Jan 19, 2017
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.

3 participants