- update: charts to make more sense in what the settings do

This commit was merged in pull request #10.
This commit is contained in:
2025-03-20 17:30:21 -04:00
parent 98b8d412e7
commit 0cfacd8935
4 changed files with 30 additions and 33 deletions

View File

@@ -5,6 +5,12 @@ metadata:
name: {{ .name }}
labels:
app: {{ .name }}
{{- if .annotations }}
annotations:
{{- range $key, $value := .annotations }}
{{ $key }}: "{{ $value }}"
{{- end }}
{{- end }}
spec:
replicas: {{ .replicas }}
selector:

View File

@@ -1,5 +1,5 @@
{{- range .Values.services }}
{{- if .ingress.enabled }}
{{- if .ingress }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:

View File

@@ -1,18 +1,24 @@
{{- range .Values.services }}
{{- if .tcp.enabled }}
{{- if .service }}
apiVersion: v1
kind: Service
metadata:
name: {{ .name }}
labels:
app: {{ .name }}
{{- if .service.annotations }}
annotations:
{{- range $key, $value := .service.annotations }}
{{ $key }}: "{{ $value }}"
{{- end }}
{{- end }}
spec:
type: {{ .tcp.type | default "ClusterIP" }}
type: {{ .service.type | default "ClusterIP" }}
ports:
- name: {{ .tcp.portName | default "tcp" }}
port: {{ .tcp.port }}
targetPort: {{ .tcp.targetPort | default .tcp.port }}
protocol: {{ .tcp.protocol | default "TCP" }}
- name: {{ .service.portName | default "tcp" }}
port: {{ .service.port }}
targetPort: {{ .service.targetPort | default .service.port }}
protocol: {{ .service.protocol | default "TCP" }}
selector:
app: {{ .name }}
{{- end }}

View File

@@ -19,8 +19,7 @@ services:
port: 8080
env:
SERVICE_PORT: 8080
tcp:
enabled: true
service:
type: LoadBalancer
portName: api-service
port: 8080
@@ -38,14 +37,11 @@ services:
port: 50051
env:
SERVICE_PORT: 50051
tcp:
enabled: true
service:
portName: auth-service
port: 50051
targetPort: 50051
protocol: TCP
ingress:
enabled: false
- name: character-service
replicas: 1
@@ -53,14 +49,13 @@ services:
port: 50053
env:
SERVICE_PORT: 50053
tcp:
enabled: true
service:
annotations:
name: "AZG Studio"
portName: character-service
port: 50053
targetPort: 50053
protocol: TCP
ingress:
enabled: false
- name: database-service
replicas: 1
@@ -68,14 +63,11 @@ services:
port: 50052
env:
SERVICE_PORT: 50052
tcp:
enabled: true
service:
portName: database-service
port: 50052
targetPort: 50052
protocol: TCP
ingress:
enabled: false
- name: packet-service
replicas: 1
@@ -83,15 +75,12 @@ services:
port: 29000
env:
SERVICE_PORT: 29000
tcp:
enabled: true
service:
type: LoadBalancer
portName: game-packet-service
port: 29000
targetPort: 29000
protocol: TCP
ingress:
enabled: false
- name: session-service
replicas: 1
@@ -99,14 +88,11 @@ services:
port: 50055
env:
SERVICE_PORT: 50055
tcp:
enabled: true
service:
portName: session-service
port: 50055
targetPort: 50055
protocol: TCP
ingress:
enabled: false
- name: world-service
replicas: 1
@@ -114,14 +100,13 @@ services:
port: 50054
env:
SERVICE_PORT: 50054
tcp:
enabled: true
service:
annotations:
name: "Athena"
portName: world-service
port: 50054
targetPort: 50054
protocol: TCP
ingress:
enabled: false
tests:
enabled: false