Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Update kubeadm.yaml to 1.17 version#296

Merged
knangia merged 1 commit intoclearlinux:masterfrom
jascott1:kubeadm-1.17
Jan 8, 2020
Merged

Update kubeadm.yaml to 1.17 version#296
knangia merged 1 commit intoclearlinux:masterfrom
jascott1:kubeadm-1.17

Conversation

@jascott1
Copy link
Copy Markdown
Contributor

@jascott1 jascott1 commented Jan 7, 2020

Closes #295

Signed-off-by: Justin Scott justin.a.scott@intel.com

@jascott1
Copy link
Copy Markdown
Contributor Author

jascott1 commented Jan 7, 2020

This needs testing.

@jascott1 jascott1 changed the title Update kubeadm.yaml to 1.17 version WIP Update kubeadm.yaml to 1.17 version Jan 7, 2020
Closes clearlinux#295

Signed-off-by: Justin Scott <justin.a.scott@intel.com>
@jascott1
Copy link
Copy Markdown
Contributor Author

jascott1 commented Jan 7, 2020

I tried kubeadm config migrate but it increased complexity and only resolved the same two deprecation warnings that can be alleviated by changing version to v1beta2, so I only changed the version. Kubeadm stripped out the kubelet config and the name: clearlinux expects the hostname, requiring more seding to make that work. The output of migrate command (not used in this PR):


apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
bootstrapTokens:
- groups:
  - system:bootstrappers:kubeadm:default-node-token
  token: seq4of.edlpus7iswd4y5bd
  ttl: 24h0m0s
  usages:
  - signing
  - authentication
localAPIEndpoint:
  advertiseAddress: 10.0.2.15
  bindPort: 6443
nodeRegistration:
  criSocket: /var/run/crio/crio.sock
  name: clearlinux
  taints:
  - effect: NoSchedule
    key: node-role.kubernetes.io/master
---
kind: ClusterConfiguration
apiServer:
  timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta2
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controllerManager: {}
dns:
  type: CoreDNS
etcd:
  local:
    dataDir: /var/lib/etcd
imageRepository: k8s.gcr.io
kubernetesVersion: v1.17.0
networking:
  dnsDomain: cluster.local
  podSubnet: 10.244.0.0/16
  serviceSubnet: 10.96.0.0/12
scheduler: {}

@jascott1
Copy link
Copy Markdown
Contributor Author

jascott1 commented Jan 7, 2020

Manually tested on Clear 32040 and k8s 1.17

@jascott1 jascott1 changed the title WIP Update kubeadm.yaml to 1.17 version Update kubeadm.yaml to 1.17 version Jan 7, 2020
@knangia
Copy link
Copy Markdown
Contributor

knangia commented Jan 8, 2020

testing it

Copy link
Copy Markdown
Contributor

@knangia knangia left a comment

Choose a reason for hiding this comment

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

works as expected.
Tested on Clear linux version 32040 and k8s 1.17, all pods are up and running with create_Stack.sh all

@knangia knangia merged commit 00c1d60 into clearlinux:master Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kubeadm yaml needs to be updated to match the version of k8s

2 participants