Skip to content

Commit

Permalink
Add faf-qai
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Jun 28, 2024
1 parent c11ee58 commit 5f2cd8a
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/faf-lobby-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: faf-java-api
name: faf-lobby-server
version: 1.0.0
3 changes: 3 additions & 0 deletions apps/faf-qai/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apiVersion: v2
name: faf-qai
version: 1.0.0
11 changes: 11 additions & 0 deletions apps/faf-qai/templates/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: faf-qai
labels:
app: faf-qai
data:
IRC_SERVER: irc.{{ .Values.baseDomain }}
IRC_USER: qai
CONFIG__HOST: {{ .Values.baseDomain }}
FAFAPI_CLIENT_ID: faf-qai
35 changes: 35 additions & 0 deletions apps/faf-qai/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: faf-qai
labels:
app: faf-qai
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: faf-qai
template:
metadata:
labels:
app: faf-qai
spec:
containers:
- image: faforever/faf-qai:main
imagePullPolicy: Always
name: faf-qai
envFrom:
- configMapRef:
name: faf-qai
- secretRef:
name: faf-qai
volumeMounts:
- mountPath: /app/Database
name: faf-qai
subPath: "Database"
restartPolicy: Always
volumes:
- name: faf-qai
persistentVolumeClaim:
claimName: faf-qai-pvc
18 changes: 18 additions & 0 deletions apps/faf-qai/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: secrets.infisical.com/v1alpha1
kind: InfisicalSecret
metadata:
name: faf-qai
namespace: faf-apps
spec:
authentication:
serviceToken:
serviceTokenSecretReference:
secretName: infisical-service-token
secretNamespace: faf-apps
secretsScope:
envSlug: {{.Values.infisicalSlug}}
secretsPath: "/faf-qai"
managedSecretReference:
secretName: faf-qai
secretNamespace: faf-apps
creationPolicy: "Owner"
5 changes: 5 additions & 0 deletions cluster/storage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ managedStorages:
size: 1Gi
pvc:
namespace: faf-apps
- pv:
name: faf-qai
size: 1Gi
pvc:
namespace: faf-apps
# - name: mariadb
# namespace: faf-apps
# size: 20Gi
Expand Down

0 comments on commit 5f2cd8a

Please sign in to comment.