From 52bd7b3736ae1ffde333db55a80af9898dc0c6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Gerrit=20G=C3=B6bel?= <86782124+jggoebel@users.noreply.github.com> Date: Tue, 17 Sep 2024 18:02:18 +0200 Subject: [PATCH] Add Arcade (#427) * add score service definition * Add values.yaml config * Update values.yaml * Increase version to current version --- .../templates/gargantua/ingress.yaml | 7 +++++ .../templates/score-service/deployment.yaml | 30 +++++++++++++++++++ .../templates/score-service/service.yaml | 11 +++++++ charts/hobbyfarm/values.yaml | 5 ++++ 4 files changed, 53 insertions(+) create mode 100644 charts/hobbyfarm/templates/score-service/deployment.yaml create mode 100644 charts/hobbyfarm/templates/score-service/service.yaml diff --git a/charts/hobbyfarm/templates/gargantua/ingress.yaml b/charts/hobbyfarm/templates/gargantua/ingress.yaml index a3139c2..b2ac15a 100644 --- a/charts/hobbyfarm/templates/gargantua/ingress.yaml +++ b/charts/hobbyfarm/templates/gargantua/ingress.yaml @@ -171,6 +171,13 @@ spec: port: number: {{ $.Values.authn.apiPort }} # Gargantua: All routes which are not covered by our microservices are routed to the legacy gargantua API server + - pathType: Prefix + path: "/score" + backend: + service: + name: score-service + port: + number: 80 - pathType: Prefix path: "/" backend: diff --git a/charts/hobbyfarm/templates/score-service/deployment.yaml b/charts/hobbyfarm/templates/score-service/deployment.yaml new file mode 100644 index 0000000..c59d766 --- /dev/null +++ b/charts/hobbyfarm/templates/score-service/deployment.yaml @@ -0,0 +1,30 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: score-service +spec: + selector: + matchLabels: + component: score-service + template: + metadata: + labels: + component: score-service + spec: + containers: + - name: gargantua + image: {{ $.Values.scoreservice.image }} + command: ["app"] + args: + - "-v=9" + - "-logtostderr" + env: + - name: LOG_LEVEL + value: {{ $.Values.scoreservice.logLevel | quote }} + - name: HF_NAMESPACE + value: {{ .Release.Namespace | quote }} + - name: PORT + value: {{ .Values.scoreservice.apiPort | quote }} + ports: + - containerPort: {{ .Values.scoreservice.apiPort }} \ No newline at end of file diff --git a/charts/hobbyfarm/templates/score-service/service.yaml b/charts/hobbyfarm/templates/score-service/service.yaml new file mode 100644 index 0000000..06d4006 --- /dev/null +++ b/charts/hobbyfarm/templates/score-service/service.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: score-service +spec: + selector: + component: score-service + ports: + - name: http + port: 80 diff --git a/charts/hobbyfarm/values.yaml b/charts/hobbyfarm/values.yaml index c53e181..01ab69f 100644 --- a/charts/hobbyfarm/values.yaml +++ b/charts/hobbyfarm/values.yaml @@ -133,6 +133,11 @@ user: logLevel: "0" apiPort: 80 serviceAccountName: "hobbyfarm-user" +scoreservice: + image: hobbyfarm/score-service:v3.2.2 + logLevel: "0" + apiPort: 80 + replicas: 0 vm: image: hobbyfarm/vm-service:v3.2.2 replicas: 1