Add k3s Helm charts for Opus API and TeX Live API

This commit is contained in:
Solaria
2026-03-14 23:32:38 +00:00
parent 1a627dc099
commit 1b94a71f02
7 changed files with 215 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: texlive-api
description: TeX Live API for LaTeX compilation
type: application
version: 0.1.0
appVersion: "latest"
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
labels:
app: texlive-api
spec:
replicas: {{ .Values.replicas | default 1 }}
selector:
matchLabels:
app: texlive-api
template:
metadata:
labels:
app: texlive-api
spec:
containers:
- name: texlive
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
ports:
- containerPort: {{ .Values.service.port | default 8080 }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-service
spec:
selector:
app: texlive-api
ports:
- protocol: TCP
port: {{ .Values.service.port | default 8080 }}
targetPort: {{ .Values.service.port | default 8080 }}
type: {{ .Values.service.type | default "ClusterIP" }}
+28
View File
@@ -0,0 +1,28 @@
# TeX Live API
# k3s Helm Chart
## Install
```bash
helm install texlive deployments/k3s/texlive-api/
```
## Values
```yaml
image:
repository: alex11br/texlive-api
tag: latest
service:
type: ClusterIP
port: 8080
resources:
limits:
cpu: 4000m
memory: 8Gi
requests:
cpu: 2000m
memory: 4Gi
```