Skip to content

Commit

Permalink
feat: deploy code-and-quest with helm
Browse files Browse the repository at this point in the history
  • Loading branch information
wittdennis committed Dec 23, 2024
1 parent d6e411c commit d331c8f
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 246 deletions.
54 changes: 54 additions & 0 deletions argo-apps/cloud/foundry-code-and-quest-app.cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cloud-foundry-code-and-quest
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: foundry
syncPolicy:
automated:
prune: true
destination:
name: cloud
namespace: foundry
source:
repoURL: https://charts.derwitt.dev
targetRevision: 12.0.2
chart: foundryvtt
helm:
releaseName: code-and-quest
values: |
config:
enableTelemetry: true
defaultWorld: danddhard
existingSecret:
name: code-and-quest-foundryvtt
containsLicenseKey: true
containsAwsConfig: true
storage:
className: longhorn
size: 5Gi
resources:
requests:
cpu: 40m
memory: 512Mi
limits:
memory: 512Mi
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: code-and-quest-de-letsencrypt
nginx.ingress.kubernetes.io/proxy-body-size: 64m
hosts:
- host: vtt.code-and-quest.de
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- vtt.code-and-quest.de
secretName: foundry-code-and-quest-ingress-tls
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ spec:
arguments:
parameters:
- name: instance
value: foundry
value: code-and-quest-foundryvtt
- name: pvc-name
value: foundry-data-pvc
value: data-code-and-quest-foundryvtt-0
templateRef:
name: foundry-backup-restore-template
template: main
Expand All @@ -39,7 +39,7 @@ spec:
arguments:
parameters:
- name: name
value: foundry
value: code-and-quest-foundryvtt
- name: replicaCount
value: "1"
- name: type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ spec:
arguments:
parameters:
- name: instance
value: foundry
value: code-and-quest-foundryvtt
- name: restic-hostname
value: foundry-data
value: code-and-quest-foundryvtt
- name: pvc-name
value: foundry-data-pvc
value: data-code-and-quest-foundryvtt-0

- name: exit-handler
steps:
- - name: scale-up
arguments:
parameters:
- name: name
value: foundry
value: code-and-quest-foundryvtt
- name: replicaCount
value: "1"
- name: type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: foundry-credentials
labels:
app.kubernetes.io/name: foundry-credentials
app.kubernetes.io/component: foundry
app.kubernetes.io/part-of: foundry
app.kubernetes.io/managed-by: argocd
name: code-and-quest-foundryvtt
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-backend-foundry
kind: ClusterSecretStore
target:
name: foundry-credentials
name: code-and-quest-foundryvtt
creationPolicy: Owner
deletionPolicy: Delete
data:
Expand All @@ -28,3 +23,18 @@ spec:
key: /credentials
property: password
secretKey: foundry-password
- remoteRef:
conversionStrategy: Default
key: /license
property: code-and-quest-license-key
secretKey: foundry-license-key
- remoteRef:
conversionStrategy: Default
key: /settings
property: code-and-quest-admin-key
secretKey: admin-key
- remoteRef:
conversionStrategy: Default
key: /settings
property: code-and-quest-aws-config
secretKey: awsConfig.json
25 changes: 0 additions & 25 deletions cloud/custom-resources/external-secrets/foundry-licenses.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions cloud/custom-resources/external-secrets/foundry-settings.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- remoteRef:
conversionStrategy: Default
key: /license
property: foundry-saltysausage-license-key
property: saltysausage-license-key
secretKey: foundry-license-key
- remoteRef:
conversionStrategy: Default
Expand Down
30 changes: 0 additions & 30 deletions cloud/networking/foundry-ingress.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions cloud/storage/foundry-data-pvc.yaml

This file was deleted.

128 changes: 0 additions & 128 deletions cloud/workloads/foundry-deployment.yaml

This file was deleted.

0 comments on commit d331c8f

Please sign in to comment.