k8s-stackdriver | : exclamation : Tools in this repository | GCP library
kandi X-RAY | k8s-stackdriver Summary
kandi X-RAY | k8s-stackdriver Summary
:exclamation: Tools in this repository are not meant for end-users. It contains source code for tools that are pre-installed in the GKE clusters. Google Cloud Operations suite (fka Stackdriver) provides advanced monitoring and logging solution that will allow you to get more insights into your Kubernetes clusters. If you are a Google Kubernetes Engine (GKE) user, you get integration with Cloud Monitoring and Logging out of the box.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of k8s-stackdriver
k8s-stackdriver Key Features
k8s-stackdriver Examples and Code Snippets
Community Discussions
Trending Discussions on k8s-stackdriver
QUESTION
I am trying to auto-scale my pods based on CloudSQL instance response time. We are using cloudsql-proxy for secure connection. Deployed the Custom Metrics Adapter.
...ANSWER
Answered 2021-May-21 at 09:35- Please refer to the link below to deploy a HorizontalPodAutoscaler (HPA) resource to scale your application based on Cloud Monitoring metrics.
https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics#custom-metric_4
Looks like the custom metric name is different in the app and hpa deployment configuration files(yaml). Metric and application names should be the same in both app and hpa deployment configuration files.
In the hpa deployment yaml file,
a. Replace custom-metric-stackdriver-adapter with custom-metric (Or change the metric name to custom-metric-stackdriver-adapter in the app deployment yaml file).
b. Add “namespace: default” next to the application name at metadata.Also ensure you are adding the namespace in the app deployment configuration file.
c. Delete the duplicate lines 6 & 7 (minReplicas: 1, maxReplicas: 5).
d. Go to Cloud Console->Kubernetes Engine->Workloads. Delete the workloads (application-name & custom-metrics-stackdriver-adapter) created by app deployment yaml and adapter_new_resource_model.yaml files.
e. Now apply configurations to resource model, app and hpa (yaml files).
QUESTION
Following the guide that google made for deploying an HPA in Google Kubernetes Engine: https://cloud.google.com/kubernetes-engine/docs/tutorials/autoscaling-metrics
And adding the right permissions because I am using Workload Identity with this guide: https://github.com/GoogleCloudPlatform/k8s-stackdriver/tree/master/custom-metrics-stackdriver-adapter
And also adding the firewall-rule commented here: https://github.com/kubernetes-sigs/prometheus-adapter/issues/134
I am stuck in a point where the HPA returns me this error:
...ANSWER
Answered 2021-Apr-13 at 22:42Resolved for me!
After a several of test, changing in the HPA yaml,
the metric from Pod
to External
, and the metric name with custom.google.apis/my-metric
, it works!
QUESTION
I have custom metrics exported to Google Cloud Monitoring
and i want to scale my deployment according to it.
This is my HPA:
...ANSWER
Answered 2020-Apr-08 at 10:42Check metrics server pod running in your kube-system
namespace. or else you can use this.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install k8s-stackdriver
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page