Zerotier
Deployment
YAML
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: zerotier
name: zerotier
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: zerotier
template:
metadata:
labels:
app: zerotier
spec:
containers:
- env:
- name: ZT_OVERRIDE_LOCAL_CONF
value: "true"
- name: ZT_ALLOW_MANAGEMENT_FROM
value: 0.0.0.0/0
image: zyclonite/zerotier:1.10.1
imagePullPolicy: IfNotPresent
name: zerotier
resources:
limits:
cpu: "1"
memory: 2Gi
requests:
cpu: 50m
memory: 16Mi
ports:
- containerPort: 9993
protocol: TCP
volumeMounts:
- mountPath: /var/lib/zerotier-one
name: zt-server
volumes:
- name: zt-server
persistentVolumeClaim:
claimName: zt-server
Service
YAML
apiVersion: v1
kind: Service
metadata:
labels:
app: zerotier
name: zerotier
namespace: default
spec:
ports:
- name: custom-port
port: 9993
protocol: TCP
targetPort: 9993
selector:
app: zerotier
type: ClusterIP
Volume
YAML
apiVersion: v1
kind: PersistentVolume
metadata:
labels:
type: local
name: zt-server
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 10Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: zt-server
namespace: default
hostPath:
path: /disk/kubernetes-volumes/zerotier
type: ""
persistentVolumeReclaimPolicy: Retain
storageClassName: zerotier
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: zt-server
namespace: default
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: zerotier
volumeMode: Filesystem
volumeName: zt-server