update helm charts and settings

This commit is contained in:
Aarushi
2024-07-25 22:05:24 +01:00
parent e60e977681
commit 465b67eb67
4 changed files with 44 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "autogpt-server.fullname" . }}-config
labels:
{{- include "autogpt-server.labels" . | nindent 4 }}
data:
{{- range $key, $value := .Values.env }}
{{ $key }}: {{ $value | quote }}
{{- end }}

View File

@@ -32,6 +32,9 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
envFrom:
- configMapRef:
name: {{ include "autogpt-server.fullname" . }}-config
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
@@ -50,6 +53,15 @@ spec:
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
- name: cloud-sql-proxy
image: "{{ .Values.cloudSqlProxy.image.repository }}:{{ .Values.cloudSqlProxy.image.tag }}"
args:
- "--structured-logs"
{{- if .Values.cloudSqlProxy.usePrivateIp }}
- "--private-ip"
{{- end }}
- "--port={{ .Values.cloudSqlProxy.port }}"
- "{{ .Values.cloudSqlProxy.instanceConnectionName }}"
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}

View File

@@ -11,7 +11,7 @@ serviceAccount:
name: "dev-agpt-server-sa"
service:
type: ClusterIP
type: LoadBalancer
port: 80
targetPort: 8000
@@ -37,4 +37,18 @@ resources:
cpu: 500m
memory: 512Mi
domain: "server.agpt.co"
domain: "server.agpt.co"
cloudSqlProxy:
image:
repository: gcr.io/cloud-sql-connectors/cloud-sql-proxy
tag: 2.11.4
instanceConnectionName: "agpt-dev:us-central1:agpt-server-dev"
port: 5432
resources:
requests:
memory: "2Gi"
cpu: "1"
env:
APP_ENV: "dev"

View File

@@ -36,5 +36,11 @@ role_bindings = {
],
"roles/cloudsql.editor" = [
"serviceAccount:dev-agpt-server-sa@agpt-dev.iam.gserviceaccount.com"
],
"roles/cloudsql.instanceUser" = [
"serviceAccount:dev-agpt-server-sa@agpt-dev.iam.gserviceaccount.com"
],
"roles/iam.workloadIdentityUser" = [
"serviceAccount:dev-agpt-server-sa@agpt-dev.iam.gserviceaccount.com"
]
}