Skip to content

Add the salt-overlay directory to the GCE master-pd and reserve the master's IP#4715

Merged
zmerlynn merged 2 commits intokubernetes:masterfrom
a-robinson:gce-mount
Feb 23, 2015
Merged

Add the salt-overlay directory to the GCE master-pd and reserve the master's IP#4715
zmerlynn merged 2 commits intokubernetes:masterfrom
a-robinson:gce-mount

Conversation

@a-robinson
Copy link
Copy Markdown
Contributor

...upon creation to make it easier to replace the master later.

This pulls out the parts of PR #3174 that don't break anything and will make upgrading existing clusters in the future less painful. #3174 will still need more effort to make work, unfortunately.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you miss committing this file, or did I miss something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ugh, yeah. Thanks for catching that.

@a-robinson a-robinson force-pushed the gce-mount branch 2 times, most recently from 2f126f4 to a5485d7 Compare February 23, 2015 05:58
@a-robinson
Copy link
Copy Markdown
Contributor Author

I've also added /etc/salt/, as /etc/salt/pki/ contains the dynamically generated RSA keys used by salt. Without saving it, the salt minions on the nodes don't trust a replacement master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If /etc/salt/pki is all you need, would it be safer just to handle that directory alone? (it's another mkdir -m 700, looks like).

I don't see anything immediately unsafe to mimick in the /etc/salt dir, but it feels it would be better to be surgical here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, done. Albeit with -m 770, since that's what I'm seeing on my cluster. Are you seeing 700?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry, you're right. It's 770.

…nd reserve

the master's IP upon creation to make it easier to replace the master later.

This pulls out the parts of PR kubernetes#3174 that don't break anything and will
make upgrading existing clusters in the future less painful.

Add /etc/salt to the master-pd
@zmerlynn
Copy link
Copy Markdown
Member

LGTM. Will merge on Travis.

@zmerlynn zmerlynn added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 23, 2015
@zmerlynn
Copy link
Copy Markdown
Member

Travis is being dumb, and won't show anything useful here. Rolling the dice.

zmerlynn added a commit that referenced this pull request Feb 23, 2015
Add the salt-overlay directory to the GCE master-pd and reserve the master's IP
@zmerlynn zmerlynn merged commit 9936f09 into kubernetes:master Feb 23, 2015
@a-robinson a-robinson deleted the gce-mount branch April 27, 2015 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm "Looks good to me", indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants