feat(chart): add web frontend, external ConfigMap, SSH secret; fix probes and container names
- Add web Deployment/Service with nginx SPA on port 80 - Remove env generation from chart, use external ConfigMap (configMap.create=false) - Add SSH host key Secret injection for gitpod (/etc/ssh) - Fix ServiceMonitor to scrape /metrics uniformly for all services - Fix container names to be service-specific (gitdata/gitpod/gitsync/email/web) - Parameterize PVC claimName and data mountPath - Fix Ingress routing: / -> web, /api /socket.io -> gitdata - Add web to HPA/PDB support lists
This commit is contained in:
parent
1e82d22048
commit
dbb9e2a1e1
1
.gitignore
vendored
1
.gitignore
vendored
@ -61,4 +61,5 @@ temp/
|
|||||||
*.backup
|
*.backup
|
||||||
*~
|
*~
|
||||||
chart/ConfigMap.yaml
|
chart/ConfigMap.yaml
|
||||||
|
chart/SSH.yaml
|
||||||
chart/pvc
|
chart/pvc
|
||||||
@ -1,28 +1,11 @@
|
|||||||
{{/*
|
{{- if .Values.configMap.create }}
|
||||||
Single shared ConfigMap for all services.
|
|
||||||
Merges global.env with service-specific overrides.
|
|
||||||
*/}}
|
|
||||||
{{- $allEnv := deepCopy ($.Values.global.env | default dict) }}
|
|
||||||
{{- /* Auto-fill APP_GIT_RPC_ADDR for gitdata -> gitpod-rpc service */}}
|
|
||||||
{{- if and $.Values.gitdata.enabled (not $.Values.gitdata.env.APP_GIT_RPC_ADDR) }}
|
|
||||||
{{- $_ := set $allEnv "APP_GIT_RPC_ADDR" (include "app.gitpodRpcAddr" $) }}
|
|
||||||
{{- end }}
|
|
||||||
{{- range $svcName, $svc := dict "gitdata" $.Values.gitdata "gitpod" $.Values.gitpod "gitsync" $.Values.gitsync "email" $.Values.email }}
|
|
||||||
{{- if $svc.enabled }}
|
|
||||||
{{- $allEnv = merge $allEnv ($svc.env | default dict) }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if $allEnv }}
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "app.fullname" $ }}
|
name: {{ .Values.configMap.name | default (include "app.fullname" .) }}
|
||||||
namespace: {{ $.Values.global.namespace | default $.Release.Namespace }}
|
namespace: {{ include "app.namespace" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "app.labels" $ | nindent 4 }}
|
{{- include "app.labels" . | nindent 4 }}
|
||||||
data:
|
data: {}
|
||||||
{{- range $k, $v := $allEnv }}
|
|
||||||
{{ $k }}: {{ $v | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{{/*
|
{{/*
|
||||||
Deployments — One per enabled service.
|
Deployments — One per enabled service.
|
||||||
All pods share app-data-pvc mounted at /data.
|
All pods share the configured data PVC.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{/* ============================================================
|
{{/* ============================================================
|
||||||
@ -35,7 +35,7 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: gitdata
|
||||||
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
||||||
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
@ -44,14 +44,14 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "app.fullname" . }}
|
name: {{ .Values.configMap.name | default (include "app.fullname" .) }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml $svc.resources | nindent 12 }}
|
{{- toYaml $svc.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.securityContext | nindent 12 }}
|
{{- toYaml $svc.securityContext | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: {{ .Values.persistence.data.mountPath }}
|
||||||
{{- with $svc.volumeMounts }}
|
{{- with $svc.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -75,7 +75,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: app-data-pvc
|
claimName: {{ .Values.persistence.data.claimName }}
|
||||||
{{- with $svc.volumes }}
|
{{- with $svc.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -125,7 +125,7 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: gitpod
|
||||||
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
||||||
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
@ -140,14 +140,14 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "app.fullname" . }}
|
name: {{ .Values.configMap.name | default (include "app.fullname" .) }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml $svc.resources | nindent 12 }}
|
{{- toYaml $svc.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.securityContext | nindent 12 }}
|
{{- toYaml $svc.securityContext | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: {{ .Values.persistence.data.mountPath }}
|
||||||
{{- with $svc.volumeMounts }}
|
{{- with $svc.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -176,7 +176,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: app-data-pvc
|
claimName: {{ .Values.persistence.data.claimName }}
|
||||||
{{- if $svc.sshHostKeySecret }}
|
{{- if $svc.sshHostKeySecret }}
|
||||||
- name: ssh-host-key
|
- name: ssh-host-key
|
||||||
secret:
|
secret:
|
||||||
@ -232,7 +232,7 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: gitsync
|
||||||
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
||||||
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
@ -241,14 +241,14 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "app.fullname" . }}
|
name: {{ .Values.configMap.name | default (include "app.fullname" .) }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml $svc.resources | nindent 12 }}
|
{{- toYaml $svc.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.securityContext | nindent 12 }}
|
{{- toYaml $svc.securityContext | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: {{ .Values.persistence.data.mountPath }}
|
||||||
{{- with $svc.volumeMounts }}
|
{{- with $svc.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -272,7 +272,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: app-data-pvc
|
claimName: {{ .Values.persistence.data.claimName }}
|
||||||
{{- with $svc.volumes }}
|
{{- with $svc.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -322,7 +322,7 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: email
|
||||||
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
||||||
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
@ -331,14 +331,14 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "app.fullname" . }}
|
name: {{ .Values.configMap.name | default (include "app.fullname" .) }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml $svc.resources | nindent 12 }}
|
{{- toYaml $svc.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml $svc.securityContext | nindent 12 }}
|
{{- toYaml $svc.securityContext | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: {{ .Values.persistence.data.mountPath }}
|
||||||
{{- with $svc.volumeMounts }}
|
{{- with $svc.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -362,7 +362,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: app-data-pvc
|
claimName: {{ .Values.persistence.data.claimName }}
|
||||||
{{- with $svc.volumes }}
|
{{- with $svc.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -379,3 +379,87 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{/* ============================================================
|
||||||
|
web — Frontend SPA
|
||||||
|
============================================================ */}}
|
||||||
|
{{- if .Values.web.enabled }}
|
||||||
|
{{- $svc := .Values.web }}
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ include "app.serviceFullname" (dict "root" . "name" "web") }}
|
||||||
|
namespace: {{ include "app.namespace" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "app.serviceLabels" (dict "root" . "name" "web") | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ $svc.replicaCount }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "app.serviceSelectorLabels" (dict "root" . "name" "web") | nindent 6 }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
{{- with $svc.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
{{- include "app.serviceLabels" (dict "root" . "name" "web") | nindent 8 }}
|
||||||
|
spec:
|
||||||
|
{{- include "app.imagePullSecrets" . | nindent 6 }}
|
||||||
|
serviceAccountName: {{ include "app.serviceAccountName" . }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml $svc.podSecurityContext | nindent 8 }}
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: {{ include "app.image" (dict "root" . "svc" $svc.image) }}
|
||||||
|
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: {{ .Values.configMap.name | default (include "app.fullname" .) }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml $svc.resources | nindent 12 }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml $svc.securityContext | nindent 12 }}
|
||||||
|
{{- with $svc.volumeMounts }}
|
||||||
|
volumeMounts:
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: {{ $svc.startupProbe.httpGet.path }}
|
||||||
|
port: {{ $svc.startupProbe.httpGet.port }}
|
||||||
|
initialDelaySeconds: {{ $svc.startupProbe.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ $svc.startupProbe.periodSeconds }}
|
||||||
|
failureThreshold: {{ $svc.startupProbe.failureThreshold }}
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: {{ $svc.livenessProbe.httpGet.path }}
|
||||||
|
port: {{ $svc.livenessProbe.httpGet.port }}
|
||||||
|
periodSeconds: {{ $svc.livenessProbe.periodSeconds }}
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: {{ $svc.readinessProbe.httpGet.path }}
|
||||||
|
port: {{ $svc.readinessProbe.httpGet.port }}
|
||||||
|
periodSeconds: {{ $svc.readinessProbe.periodSeconds }}
|
||||||
|
{{- with $svc.volumes }}
|
||||||
|
volumes:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with $svc.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with $svc.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with $svc.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{{- range $svcName := list "gitdata" "gitpod" "gitsync" "email" }}
|
{{- range $svcName := list "gitdata" "gitpod" "gitsync" "email" "web" }}
|
||||||
{{- $svcCfg := index $.Values $svcName }}
|
{{- $svcCfg := index $.Values $svcName }}
|
||||||
{{- $hpaCfg := index $.Values.autoscaling $svcName }}
|
{{- $hpaCfg := index $.Values.autoscaling $svcName }}
|
||||||
{{- if and $svcCfg.enabled $hpaCfg.enabled }}
|
{{- if and $svcCfg.enabled $hpaCfg.enabled }}
|
||||||
|
|||||||
@ -43,6 +43,15 @@ spec:
|
|||||||
port:
|
port:
|
||||||
number: {{ $.Values.gitdata.service.port }}
|
number: {{ $.Values.gitdata.service.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if $.Values.web.enabled }}
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ include "app.serviceFullname" (dict "root" $ "name" "web") }}
|
||||||
|
port:
|
||||||
|
number: {{ $.Values.web.service.port }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range .Values.ingress.git.hosts }}
|
{{- range .Values.ingress.git.hosts }}
|
||||||
- host: {{ .host | quote }}
|
- host: {{ .host | quote }}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{{- if .Values.podDisruptionBudget.enabled }}
|
{{- if .Values.podDisruptionBudget.enabled }}
|
||||||
{{- range $svcName := list "gitdata" "gitpod" "gitsync" "email" }}
|
{{- range $svcName := list "gitdata" "gitpod" "gitsync" "email" "web" }}
|
||||||
{{- $svcCfg := index $.Values $svcName }}
|
{{- $svcCfg := index $.Values $svcName }}
|
||||||
{{- $pdbCfg := index $.Values.podDisruptionBudget $svcName }}
|
{{- $pdbCfg := index $.Values.podDisruptionBudget $svcName }}
|
||||||
{{- if and $svcCfg.enabled $pdbCfg.minAvailable }}
|
{{- if and $svcCfg.enabled $pdbCfg.minAvailable }}
|
||||||
|
|||||||
@ -139,3 +139,26 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
{{- include "app.serviceSelectorLabels" (dict "root" . "name" "email") | nindent 4 }}
|
{{- include "app.serviceSelectorLabels" (dict "root" . "name" "email") | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.web.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ include "app.serviceFullname" (dict "root" . "name" "web") }}
|
||||||
|
namespace: {{ include "app.namespace" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "app.serviceLabels" (dict "root" . "name" "web") | nindent 4 }}
|
||||||
|
{{- with .Values.web.service.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
type: {{ .Values.web.service.type }}
|
||||||
|
ports:
|
||||||
|
- port: {{ .Values.web.service.port | default 80 }}
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
{{- include "app.serviceSelectorLabels" (dict "root" . "name" "web") | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@ -23,11 +23,7 @@ spec:
|
|||||||
endpoints:
|
endpoints:
|
||||||
- interval: {{ $.Values.serviceMonitor.interval }}
|
- interval: {{ $.Values.serviceMonitor.interval }}
|
||||||
port: {{ if eq $svcName "gitdata" }}http{{ else if eq $svcName "gitpod" }}http{{ else }}health{{ end }}
|
port: {{ if eq $svcName "gitdata" }}http{{ else if eq $svcName "gitpod" }}http{{ else }}health{{ end }}
|
||||||
{{- if eq $svcName "gitdata" }}
|
|
||||||
path: /metrics
|
path: /metrics
|
||||||
{{- else }}
|
|
||||||
path: /health
|
|
||||||
{{- end }}
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "app.serviceSelectorLabels" (dict "root" $ "name" $svcName) | nindent 6 }}
|
{{- include "app.serviceSelectorLabels" (dict "root" $ "name" $svcName) | nindent 6 }}
|
||||||
|
|||||||
@ -13,6 +13,15 @@ serviceAccount:
|
|||||||
annotations: {}
|
annotations: {}
|
||||||
name: ""
|
name: ""
|
||||||
|
|
||||||
|
configMap:
|
||||||
|
create: false
|
||||||
|
name: gitdataai
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
data:
|
||||||
|
claimName: app-data-pvc
|
||||||
|
mountPath: /data
|
||||||
|
|
||||||
gitdata:
|
gitdata:
|
||||||
enabled: true
|
enabled: true
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
@ -21,12 +30,6 @@ gitdata:
|
|||||||
registry: ""
|
registry: ""
|
||||||
tag: ""
|
tag: ""
|
||||||
|
|
||||||
env:
|
|
||||||
APP_API_PORT: "8080"
|
|
||||||
APP_OTEL_SERVICE_NAME: "gitdata-api"
|
|
||||||
APP_GIT_RPC_ADDR: ""
|
|
||||||
APP_GIT_RPC_PORT: "50051"
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 8080
|
port: 8080
|
||||||
@ -88,16 +91,6 @@ gitpod:
|
|||||||
registry: ""
|
registry: ""
|
||||||
tag: ""
|
tag: ""
|
||||||
|
|
||||||
env:
|
|
||||||
APP_GIT_HTTP_PORT: "8080"
|
|
||||||
APP_SSH_PORT: "2222"
|
|
||||||
APP_GIT_RPC_ADDR: "0.0.0.0"
|
|
||||||
APP_GIT_RPC_PORT: "50051"
|
|
||||||
APP_OTEL_SERVICE_NAME: "gitpod"
|
|
||||||
APP_SSH_DOMAIN: ""
|
|
||||||
APP_GIT_HTTP_DOMAIN: ""
|
|
||||||
APP_REPOS_ROOT: "/data/repos"
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 8080
|
port: 8080
|
||||||
@ -155,8 +148,8 @@ gitpod:
|
|||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
# -- SSH host key secret (mount to /etc/ssh)
|
# -- SSH host key secret mounted to /etc/ssh.
|
||||||
sshHostKeySecret: ""
|
sshHostKeySecret: gitpod-ssh-host-keys
|
||||||
|
|
||||||
# -- Data volumes (repos storage)
|
# -- Data volumes (repos storage)
|
||||||
volumes: []
|
volumes: []
|
||||||
@ -171,11 +164,6 @@ gitsync:
|
|||||||
registry: ""
|
registry: ""
|
||||||
tag: ""
|
tag: ""
|
||||||
|
|
||||||
env:
|
|
||||||
APP_GITSYNC_HEALTH_PORT: "8081"
|
|
||||||
APP_OTEL_SERVICE_NAME: "gitsync"
|
|
||||||
APP_REPOS_ROOT: "/data/repos"
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 8081
|
port: 8081
|
||||||
@ -236,10 +224,6 @@ email:
|
|||||||
registry: ""
|
registry: ""
|
||||||
tag: ""
|
tag: ""
|
||||||
|
|
||||||
env:
|
|
||||||
APP_EMAIL_HEALTH_PORT: "8083"
|
|
||||||
APP_OTEL_SERVICE_NAME: "email-service"
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
enabled: false
|
enabled: false
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@ -290,6 +274,63 @@ email:
|
|||||||
volumes: []
|
volumes: []
|
||||||
volumeMounts: []
|
volumeMounts: []
|
||||||
|
|
||||||
|
web:
|
||||||
|
enabled: true
|
||||||
|
replicaCount: 1
|
||||||
|
image:
|
||||||
|
name: gitdata-web
|
||||||
|
registry: ""
|
||||||
|
tag: ""
|
||||||
|
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 80
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 256Mi
|
||||||
|
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 5
|
||||||
|
failureThreshold: 30
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: http
|
||||||
|
periodSeconds: 30
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: http
|
||||||
|
periodSeconds: 15
|
||||||
|
|
||||||
|
podAnnotations: {}
|
||||||
|
podSecurityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 101
|
||||||
|
fsGroup: 101
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
|
||||||
|
nodeSelector: {}
|
||||||
|
tolerations: []
|
||||||
|
affinity: {}
|
||||||
|
volumes: []
|
||||||
|
volumeMounts: []
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
@ -299,7 +340,9 @@ ingress:
|
|||||||
hosts:
|
hosts:
|
||||||
- host: dev.gitdata.ai
|
- host: dev.gitdata.ai
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /api
|
||||||
|
pathType: Prefix
|
||||||
|
- path: /socket.io
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
@ -352,6 +395,12 @@ autoscaling:
|
|||||||
maxReplicas: 3
|
maxReplicas: 3
|
||||||
targetCPUUtilizationPercentage: 80
|
targetCPUUtilizationPercentage: 80
|
||||||
targetMemoryUtilizationPercentage: ""
|
targetMemoryUtilizationPercentage: ""
|
||||||
|
web:
|
||||||
|
enabled: false
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 3
|
||||||
|
targetCPUUtilizationPercentage: 80
|
||||||
|
targetMemoryUtilizationPercentage: ""
|
||||||
|
|
||||||
podDisruptionBudget:
|
podDisruptionBudget:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -363,3 +412,5 @@ podDisruptionBudget:
|
|||||||
minAvailable: ""
|
minAvailable: ""
|
||||||
email:
|
email:
|
||||||
minAvailable: ""
|
minAvailable: ""
|
||||||
|
web:
|
||||||
|
minAvailable: ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user