Files
userbot/metube/k8s/metube.yaml
T

50 lines
968 B
YAML

apiVersion: v1
kind: Service
metadata:
name: metube-service
namespace: metube
spec:
selector:
app: metube
ports:
- port: 8081
targetPort: 8081
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: metube-deployment
namespace: metube
spec:
replicas: 1
selector:
matchLabels:
app: metube
template:
metadata:
labels:
app: metube
spec:
containers:
- name: metube
image: ghcr.io/alexta69/metube
envFrom:
- configMapRef:
name: metube-config
ports:
- containerPort: 8081
volumeMounts:
- name: downloads
mountPath: /downloads
resources:
requests:
memory: "600Mi"
cpu: "400m"
limits:
memory: "2Gi"
cpu: "1700m"
volumes:
- name: downloads
emptyDir:
sizeLimit: 20Gi