helm: hardcode port 4100, remove service block from values.yaml
This commit is contained in:
@@ -29,7 +29,7 @@ spec:
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.service.port }}
|
||||
- containerPort: 4100
|
||||
name: http
|
||||
env:
|
||||
- name: SHARED_SQS_ADMIN_TOKEN
|
||||
@@ -80,13 +80,13 @@ spec:
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: {{ .Values.probes.liveness.path }}
|
||||
port: {{ .Values.service.port }}
|
||||
port: 4100
|
||||
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: {{ .Values.probes.readiness.path }}
|
||||
port: {{ .Values.service.port }}
|
||||
port: 4100
|
||||
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# service.yaml — Service для shared-sqs
|
||||
# Created: 2026-04-11
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: shared-sqs
|
||||
namespace: {{ .Values.namespace }}
|
||||
labels:
|
||||
{{- include "shared-sqs.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
{{- include "shared-sqs.selectorLabels" . | nindent 4 }}
|
||||
ports:
|
||||
- name: http
|
||||
port: 4100
|
||||
targetPort: 4100
|
||||
protocol: TCP
|
||||
@@ -57,11 +57,6 @@ resources:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
|
||||
# Порт внутри контейнера. Менять не нужно.
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 4100
|
||||
|
||||
# Ingress — открывает сервис наружу по домену.
|
||||
# host: ваш домен, который должен указывать на IP ingress-контроллера кластера.
|
||||
# После деплоя cert-manager автоматически выпустит TLS-сертификат.
|
||||
|
||||
Reference in New Issue
Block a user