135 lines
2.8 KiB
YAML
135 lines
2.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gluetun
|
|
namespace: family-apps
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: gluetun
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gluetun
|
|
spec:
|
|
containers:
|
|
- name: gluetun
|
|
image: qmcgaw/gluetun:latest
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
env:
|
|
# User configures VPN provider here
|
|
- name: VPN_SERVICE_PROVIDER
|
|
value: "custom"
|
|
- name: VPN_TYPE
|
|
value: "wireguard"
|
|
- name: HTTPPROXY
|
|
value: "on"
|
|
- name: HTTPPROXY_LOG
|
|
value: "off"
|
|
# Template environment variables for custom VPN credentials
|
|
# - name: WIREGUARD_PRIVATE_KEY
|
|
# value: "YOUR_KEY"
|
|
# - name: WIREGUARD_ADDRESSES
|
|
# value: "10.0.0.2/32"
|
|
ports:
|
|
- name: proxy
|
|
containerPort: 8888
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: gluetun-svc
|
|
namespace: family-apps
|
|
spec:
|
|
ports:
|
|
- port: 8888
|
|
targetPort: 8888
|
|
name: proxy
|
|
selector:
|
|
app: gluetun
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: musicseerr
|
|
namespace: family-apps
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: musicseerr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: musicseerr
|
|
spec:
|
|
containers:
|
|
- name: musicseerr
|
|
image: frankchine/geocrop-musicseerr:latest
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: GLUETUN_PROXY_URL
|
|
value: "http://gluetun-svc:8888"
|
|
- name: TELEGRAM_BOT_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: musicseerr-secrets
|
|
key: telegram-bot-token
|
|
optional: true
|
|
ports:
|
|
- name: http
|
|
containerPort: 8000
|
|
volumeMounts:
|
|
- name: downloads
|
|
mountPath: /tmp/downloads
|
|
- name: remote-music
|
|
mountPath: /remote-music
|
|
volumes:
|
|
- name: downloads
|
|
emptyDir: {}
|
|
- name: remote-music
|
|
persistentVolumeClaim:
|
|
claimName: rclone-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: musicseerr
|
|
namespace: family-apps
|
|
spec:
|
|
ports:
|
|
- port: 8000
|
|
targetPort: 8000
|
|
name: http
|
|
selector:
|
|
app: musicseerr
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: musicseerr-ingress
|
|
namespace: family-apps
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- musicseerr.techarvest.co.zw
|
|
secretName: musicseerr-tls
|
|
rules:
|
|
- host: musicseerr.techarvest.co.zw
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: musicseerr
|
|
port:
|
|
number: 8000
|