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

It won't run on K8s 1.16 or later #51

Closed
monaka opened this issue Aug 1, 2020 · 6 comments
Closed

It won't run on K8s 1.16 or later #51

monaka opened this issue Aug 1, 2020 · 6 comments
Assignees

Comments

@monaka
Copy link

monaka commented Aug 1, 2020

Because of API deprecation since 1.16, the router can't build model.

My router's log on K8s 1.16.10 is like this.

$ kubectl logs -n deis              deis-router-666dfdcf55-prptk
2020/08/01 05:50:44 INFO: Starting nginx...
2020/08/01 05:50:44 INFO: nginx started.
2020/08/01 05:50:44 Error building model; not modifying certs or configuration: the server could not find the requested resource.
2020/08/01 05:50:54 Error building model; not modifying certs or configuration: the server could not find the requested resource.
2020/08/01 05:51:04 Error building model; not modifying certs or configuration: the server could not find the requested resource.
2020/08/01 05:51:14 Error building model; not modifying certs or configuration: the server could not find the requested resource.
$ kubectl get po -n deis              deis-router-666dfdcf55-prptk
NAME                           READY   STATUS    RESTARTS   AGE
deis-router-666dfdcf55-prptk   0/1     Running   9          17m
@Cryptophobia Cryptophobia self-assigned this Aug 3, 2020
@Cryptophobia
Copy link
Member

Yes, we need to update to use the new golang kubernetes-client version and update our code in the teamhephy/router related to the api deprecations here: teamhephy/controller#110

In the meantime you could run Kubernetes with the api deprecations disabled.

@kingdonb
Copy link
Member

kingdonb commented Aug 9, 2020

I have a WIP release-type chart thing open currently at https://github.com/kingdonb/gitops-hephy/tree/master/workflow

I am working out of there, to demonstrate the issues that remain currently open before we can release v2.22. This is one of them. If you clone and take a copy of the workflow/ dir there, you can install it and help us narrow down the remaining issues! Router is one where I have to admit I have less understanding myself, I saw this issue too, before moving on to verify the experimental native ingress support was a serviceable replacement.

There are still issues in the controller, router, and likely monitor and others too. I've been wrapped up in a fair amount of personal and work stuff lately, so this hasn't got the right kind of attention yet, but we are looking forward to fixing these few remaining issues very soon! PRs are much appreciated.

If you can demonstrate a fix for this it will make it easier for us to review and incorporate it quickly into the next release. A PR against router and gitops-hephy (or both) will give me the most mileage, but any part of that which gets us closer would be much appreciated! Thanks for the report.

@dmcnaught
Copy link

I see this with kops 1.18.0 and K8s 1.18.8, and I do have the runtimeconfig set to allow the deprecations:

    runtimeConfig:
        extensions/v1beta1/daemonsets: "true"
        extensions/v1beta1/deployments: "true"
        extensions/v1beta1/networkpoliciesr: "true"
        extensions/v1beta1/replicasets: "true"

@dmcnaught
Copy link

It was working fine with 1.16 and 1.17

@kingdonb
Copy link
Member

This has to be resolved as some cloud providers have probably already dropped 1.15, users of those clouds might not be able to enable deprecated APIs. Until this all gets handled, we may be really limiting where we can put new Workflow installations.

@Cryptophobia
Copy link
Member

This is fixed in new Hephy Workflow release v2.22.0 going forward :)

Fixed in this PR #52

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

No branches or pull requests

4 participants