Skip to content

Commit d0ee58b

Browse files
committed
added some temporary hardcoded values to get started
Signed-off-by: Akvanvig <26225977+Akvanvig@users.noreply.github.com>
1 parent 20a1e25 commit d0ee58b

File tree

5 files changed

+32
-62
lines changed

5 files changed

+32
-62
lines changed

deploy/helm/roboto-go/templates/NOTES.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

deploy/helm/roboto-go/templates/lavalink-service.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ metadata:
66
{{- include "roboto-go.labelsLavalink" . | nindent 4 }}
77
spec:
88
type: {{ .Values.lavalink.service.type }}
9-
clusterIP: None
9+
# clusterIP: None
1010
ports:
1111
- port: {{ .Values.lavalink.service.port }}
1212
targetPort: http
1313
protocol: TCP
1414
name: http
15-
# selector:
16-
# - include "roboto-go.selectorLabelsLavalink" . | nindent 4
15+
selector:
16+
{{- include "roboto-go.selectorLabelsLavalink" . | nindent 4 }}

deploy/helm/roboto-go/templates/lavalink-sts.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ spec:
6262
resources:
6363
{{- toYaml . | nindent 12 }}
6464
{{- end }}
65-
{{- with .Values.lavalink.volumeMounts }}
6665
volumeMounts:
67-
{{- toYaml . | nindent 12 }}
68-
{{- end }}
69-
{{- with .Values.lavalink.volumes }}
66+
- name: lavalink-storage
67+
mountPath: /opt/Lavalink/plugins
7068
volumes:
71-
{{- toYaml . | nindent 8 }}
69+
{{- if ( not .Values.lavalink.persistance ) }}
70+
- name: lavalink-storage
71+
emptyDir:
72+
sizeLimit: 10Gi
7273
{{- end }}
7374
{{- with .Values.lavalink.nodeSelector }}
7475
nodeSelector:
@@ -82,3 +83,14 @@ spec:
8283
tolerations:
8384
{{- toYaml . | nindent 8 }}
8485
{{- end }}
86+
{{- if .Values.lavalink.persistance }}
87+
volumeClaimTemplates:
88+
- metadata:
89+
name: lavalink-storage
90+
spec:
91+
accessModes: [ "ReadWriteOnce" ]
92+
storageClassName: {{- .Values.lavalink.storageClass }}
93+
resources:
94+
requests:
95+
storage: {{- .Values.lavalink.storage }}
96+
{{- end }}

deploy/helm/roboto-go/templates/roboto-cm.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ data:
88
token: {{ .Values.roboto.discord.token | quote}}
99
lavalink:
1010
nodes:
11-
{{- range $i, $e := until ( int .Values.roboto.lavalink.replicas ) }}
12-
- name: {{ printf "%s-lavalink-%v" ( include "roboto-go.name" $ ) $i }}
13-
address: {{ printf "%s-lavalink-%v:%v" ( include "roboto-go.name" $ ) $i (int $.Values.lavalink.service.port) }}
14-
password: {{ include "roboto-go.lavalinkPassword" . }}
15-
{{- end }}
11+
- name: {{ include "roboto-go.name" . }}-lavalink
12+
address: {{ include "roboto-go.name" . }}-lavalink.svc
13+
password: {{ printf "%s:%v" ( include "roboto-go.lavalinkPassword" . ) (int $.Values.lavalink.service.port) }}
14+
# {{- range $i, $e := until ( int .Values.roboto.lavalink.replicas ) }}
15+
# - name: {{ printf "%s-lavalink-%v" ( include "roboto-go.name" $ ) $i }}
16+
# address: {{ printf "%s-lavalink-%v:%v" ( include "roboto-go.name" $ ) $i (int $.Values.lavalink.service.port) }}
17+
# password: {{ include "roboto-go.lavalinkPassword" . }}
18+
# {{- end }}

deploy/helm/roboto-go/values.yaml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,6 @@ securityContext: {}
4949
# runAsNonRoot: true
5050
# runAsUser: 1000
5151

52-
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
53-
service:
54-
# This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
55-
type: ClusterIP
56-
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
57-
port: 80
58-
59-
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
60-
ingress:
61-
enabled: false
62-
className: ""
63-
annotations: {}
64-
# kubernetes.io/ingress.class: nginx
65-
# kubernetes.io/tls-acme: "true"
66-
hosts:
67-
- host: chart-example.local
68-
paths:
69-
- path: /
70-
pathType: ImplementationSpecific
71-
tls: []
72-
# - secretName: chart-example-tls
73-
# hosts:
74-
# - chart-example.local
75-
7652
resources: {}
7753
# We usually recommend not to specify default resources and to leave this as a conscious
7854
# choice for the user. This also increases chances charts run on environments with little
@@ -132,12 +108,13 @@ roboto:
132108
lavalink:
133109
replicas: 1
134110
port: 2333
135-
persistance: false
136-
storageClass: ""
137-
javaOptions: "-Xmx6G"
138111

139112

140113
lavalink:
114+
persistance: false
115+
storageClass: ""
116+
storage: "10Gi"
117+
javaOptions: "-Xmx6G"
141118
image:
142119
repository: "ghcr.io/lavalink-devs/lavalink"
143120
tag: "4"

0 commit comments

Comments
 (0)