feat(apps): Add rustbin

This commit is contained in:
2026-09-18 16:17:09 +05:30
parent 028069629f
commit a4c3bd4179
7 changed files with 136 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rustbin
namespace: rustbin
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: rustbin
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/name: rustbin
spec:
containers:
- env:
- name: DATABASE_URL
value: sqlite:///data/rustbin.db?mode=rwc
image: ghcr.io/whyredfire/rustbin:sha-75418bf
livenessProbe:
httpGet:
path: /
port: http
name: rustbin
ports:
- containerPort: 3000
name: http
readinessProbe:
httpGet:
path: /
port: http
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 10m
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /data
name: data
securityContext:
fsGroup: 65532
runAsGroup: 65532
runAsNonRoot: true
runAsUser: 65532
seccompProfile:
type: RuntimeDefault
volumes:
- name: data
persistentVolumeClaim:
claimName: rustbin-data
+23
View File
@@ -0,0 +1,23 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
annotations:
argocd.argoproj.io/sync-wave: "2"
name: rustbin
namespace: rustbin
spec:
hostnames:
- bin.whyredfire.dev
parentRefs:
- kind: Gateway
name: traefik-gateway
namespace: traefik
sectionName: websecure
rules:
- backendRefs:
- name: rustbin
port: 3000
matches:
- path:
type: PathPrefix
value: /
+7
View File
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- deployment.yaml
- service.yaml
- httproute.yaml
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rustbin-data
namespace: rustbin
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
+12
View File
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: rustbin
namespace: rustbin
spec:
ports:
- name: http
port: 3000
targetPort: http
selector:
app.kubernetes.io/name: rustbin
+1
View File
@@ -9,4 +9,5 @@ resources:
- jellyfin.yaml
- legislative-summarization.yaml
- qbit.yaml
- rustbin.yaml
- scriptscribe.yaml
+22
View File
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: "3"
name: rustbin
namespace: argocd
spec:
destination:
namespace: rustbin
server: https://kubernetes.default.svc
project: default
source:
path: apps/rustbin
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
targetRevision: main
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true