Skip to content

Commit 3774e9b

Browse files
committed
CHG configurable ports
1 parent 3355091 commit 3774e9b

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

k8s/chart/templates/ingress.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ spec:
164164
match: Host(`about.{{ .Values.marketing.domain }}`)
165165
services:
166166
- name: {{ include "chart.fullname" . }}-marketing-web
167-
port: 3000
167+
port: {{ .Values.marketing.port }}
168168
{{- if not .Values.debug }}
169169
tls:
170170
certResolver: le
@@ -192,7 +192,7 @@ spec:
192192
match: Host(`{{ .Values.pincer.domain }}`)
193193
services:
194194
- name: {{ include "chart.fullname" . }}-pincer-web
195-
port: 8000
195+
port: {{ .Values.pincer.port }}
196196
{{- if not .Values.debug }}
197197
tls:
198198
certResolver: le

k8s/chart/templates/marketing-web.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ spec:
4040
cpu: 100m
4141
memory: 200Mi
4242
limits:
43-
cpu: 2
43+
cpu: 2000m
4444
memory: 500Mi
4545
ports:
4646
- name: web
47-
containerPort: 3000
47+
containerPort: {{ .Values.marketing.port }}
4848
{{- if .Values.healthChecks }}
4949
startupProbe:
5050
httpGet:
@@ -83,6 +83,6 @@ spec:
8383
component: marketing-web
8484
ports:
8585
- name: web
86-
port: 3000
87-
targetPort: 3000
86+
port: {{ .Values.marketing.port }}
87+
targetPort: {{ .Values.marketing.port }}
8888
{{- end }}

k8s/chart/templates/pincer-web.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
memory: 500Mi
4545
ports:
4646
- name: web
47-
containerPort: 3000
47+
containerPort: {{ .Values.pincer.port }}
4848
{{- if .Values.healthChecks }}
4949
startupProbe:
5050
httpGet:
@@ -83,6 +83,6 @@ spec:
8383
component: pincer-web
8484
ports:
8585
- name: web
86-
port: 8000
87-
targetPort: 8000
86+
port: {{ .Values.pincer.port }}
87+
targetPort: {{ .Values.pincer.port }}
8888
{{- end }}

k8s/chart/values.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,16 @@ discord_bot:
9797

9898
marketing:
9999
enable: true
100-
domain: "anubis-lms.io"
100+
domain: "about.anubis-lms.io"
101+
port: 3000
101102
image: "registry.digitalocean.com/anubis/marketing-site"
102103
tag: "latest"
103104
replicas: 1
104105

105106
pincer:
106107
enable: true
107108
domain: "pincer.anubis-lms.io"
109+
port: 8000
108110
image: "registry.digitalocean.com/anubis/pincer"
109111
tag: "latest"
110112
replicas: 1

0 commit comments

Comments
 (0)