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

Dont set ExperimentalCriticalPodAnnotation feature gate in k8s 1.16 #7430

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

rifelpet
Copy link
Member

The E2E tests are currently failing due to this kubelet error:

F0818 22:43:57.642896 6424 server.go:179] unrecognized feature gate: ExperimentalCriticalPodAnnotation

This feature gate was removed in Kubernetes 1.16

The E2E tests are currently failing [0] due to this kubelet error [1]:

`F0818 22:43:57.642896    6424 server.go:179] unrecognized feature gate: ExperimentalCriticalPodAnnotation`

This feature gate was removed in Kubernetes 1.16 [2]

[0] https://testgrid.k8s.io/sig-cluster-lifecycle-kops#kops-aws-1.14
[1] https://storage.googleapis.com/kubernetes-jenkins/logs/ci-kubernetes-e2e-kops-aws-beta/1163216201782923264/artifacts/52.77.251.45/kubelet.log
[2] kubernetes/kubernetes#80342
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 18, 2019
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 18, 2019
Copy link
Member

@zetaab zetaab left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 19, 2019
@justinsb
Copy link
Member

Thanks @rifelpet

/approve
/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb, rifelpet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 20, 2019
@k8s-ci-robot k8s-ci-robot merged commit 4882a6f into kubernetes:master Aug 20, 2019
@@ -243,7 +243,7 @@ func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error {
clusterSpec.Kubelet.FeatureGates = make(map[string]string)
}
if _, found := clusterSpec.Kubelet.FeatureGates["ExperimentalCriticalPodAnnotation"]; !found {
if b.Context.IsKubernetesGTE("1.5.2") {
if b.Context.IsKubernetesGTE("1.5.2") && b.Context.IsKubernetesLT("1.16") {
Copy link

Choose a reason for hiding this comment

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

Hi @rifelpet, was it added to the recent release? I'm trying do start a cluster with kops v. 1.14.0 and kubernetes v1.17.0-alpha.1 or v.1.16.0/1 and getting same error on kubelet:

Oct 03 12:05:59 ip-172-20-34-2 kubelet[2601]: F1003 12:05:59.491671    2601 server.go:180] unrecognized feature gate: ExperimentalCriticalPodAnnotation

command used to start a cluster:

kops create cluster \
         --cloud aws \
         --zones eu-west-1b     \
         --master-zones eu-west-1b   \
         --ssh-public-key $HOME/.ssh/id_rsa.pub    \
         --name=test.example.com \
         --state=s3://test.example.com \
         --kubernetes-version=v1.17.0-alpha.1

Am i doing something wrong? Or it's expected and you don't support those versions yet?

Copy link
Member Author

Choose a reason for hiding this comment

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

According to the compatibility matrix on Kops' readme, Kops 1.14 only supports Kubernetes 1.14.X. Until a Kops 1.16 alpha is released (hopefully soon), you'll have to use a build from the master branch to run Kubernetes 1.16, and I wouldn't recommend doing that for production environments until Kops 1.16 stable is released but feel free to give it a shot!

Copy link

Choose a reason for hiding this comment

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

Yeah, thank you, gave it a shot just yesterday (Version 1.15.0-alpha.1 (git-447e0cf1e)
) and ended up with a different issue with nodeLabels. Kubelet is yet failed to start :(

kubelet[3014]: F1004 09:05:14.262379    3014 server.go:185] unknown 'kubernetes.io' or 'k8s.io' labels specified with --node-labels: [kops.k8s.io/instancegroup kubernetes.io/role
 node-role.kubernetes.io/master]

for labels:

--node-labels=kops.k8s.io/instancegroup=master-eu-west-1b,kubernetes.io/role=master,node-role.kubernetes.io/master=

Apparently it's a different issue with support of some labels in the new kubernetes version, I think that label node-role.kubernetes.io is not available anymore or smth

@rifelpet rifelpet deleted the critical-pod-annotation branch August 6, 2020 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants