Files
Kubernetes.K3s.installLog/services/Webtop/deployment-webtop.yaml

49 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: webtop
namespace: webtop
labels:
app: webtop
spec:
replicas: 1
selector:
matchLabels:
app: webtop
strategy:
type: Recreate
template:
metadata:
labels:
app: webtop
spec:
containers:
- name: webtop
image: lscr.io/linuxserver/webtop:latest
env:
- name: START_DOCKER
value: "false"
- name: DOCKER_MODS
value: linuxserver/mods:universal-package-install
- name: INSTALL_PACKAGES
value: nano|zsh
- name: TZ
value: Australia/Melbourne
ports:
- name: web
containerPort: 3001
volumeMounts:
- mountPath: /config
name: webtop-config
- mountPath: /custom-cont-init.d/00-zsh.sh
name: webtop-initd
subPath: 00-zsh.sh
volumes:
- name: webtop-config
persistentVolumeClaim:
claimName: webtop-config
- name: webtop-initd
configMap:
name: init.d-zsh
defaultMode: 0700