Zerotier UI
Deployment
YAML
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: zerotier-ui
name: zerotier-ui
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: zerotier-ui
template:
metadata:
labels:
app: zerotier-ui
spec:
containers:
- env:
- name: ZU_CONTROLLER_ENDPOINT
value: http://zerotier.default.svc.cluster.local:9993/
- name: ZU_SECURE_HEADERS
value: "false"
- name: ZU_DEFAULT_USERNAME
value: username
- name: ZU_DEFAULT_PASSWORD
value: P@ssword321
image: dec0dos/zero-ui:latest
imagePullPolicy: Always
name: zerotier-ui
ports:
- containerPort: 4000
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
volumeMounts:
- mountPath: /app/backend/data
name: zt-ui
- mountPath: /var/lib/zerotier-one
name: zt-ui2
restartPolicy: Always
volumes:
- name: zt-ui
persistentVolumeClaim:
claimName: zt-ui
- name: zt-ui2
persistentVolumeClaim:
claimName: zt-ui2
Service
YAML
apiVersion: v1
kind: Service
metadata:
labels:
app: zerotier-ui
name: zerotier-ui
namespace: default
spec:
loadBalancerIP: 100.100.100.106
ports:
- name: custom-port
port: 4000
protocol: TCP
targetPort: 4000
selector:
app: zerotier-ui
type: LoadBalancer
Volume
YAML
# zt-ui
apiVersion: v1
kind: PersistentVolume
metadata:
labels:
type: local
name: zt-ui
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 10Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: zt-ui
namespace: default
hostPath:
path: /mrcina-disk/kubernetes-volumes/zerotier-ui
type: ""
persistentVolumeReclaimPolicy: Retain
storageClassName: zerotier-ui
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: zt-ui
namespace: default
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: zerotier-ui
volumeMode: Filesystem
volumeName: zt-ui
---
# Zt ui-2
apiVersion: v1
kind: PersistentVolume
metadata:
labels:
type: local
name: zt-ui2
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 10Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: zt-ui2
namespace: default
hostPath:
path: /disk/kubernetes-volumes/zerotier
type: ""
persistentVolumeReclaimPolicy: Retain
storageClassName: zerotier2-ui
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: zt-ui2
namespace: default
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: zerotier2-ui
volumeMode: Filesystem
volumeName: zt-ui2