add service ec-config-server

This commit is contained in:
2024-08-30 17:20:39 +10:00
parent e6172a0d7d
commit ba1b7a9b3b
11 changed files with 394 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "mr-config-server.fullname" . }}
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
service.beta.kubernetes.io/aws-load-balancer-type: "elb"
labels:
{{- include "mr-config-server.labels" . | nindent 4 }}
spring-boot: "{{ .Values.labels.springboot }}"
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
protocol: TCP
name: http
selector:
{{- include "mr-config-server.selectorLabels" . | nindent 4 }}