mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
Fix metrics server resource allocation (#2955)
This commit is contained in:
parent
031fac3e85
commit
28ef158efb
1 changed files with 24 additions and 0 deletions
|
|
@ -1,6 +1,30 @@
|
|||
import * as k8s from '@pulumi/kubernetes';
|
||||
|
||||
export function optimizeAzureCluster() {
|
||||
/**
|
||||
* The following configures the metrics server to use the correct resources limit:
|
||||
* https://learn.microsoft.com/en-us/azure/aks/use-metrics-server-vertical-pod-autoscaler
|
||||
*/
|
||||
new k8s.core.v1.ConfigMap('metrics-server-config', {
|
||||
metadata: {
|
||||
name: 'metrics-server-config',
|
||||
namespace: 'kube-system',
|
||||
labels: {
|
||||
'kubernetes.io/cluster-service': 'true',
|
||||
'addonmanager.kubernetes.io/mode': 'EnsureExists',
|
||||
},
|
||||
},
|
||||
data: {
|
||||
NannyConfiguration: `
|
||||
apiVersion: nannyconfig/v1alpha1
|
||||
kind: NannyConfiguration
|
||||
baseCPU: 200m
|
||||
cpuPerNode: 3m
|
||||
baseMemory: 200Mi
|
||||
memoryPerNode: 24Mi`,
|
||||
},
|
||||
});
|
||||
|
||||
/**
|
||||
* The following disabled Azure logging. We are not really using it.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue