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:
parent
003f0477f4
commit
670bcc8c06
@ -21,3 +21,5 @@
|
|||||||
.idea/
|
.idea/
|
||||||
*.tmproj
|
*.tmproj
|
||||||
.vscode/
|
.vscode/
|
||||||
|
# Secrets
|
||||||
|
.server.yaml
|
||||||
|
|||||||
16
deploy/templates/gitserver/ssh-service.yaml
Normal file
16
deploy/templates/gitserver/ssh-service.yaml
Normal 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 }}
|
||||||
@ -140,22 +140,30 @@ services:
|
|||||||
# External PVC (managed outside Helm — not deleted on uninstall)
|
# External PVC (managed outside Helm — not deleted on uninstall)
|
||||||
pvcName: "shared-data"
|
pvcName: "shared-data"
|
||||||
|
|
||||||
# Ingress — only for the main app service
|
# Ingress — handled by gingress controller
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: true
|
||||||
className: ""
|
className: "gingress"
|
||||||
annotations: {}
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: gitdata.ai
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
serviceName: app
|
serviceName: app
|
||||||
servicePort: 3000
|
servicePort: 3000
|
||||||
tls: []
|
- host: static.gitdata.ai
|
||||||
# - secretName: chart-example-tls
|
paths:
|
||||||
# hosts:
|
- path: /
|
||||||
# - chart-example.local
|
pathType: Prefix
|
||||||
|
serviceName: static_server
|
||||||
|
servicePort: 8081
|
||||||
|
tls:
|
||||||
|
- secretName: gitdata-ai-tls
|
||||||
|
hosts:
|
||||||
|
- gitdata.ai
|
||||||
|
- static.gitdata.ai
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user