Skip to content

Commit

Permalink
Crafty-server configuration (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanHilt authored Nov 5, 2024
1 parent 8039c51 commit 7234bc4
Show file tree
Hide file tree
Showing 42 changed files with 311 additions and 795 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: trailing-whitespace
exclude: '.*\.age$'
- id: check-yaml
exclude: "^(?:atils/templates|kubernetes/helm-charts)/.*$"
exclude: "^(?:atils/templates|kubernetes/helm-charts|kubernetes/argocd/applications)/.*$"
- id: check-added-large-files
args: ["--maxkb=5000"]
- id: check-executables-have-shebangs
Expand Down
31 changes: 31 additions & 0 deletions kubernetes/argocd/applications/templates/crafty-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{ if index .Values "crafty-server" "enabled" }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: crafty-server
namespace: argocd
spec:
project: default
sources:
- repoURL: tccr.io/truecharts
path: crafty-4
chart: crafty-4
targetRevision: {{ index .Values "crafty-server" "version" }}
{{- if index .Values "crafty-server" "configuration" "enabled" }}
helm:
valueFiles:
- "$values/{{ .Values.configuration.configurationDirectory }}/{{ .Values.env }}/crafty-server.yaml"
- repoURL: {{ .Values.configuration.configurationRepo }}
targetRevision: {{ .Values.gitRevision }}
ref: values
{{- end }}
destination:
server: 'https://kubernetes.default.svc'
namespace: crafty
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
{{end}}
9 changes: 9 additions & 0 deletions kubernetes/argocd/applications/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Global config
env: qa-cluster

gitRevision: master
Expand All @@ -7,6 +8,14 @@ configuration:
configurationDirectory: kubernetes/argocd/configuration-data
configurationRevision: master

# Service-specific config

crafty-server:
enabled: false
configuration:
enabled: false
version: "9.2.2"

flaresolverr:
enabled: false
configuration:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
persistence:
servers:
enabled: true
size: 5Gi
mountPath: /crafty/servers
logs:
enabled: true
size: 5Gi
mountPath: /crafty/logs
import:
enabled: true
size: 5Gi
mountPath: /crafty/import
backups:
enabled: true
size: 5Gi
mountPath: /crafty/backups
config:
enabled: true
size: 5Gi
mountPath: /crafty/app/config

portal:
open:
enabled: true

service:
minecraft:
type: NodePort
enabled: true
ports:
minecraft:
enabled: true
port: 25565
targetPort: 25565
nodePort: 30002

This file was deleted.

18 changes: 0 additions & 18 deletions kubernetes/argocd/configuration-data/prod-cluster/hashi-vault.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions kubernetes/argocd/configuration-data/prod-cluster/kiali.yaml

This file was deleted.

This file was deleted.

105 changes: 3 additions & 102 deletions kubernetes/argocd/configuration-data/prod-cluster/master-stack.yaml
Original file line number Diff line number Diff line change
@@ -1,117 +1,18 @@
env: prod-cluster

gitRevision: feat/jellyseerr
gitRevision: master

configuration:
configurationRepo: https://github.com/AidanHilt/PersonalMonorepo
configurationDirectory: kubernetes/argocd/configuration-data
configurationRevision: master

flaresolverr:
enabled: false
configuration:
enabled: false

gateways:
enabled: false

grafana-dashboards:
enabled: false

grafana-datasources:
enabled: false

grafana-loki:
enabled: false
configuration:
enabled: true
version: "5.47.1"

grafana-promtail:
enabled: false
configuration:
enabled: false
version: "6.15.5"

hashi-vault:
enabled: false
configuration:
enabled: true
version: "0.27.0"

ingress:
enabled: false

istio:
enabled: false
configuration:
enabled: false
version: "1.21.0"

istio-base:
enabled: false
configuration:
enabled: false
version: "1.21.0"

istio-gateway:
enabled: false
configuration:
enabled: false
version: "1.21.0"

kiali:
enabled: false
configuration:
enabled: true
version: "1.81.0"

longhorn:
enabled: false
configuration:
enabled: true
version: "1.6.0"

metallb:
enabled: false
configuration:
enabled: false
version: "0.14.3"

metallb-config:
enabled: false

prometheus:
enabled: false
crafty-server:
enabled: true
configuration:
enabled: true

jellyseerr:
enabled: true
configuration:
enabled: true

prowlarr:
enabled: false
configuration:
enabled: true

radarr:
enabled: false
configuration:
enabled: true

sonarr:
enabled: false
configuration:
enabled: true

transmission:
enabled: false
configuration:
enabled: true

video-stack-configuration:
enabled: false
configuration:
enabled: false
16 changes: 0 additions & 16 deletions kubernetes/argocd/configuration-data/prod-cluster/prometheus.yaml

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions kubernetes/argocd/configuration-data/prod-cluster/radarr.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions kubernetes/argocd/configuration-data/prod-cluster/sonarr.yaml

This file was deleted.

This file was deleted.

20 changes: 20 additions & 0 deletions kubernetes/argocd/configuration-data/qa-cluster/crafty-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
persistence:
# config:
# enabled: true
# mountPath: /crafty/app/config
# servers:
# enabled: true
# mountPath: /crafty/servers
# logs:
# enabled: true
# mountPath: /crafty/logs
# import:
# enabled: true
# mountPath: /crafty/import
# backups:
# enabled: true
# mountPath: /crafty/backups
config:
enabled: true
size: 10Gi
mountPath: /crafty
Loading

0 comments on commit 7234bc4

Please sign in to comment.