Kubernetes & Helm Charts #10
@@ -5,6 +5,12 @@ metadata:
|
|||||||
name: {{ .name }}
|
name: {{ .name }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ .name }}
|
app: {{ .name }}
|
||||||
|
{{- if .annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := .annotations }}
|
||||||
|
{{ $key }}: "{{ $value }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .replicas }}
|
replicas: {{ .replicas }}
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- range .Values.services }}
|
{{- range .Values.services }}
|
||||||
{{- if .ingress.enabled }}
|
{{- if .ingress }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,18 +1,24 @@
|
|||||||
{{- range .Values.services }}
|
{{- range .Values.services }}
|
||||||
{{- if .tcp.enabled }}
|
{{- if .service }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .name }}
|
name: {{ .name }}
|
||||||
labels:
|
labels:
|
||||||
app: {{ .name }}
|
app: {{ .name }}
|
||||||
|
{{- if .service.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := .service.annotations }}
|
||||||
|
{{ $key }}: "{{ $value }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .tcp.type | default "ClusterIP" }}
|
type: {{ .service.type | default "ClusterIP" }}
|
||||||
ports:
|
ports:
|
||||||
- name: {{ .tcp.portName | default "tcp" }}
|
- name: {{ .service.portName | default "tcp" }}
|
||||||
port: {{ .tcp.port }}
|
port: {{ .service.port }}
|
||||||
targetPort: {{ .tcp.targetPort | default .tcp.port }}
|
targetPort: {{ .service.targetPort | default .service.port }}
|
||||||
protocol: {{ .tcp.protocol | default "TCP" }}
|
protocol: {{ .service.protocol | default "TCP" }}
|
||||||
selector:
|
selector:
|
||||||
app: {{ .name }}
|
app: {{ .name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ services:
|
|||||||
port: 8080
|
port: 8080
|
||||||
env:
|
env:
|
||||||
SERVICE_PORT: 8080
|
SERVICE_PORT: 8080
|
||||||
tcp:
|
service:
|
||||||
enabled: true
|
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
portName: api-service
|
portName: api-service
|
||||||
port: 8080
|
port: 8080
|
||||||
@@ -38,14 +37,11 @@ services:
|
|||||||
port: 50051
|
port: 50051
|
||||||
env:
|
env:
|
||||||
SERVICE_PORT: 50051
|
SERVICE_PORT: 50051
|
||||||
tcp:
|
service:
|
||||||
enabled: true
|
|
||||||
portName: auth-service
|
portName: auth-service
|
||||||
port: 50051
|
port: 50051
|
||||||
targetPort: 50051
|
targetPort: 50051
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
- name: character-service
|
- name: character-service
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -53,14 +49,13 @@ services:
|
|||||||
port: 50053
|
port: 50053
|
||||||
env:
|
env:
|
||||||
SERVICE_PORT: 50053
|
SERVICE_PORT: 50053
|
||||||
tcp:
|
service:
|
||||||
enabled: true
|
annotations:
|
||||||
|
name: "AZG Studio"
|
||||||
portName: character-service
|
portName: character-service
|
||||||
port: 50053
|
port: 50053
|
||||||
targetPort: 50053
|
targetPort: 50053
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
- name: database-service
|
- name: database-service
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -68,14 +63,11 @@ services:
|
|||||||
port: 50052
|
port: 50052
|
||||||
env:
|
env:
|
||||||
SERVICE_PORT: 50052
|
SERVICE_PORT: 50052
|
||||||
tcp:
|
service:
|
||||||
enabled: true
|
|
||||||
portName: database-service
|
portName: database-service
|
||||||
port: 50052
|
port: 50052
|
||||||
targetPort: 50052
|
targetPort: 50052
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
- name: packet-service
|
- name: packet-service
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -83,15 +75,12 @@ services:
|
|||||||
port: 29000
|
port: 29000
|
||||||
env:
|
env:
|
||||||
SERVICE_PORT: 29000
|
SERVICE_PORT: 29000
|
||||||
tcp:
|
service:
|
||||||
enabled: true
|
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
portName: game-packet-service
|
portName: game-packet-service
|
||||||
port: 29000
|
port: 29000
|
||||||
targetPort: 29000
|
targetPort: 29000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
- name: session-service
|
- name: session-service
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -99,14 +88,11 @@ services:
|
|||||||
port: 50055
|
port: 50055
|
||||||
env:
|
env:
|
||||||
SERVICE_PORT: 50055
|
SERVICE_PORT: 50055
|
||||||
tcp:
|
service:
|
||||||
enabled: true
|
|
||||||
portName: session-service
|
portName: session-service
|
||||||
port: 50055
|
port: 50055
|
||||||
targetPort: 50055
|
targetPort: 50055
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
- name: world-service
|
- name: world-service
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -114,14 +100,13 @@ services:
|
|||||||
port: 50054
|
port: 50054
|
||||||
env:
|
env:
|
||||||
SERVICE_PORT: 50054
|
SERVICE_PORT: 50054
|
||||||
tcp:
|
service:
|
||||||
enabled: true
|
annotations:
|
||||||
|
name: "Athena"
|
||||||
portName: world-service
|
portName: world-service
|
||||||
port: 50054
|
port: 50054
|
||||||
targetPort: 50054
|
targetPort: 50054
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
Reference in New Issue
Block a user