Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
helm: add resource requests/limits and missing probes
Antonio Ojea54de56ccb4be
diff --git a/charts/sam-mesh/templates/console-deployment.yaml b/charts/sam-mesh/templates/console-deployment.yamlindex 3f5c2011..2d9b2898 100644--- a/charts/sam-mesh/templates/console-deployment.yaml+++ b/charts/sam-mesh/templates/console-deployment.yaml@@ -42,6 +42,18 @@ spec:- containerPort: 8081name: httpprotocol: TCP+ readinessProbe:+ httpGet:+ path: /info+ port: http+ periodSeconds: 5+ livenessProbe:+ httpGet:+ path: /info+ port: http+ periodSeconds: 15+ resources:+ {{- toYaml .Values.console.resources | nindent 10 }}args:- "--hub=http://{{ include "sam-mesh.fullname" . }}-control-plane:{{ .Values.controlPlane.service.port }}"- "--bind-addr=:8081"diff --git a/charts/sam-mesh/templates/control-plane-deployment.yaml b/charts/sam-mesh/templates/control-plane-deployment.yamlindex a3d1e202..ed381c81 100644--- a/charts/sam-mesh/templates/control-plane-deployment.yaml+++ b/charts/sam-mesh/templates/control-plane-deployment.yaml@@ -46,6 +46,8 @@ spec:path: /infoport: httpperiodSeconds: 15+ resources:+ {{- toYaml .Values.controlPlane.resources | nindent 10 }}args:- "--bind-address=0.0.0.0:8080"{{- if eq .Values.database.type "postgres" }}diff --git a/charts/sam-mesh/templates/db-statefulset.yaml b/charts/sam-mesh/templates/db-statefulset.yamlindex 0705d9b7..9a585a8e 100644--- a/charts/sam-mesh/templates/db-statefulset.yaml+++ b/charts/sam-mesh/templates/db-statefulset.yaml@@ -34,6 +34,8 @@ spec:- containerPort: 5432name: postgresprotocol: TCP+ resources:+ {{- toYaml .Values.database.postgres.resources | nindent 10 }}volumeMounts:- name: db-datamountPath: /var/lib/postgresql/datadiff --git a/charts/sam-mesh/templates/router-statefulset.yaml b/charts/sam-mesh/templates/router-statefulset.yamlindex 1176fb13..843afaf6 100644--- a/charts/sam-mesh/templates/router-statefulset.yaml+++ b/charts/sam-mesh/templates/router-statefulset.yaml@@ -54,6 +54,16 @@ spec:hostPort: {{ .Values.router.hostPort }}{{- end }}protocol: UDP+ readinessProbe:+ tcpSocket:+ port: p2p-tcp+ periodSeconds: 5+ livenessProbe:+ tcpSocket:+ port: p2p-tcp+ periodSeconds: 15+ resources:+ {{- toYaml .Values.router.resources | nindent 10 }}env:{{- if not .Values.router.useOidcToken }}- name: BOOTSTRAP_TOKENdiff --git a/charts/sam-mesh/values.yaml b/charts/sam-mesh/values.yamlindex 2a2baead..c7b88c4d 100644--- a/charts/sam-mesh/values.yaml+++ b/charts/sam-mesh/values.yaml@@ -12,6 +12,13 @@ controlPlane:insecureSkipTlsVerify: trueoidcIssuer: "http://sam-mesh-dex:5556/dex"allowedAudiences: "sam-mesh-audience,sam-hub-audience"+ resources:+ requests:+ cpu: 100m+ memory: 128Mi+ limits:+ cpu: 500m+ memory: 512Miservice:type: ClusterIPport: 8080@@ -30,6 +37,13 @@ database:port: 5432sslmode: disablestorageSize: 1Gi+ resources:+ requests:+ cpu: 100m+ memory: 256Mi+ limits:+ cpu: 1000m+ memory: 1Girouter:enabled: true@@ -38,6 +52,13 @@ router:repository: sam-routeruseOidcToken: falselogLevel: info+ resources:+ requests:+ cpu: 100m+ memory: 128Mi+ limits:+ cpu: 500m+ memory: 512Miservice:type: ClusterIPport: 4501@@ -48,6 +69,13 @@ console:replicaCount: 1image:repository: sam-console+ resources:+ requests:+ cpu: 50m+ memory: 64Mi+ limits:+ cpu: 250m+ memory: 256Miservice:type: ClusterIPport: 8081