Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial deployment of point-virgule #176

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/argo-apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ resources:
# - ../hackqc2024/
- ../integrale/website/
- ../applets/hello/
- ../point-virgule/
- ../cedille-wiki/
- ../dronolab/wikijs/
# ... other apps ...
Expand Down
19 changes: 19 additions & 0 deletions apps/point-virgule/argo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: point-virgule
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: point-virgule
source:
repoURL: https://github.com/ClubCedille/Plateforme-Cedille
path: apps/point-virgule/base
targetRevision: HEAD
syncPolicy:
syncOptions:
- CreateNamespace=true
11 changes: 11 additions & 0 deletions apps/point-virgule/base/network.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: point-svc
spec:
selector:
app: point
ports:
- protocol: TCP
port: 5000
targetPort: 5000
47 changes: 47 additions & 0 deletions apps/point-virgule/base/point-virgule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: point-virgule
spec:
replicas: 1
selector:
matchLabels:
app: point-virgule
template:
metadata:
labels:
app: point-virgule
annotations:
vault.hashicorp.com/agent-inject: 'true'
vault.hashicorp.com/tls-skip-verify: 'true'
vault.hashicorp.com/role: 'secret-reader'
vault.hashicorp.com/agent-inject-template-point-virgule-env: |
{{- with secret "kv/point-virgule/default/point-virgule" -}}
export DISCORD_TOKEN="{{ .Data.data.discord_token }}"
{{- end }}
spec:
containers:
- name: point-virgule
image: ghcr.io/clubcedille/point-virgule:latest
imagePullPolicy: Always
command: ["/bin/sh", "-c"]
args:
- >
. /vault/secrets/point-virgule && python main.py
env:
- name: TRANSCRIPTION_API_URL
value: http://point.point-virgule.svc.cluster.local:5000/transcript
resources:
requests:
cpu: "500m"
memory: "2Gi"
limits:
cpu: "2000m"
memory: "5Gi"
volumeMounts:
- name: storage
mountPath: /app/recordings
volumes:
- name: storage
persistentVolumeClaim:
claimName: point-virgule-pvc
28 changes: 28 additions & 0 deletions apps/point-virgule/base/point.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: point
spec:
replicas: 1
selector:
matchLabels:
app: point
template:
metadata:
labels:
app: point
spec:
containers:
- name: point
image: ghcr.io/clubcedille/point:latest
imagePullPolicy: Always
env:
- name: WHISPER_MODEL_SIZE
value: large-v3
resources:
requests:
cpu: "4000m"
memory: "12Gi"
limits:
memory: "20Gi"
containerPort: 5000
10 changes: 10 additions & 0 deletions apps/point-virgule/base/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: point-virgule-pvc
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "24Gi"
4 changes: 4 additions & 0 deletions apps/point-virgule/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- argo.yaml