Compare commits

..

6 Commits

Author SHA1 Message Date
79c629162f Мини правки 2025-11-05 19:29:20 +03:00
ed53bc8658 Новый тестирующий модуль 2025-11-02 21:08:59 +03:00
e7e3cb8c23 Updates services and ingress configurations
Updates the chart and app versions.

Modifies service configurations to use port 80 for both the testing module gateway and worker services.

Updates ingress to include a host for the tester, directing traffic to the testing module gateway service on port 80.

Updates backend deployment to include the correct URL for the testing module and the base service URL.

Disables database dropping on application startup.
2025-11-02 16:58:54 +03:00
da3d72422a Возвращен публичный бакет 2025-10-29 17:54:12 +03:00
6b84adbed2 Задеплоен тестирующий модуль 2025-10-27 23:57:03 +03:00
0bf26af326 Задеплоен фронтенд 2025-10-27 18:21:10 +03:00
12 changed files with 127 additions and 48 deletions

View File

@@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.0.3
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.0"
appVersion: "1.0.3"

View File

@@ -27,6 +27,8 @@ spec:
value: {{ required "s3 endpoint!" .Values.s3.endpointUrl | quote }}
- name: S3_PRIVATE_BUCKET
value: {{ required "privateBucket!" .Values.s3.privateBucket | quote }}
- name: S3_PUBLIC_BUCKET
value: {{ required "publicBucket!" .Values.s3.publicBucket | quote }}
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
@@ -37,8 +39,15 @@ spec:
secretKeyRef:
name: {{ .Values.s3.secretName | quote }}
key: {{ required "secret-key-ref!" .Values.s3.secretKeyRef | quote }}
- name: SUBMIT_CALLBACK_SECRET
valueFrom:
secretKeyRef:
name: {{ .Values.tester.secretName | quote }}
key: {{ required "secret-key-ref!" .Values.tester.secretKeyRef | quote }}
- name: TESTING_MODULE_URL
value: http://{{ .Release.Name }}-queue-service:8080/
value: http://{{ .Release.Name }}-testing-module-gateway-service/api/tester/submit
- name: SERVICE_BASE_URL
value: http://{{ .Release.Name }}-backend-service
- name: PG_URI
valueFrom:
secretKeyRef:

View File

@@ -14,11 +14,13 @@ spec:
metadata:
labels:
app: {{ .Release.Name }}-frontend
annotations:
redeploy-timestamp: "{{ now | unixEpoch }}"
spec:
containers:
- name: {{ .Release.Name }}-frontend
image: ghcr.io/nullptroma/liquid-frontend:latest
image: git.nullptr.top/liquidcode/liquidcode-frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 8000
- containerPort: 3000
{{ end }}

View File

@@ -1,26 +0,0 @@
{{ if .Values.queue.enable }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-queue-deployment
labels:
app: {{ .Release.Name }}-queue
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-queue
template:
metadata:
labels:
app: {{ .Release.Name }}-queue
spec:
containers:
- name: {{ .Release.Name }}-queue
image: ghcr.io/nullptroma/liquid-queue:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
securityContext:
privileged: true
{{ end }}

View File

@@ -0,0 +1,37 @@
{{ if .Values.testingModule.enable }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-testing-module-gateway-deployment
labels:
app: {{ .Release.Name }}-testing-module-gateway
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-testing-module-gateway
template:
metadata:
labels:
app: {{ .Release.Name }}-testing-module-gateway
annotations:
redeploy-timestamp: "{{ now | unixEpoch }}"
spec:
containers:
- name: {{ .Release.Name }}-testing-module-gateway
image: git.nullptr.top/liquidcode/liquidcode-tester-gateway-roman:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: Workers__Cpp
value: http://{{ .Release.Name }}-testing-module-worker-service
- name: Workers__Java
value: http://{{ .Release.Name }}-testing-module-worker-service
- name: Workers__Kotlin
value: http://{{ .Release.Name }}-testing-module-worker-service
- name: Workers__CSharp
value: http://{{ .Release.Name }}-testing-module-worker-service
- name: Workers__Python
value: http://{{ .Release.Name }}-testing-module-worker-service
{{ end }}

View File

@@ -0,0 +1,28 @@
{{ if .Values.testingModule.enable }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-testing-module-worker-deployment
labels:
app: {{ .Release.Name }}-testing-module-worker
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-testing-module-worker
template:
metadata:
labels:
app: {{ .Release.Name }}-testing-module-worker
annotations:
redeploy-timestamp: "{{ now | unixEpoch }}"
spec:
containers:
- name: {{ .Release.Name }}-testing-module-worker
image: git.nullptr.top/liquidcode/liquidcode-tester-worker-roman:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
securityContext:
privileged: true
{{ end }}

View File

@@ -9,6 +9,6 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 8000
targetPort: 3000
{{ end }}

View File

@@ -1,13 +0,0 @@
{{ if .Values.queue.enable }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-queue-service
spec:
selector:
app: {{ .Release.Name }}-queue
ports:
- protocol: TCP
port: 8080
targetPort: 8080
{{ end }}

View File

@@ -0,0 +1,14 @@
{{ if .Values.testingModule.enable }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-testing-module-gateway-service
spec:
selector:
app: {{ .Release.Name }}-testing-module-gateway
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
{{ end }}

View File

@@ -0,0 +1,14 @@
{{ if .Values.testingModule.enable }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-testing-module-worker-service
spec:
selector:
app: {{ .Release.Name }}-testing-module-worker
ports:
- name: http
protocol: TCP
port: 80
targetPort: 8080
{{ end }}

View File

@@ -26,3 +26,13 @@ spec:
name: {{ .Release.Name }}-frontend-service
port:
number: 80
- host: tester.liquidcode.ru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-testing-module-gateway-service
port:
number: 80

View File

@@ -4,6 +4,10 @@ s3:
accessKeyRef: ACCESS_KEY_ID
secretKeyRef: ACCESS_SECRET_KEY
privateBucket: liquid-code
publicBucket: liquid-code-public
tester:
secretName: tester-callback
secretKeyRef: SUBMIT_CALLBACK_SECRET
jwt:
secretName: jwt-secrets
database:
@@ -11,6 +15,6 @@ database:
migrateDb: true
dropDb: false
frontend:
enable: false
queue:
enable: false
enable: true
testingModule:
enable: true