Skip to content

Commit

Permalink
Add Arcade (hobbyfarm#427)
Browse files Browse the repository at this point in the history
* add score service definition

* Add values.yaml config

* Update values.yaml

* Increase version to current version
  • Loading branch information
jggoebel authored Sep 17, 2024
1 parent a32d937 commit 52bd7b3
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/hobbyfarm/templates/gargantua/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
30 changes: 30 additions & 0 deletions charts/hobbyfarm/templates/score-service/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 11 additions & 0 deletions charts/hobbyfarm/templates/score-service/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: Service
metadata:
name: score-service
spec:
selector:
component: score-service
ports:
- name: http
port: 80
5 changes: 5 additions & 0 deletions charts/hobbyfarm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52bd7b3

Please sign in to comment.