Resize GKE pools using cloud function
Resize GKE node pools using cloud function. HTTP function or PubSub method trigger cloud function using cloud scheduler.
Scaling GKE pools via cloud function
License: MIT License
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 ?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.