Giter Club home page Giter Club logo

cloud-function-scale-gke's Introduction

Cloud-function-scale-resize-gke-pool

Resize GKE pools using cloud function

Getting Started

Resize GKE node pools using cloud function. HTTP function or PubSub method trigger cloud function using cloud scheduler.

cloud-function-scale-gke's People

Contributors

harsh4870 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cloud-function-scale-gke's Issues

Google schedule returns Pre-condition Failed

First of all, thanks a lot for your script. I installed it as a google function which it worked, but when I trigger it with a google schedule it fails with the error, Message : Pre-Condition Failed, the script still sends the command to the cluster but the response is failed, so the schedule returns it as failed HTTP Status : 408. Any idea what can be wrong ?

Getting error in cloud function log

Hi Thanks for your script,

I installed it as a google cloud function , when I trigger it with a google cloud schedule it fails with below error,

Error: 5 NOT_FOUND: Not found: projects/test-trial/zones/europe-west2-a/clusters/test-cluster. at Object.callErrorFromStatus (/workspace/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/call.js:31:26) at Object.onReceiveStatus (/workspace/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client.js:179:52) at Object.onReceiveStatus (/workspace/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141) at Object.onReceiveStatus (/workspace/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181) at /workspace/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78 at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

Cluster information:
cloud function node version: 16
GKE cluster version: 1.25.6-gke.1000
GKE node version-1.25.6-gke.200
clustername: test-cluster
projectname: test-trial

everything is verified but i'm getting the above error,please check once.

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.