Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Kubernetes 1.11 #77

Merged
merged 14 commits into from
Feb 23, 2019
Merged

Move to Kubernetes 1.11 #77

merged 14 commits into from
Feb 23, 2019

Conversation

dlipovetsky
Copy link
Contributor

Fixes #76

@dlipovetsky dlipovetsky changed the title Change Kubernetes version to 1.11.4 [WIP] Change Kubernetes version to 1.11.4 Nov 8, 2018
@dlipovetsky dlipovetsky force-pushed the private/daniel/kubernetes-1.11 branch from 54bfbb1 to 10bd01d Compare November 10, 2018 01:46
@dlipovetsky dlipovetsky changed the title [WIP] Change Kubernetes version to 1.11.4 Change Kubernetes version to 1.11.4 Nov 14, 2018
Copy link
Contributor

@puneetguptanitj puneetguptanitj left a comment

Choose a reason for hiding this comment

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

LGTM thanks Daniel!

vannrt
vannrt previously requested changes Nov 15, 2018
defaults/validation.go Outdated Show resolved Hide resolved
@dlipovetsky dlipovetsky force-pushed the private/daniel/kubernetes-1.11 branch from 10bd01d to f52daee Compare December 29, 2018 02:31
@dlipovetsky dlipovetsky force-pushed the private/daniel/kubernetes-1.11 branch from f52daee to 6ff55eb Compare January 5, 2019 00:38
@dlipovetsky dlipovetsky changed the title Change Kubernetes version to 1.11.4 Move to Kubernetes 1.11 Jan 24, 2019
@dlipovetsky dlipovetsky force-pushed the private/daniel/kubernetes-1.11 branch from f4db4e7 to 6a3fadc Compare January 28, 2019 22:51
@dlipovetsky dlipovetsky force-pushed the private/daniel/kubernetes-1.11 branch from 5d53b2d to 9bc7ffe Compare February 7, 2019 22:01
@vannrt vannrt dismissed their stale review February 8, 2019 00:09

Outdated

Daniel Lipovetsky added 9 commits February 7, 2019 18:48
- Accept configuration file in nodeadm join
- Use kubeadm config to override hostname
- Do not write nodeadm kubelet systemd drop-in; no longer necessary,
  as values are fetched by kubeadm. See https://kubernetes.io/docs/setup/independent/kubelet-integration/#propagating-cluster-level-configuration-to-each-kubelet
- Remove unused Kubelet and Networking fields from JoinConfiguration
- Remove default IP and routerID for VIPConfiguration
CoreDNS is the default cluster DNS provider as of kubeadm 1.11
kubeadm 1.11 expects the arch-agnostic image. See kubernetes/kubernetes@0745b25
@dlipovetsky dlipovetsky force-pushed the private/daniel/kubernetes-1.11 branch from e20c719 to c0d8d88 Compare February 11, 2019 21:53
apis/validation.go Outdated Show resolved Hide resolved
apis/validation.go Show resolved Hide resolved
constants/constants.go Outdated Show resolved Hide resolved
Daniel Lipovetsky and others added 2 commits February 15, 2019 17:38
Co-Authored-By: dlipovetsky <dlipovetsky@users.noreply.github.com>
Copy link
Contributor

@puneetguptanitj puneetguptanitj left a comment

Choose a reason for hiding this comment

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

Hi Daniel, thanks a lot for all the changes, had a few questions/comments ptal, thanks!

}
if netConfig.DNSDomain == "" {
netConfig.DNSDomain = constants.DefaultDNSDomain
if p.ExistsP("api.bindPort") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just adding a comment as per our discussion during code walk through. There is a tradeoff between knowing the type or using master configuration as just a blob of map[string]{}. Not knowing the type reemphasizes (and rightly so) the fact that nodeadm should just act as pass through of kubeadm's master configuration. However there might be cases like these where nodeadm would still have to be aware of partial if not entire schema of upstream type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only case, and it's due to nodeadm configuring keepalived. I'd like to remove even this case in the future, if possible.

func logAllWithPrefix(prefix string, r io.Reader) {
s := bufio.NewScanner(r)
for s.Scan() {
log.Infof("%v: %v", prefix, s.Text())
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Daniel, just to understand, this means that even with the piped output the verbosity set at nodeadm will be honored?

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 😄

If nodeadm is configured to omit Info-level messages, kubeadm output won't be seen.

utils/install.go Show resolved Hide resolved
DefaultPodNetwork = "10.244.0.0/16"
DefaultDNSIP = "10.96.0.10"
DefaultServiceSubnet = "10.96.0.0/12"
DefaultDNSDomain = "cluster.local"
DefaultRouterID = 42
KubeadmConfig = "/tmp/kubeadm.yaml"
KubeDNSVersion = "1.14.8"
CoreDNSVersion = "1.1.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Daniel, sorry forgot to ask during code walk through, for upgrade scenarios do we need an explicit kubectl delete for kubedns

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, but that will be done in cctl.

@dlipovetsky dlipovetsky merged commit 01ac748 into master Feb 23, 2019
@dlipovetsky dlipovetsky deleted the private/daniel/kubernetes-1.11 branch May 8, 2019 00:39
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