refactor(deploy): add SSH service annotations and externalTrafficPolicy support
This commit is contained in:
parent
96ce6fde1c
commit
18b4864050
@ -5,10 +5,15 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "deploy.labels" . | nindent 4 }}
|
{{- include "deploy.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: gitserver
|
app.kubernetes.io/component: gitserver
|
||||||
|
annotations:
|
||||||
|
{{- with .Values.services.gitserver.sshService.annotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
externalTrafficPolicy: Local
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.services.gitserver.ports.ssh }}
|
- port: 22
|
||||||
targetPort: ssh
|
targetPort: ssh
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: ssh
|
name: ssh
|
||||||
|
|||||||
@ -87,6 +87,11 @@ services:
|
|||||||
# SSH port must match the containerPort
|
# SSH port must match the containerPort
|
||||||
extraEnv:
|
extraEnv:
|
||||||
APP_SSH_PORT: "2222"
|
APP_SSH_PORT: "2222"
|
||||||
|
# SSH service config (MetalLB + Cilium)
|
||||||
|
# Shared IP: nginx ingress (80/443) + SSH (22) on same VIP
|
||||||
|
# Requires ingress-nginx svc also annotated with allow-shared-ip: "gitdata-shared"
|
||||||
|
sshService:
|
||||||
|
annotations: {}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user