Giter Club home page Giter Club logo

Comments (4)

chaintng avatar chaintng commented on June 26, 2024 2

after upgrade to 1.7.2, it's also work 😕

from workflow.

gemoya avatar gemoya commented on June 26, 2024 1

I had the same problem because some custom deployments of Kubernetes add the '+' to the minor version and the version() function in deis controller takes the complete minor including the '+' so when the HPA resource checks the api version you get the error because it compares with "1.3.0"

So I deployed a custom controller with scheduler's version function modified by me taking only the first element of the minor's string. Is not a good solution since the development side but you can bypass this situation while the people include cases like that in the controller main line.

from workflow.

n0n0x avatar n0n0x commented on June 26, 2024

can confirm this works on 1.7.2:

$ deis autoscale:set web --min=1 --max=3 --cpu=60
Applying autoscale settings for process type web on test-app... done

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.3", GitCommit:"2c2fe6e8278a5db2d15a013987b53968c743f2a1", GitTreeState:"clean", BuildDate:"2017-08-12T22:24:26Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", BuildDate:"2017-07-21T08:08:00Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

$ kubectl -n test-app get hpa
NAME           REFERENCE                 TARGETS           MINPODS   MAXPODS   REPLICAS   AGE
test-app-web   Deployment/test-app-web   <unknown> / 60%   1         3         1          1m

as well as on version 1.7.5:

$ deis autoscale:set web --min=1 --max=3 --cpu=60
Applying autoscale settings for process type web on test-app... done

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-08-31T19:32:26Z", GoVersion:"go1.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-08-31T08:56:23Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

$ kubectl -n test-app get hpa
NAME           REFERENCE                 TARGETS           MINPODS   MAXPODS   REPLICAS   AGE
test-app-web   Deployment/test-app-web   <unknown> / 60%   1         3         1          2m

from workflow.

Cryptophobia avatar Cryptophobia commented on June 26, 2024

This issue was moved to teamhephy/workflow#9

from workflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.