feat(deploy): configure ingress with gingress, cert-manager TLS, and SSH LB

- Set primary domain gitdata.ai and static.gitdata.ai with cert-manager TLS
- Add LoadBalancer service for gitserver SSH (port 2222)
- Exclude .server.yaml from Helm packaging
This commit is contained in:
ZhenYi 2026-05-10 22:29:32 +08:00
parent 003f0477f4
commit 670bcc8c06
3 changed files with 35 additions and 9 deletions

View File

@ -21,3 +21,5 @@
.idea/
*.tmproj
.vscode/
# Secrets
.server.yaml

View File

@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "deploy.serviceFullname" (dict "root" . "svcKey" "gitserver") }}-ssh
labels:
{{- include "deploy.labels" . | nindent 4 }}
app.kubernetes.io/component: gitserver
spec:
type: LoadBalancer
ports:
- port: {{ .Values.services.gitserver.ports.ssh }}
targetPort: ssh
protocol: TCP
name: ssh
selector:
{{- include "deploy.serviceSelectorLabels" (dict "root" . "svcKey" "gitserver") | nindent 4 }}

View File

@ -140,22 +140,30 @@ services:
# External PVC (managed outside Helm — not deleted on uninstall)
pvcName: "shared-data"
# Ingress — only for the main app service
# Ingress — handled by gingress controller
ingress:
enabled: false
className: ""
annotations: {}
enabled: true
className: "gingress"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
hosts:
- host: chart-example.local
- host: gitdata.ai
paths:
- path: /
pathType: Prefix
serviceName: app
servicePort: 3000
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
- host: static.gitdata.ai
paths:
- path: /
pathType: Prefix
serviceName: static_server
servicePort: 8081
tls:
- secretName: gitdata-ai-tls
hosts:
- gitdata.ai
- static.gitdata.ai
imagePullSecrets: []
nameOverride: ""