k3s-infra/unused/webtop.deployment.yaml
2023-10-05 14:34:37 +02:00

96 lines
1.6 KiB
YAML

---
apiVersion: v1
kind: PersistentVolume
metadata:
namespace: webtop
name: webtop-data-nfs
labels:
directory: webtop
spec:
storageClassName: fast
capacity:
storage: "15Gi"
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
nfs:
path: /webtop
server: 10.43.239.43 # assigned to nfs-server service. Won't change as long as service is not redeployed
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: webtop
name: webtop-data-nfs
spec:
storageClassName: fast
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "15Gi"
selector:
matchLabels:
directory: webtop
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webtop
namespace: webtop
labels:
app: webtop
spec:
replicas: 1
selector:
matchLabels:
app: webtop
template:
metadata:
labels:
app: webtop
spec:
containers:
- name: webtop
image: lscr.io/linuxserver/webtop:ubuntu-mate
tty: true
volumeMounts:
- mountPath: /config
name: webtop-data-nfs
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Europe/Berlin"
ports:
- containerPort: 3000
volumes:
- name: webtop-data-nfs
persistentVolumeClaim:
claimName: webtop-data-nfs
---
apiVersion: v1
kind: Service
metadata:
name: webtop
namespace: webtop
spec:
ports:
- name: webtop
port: 3000
selector:
app: webtop