This commit is contained in:
Sense T
2023-06-08 22:13:27 +08:00
parent b21fe927b1
commit aabdebb350
29 changed files with 467 additions and 107 deletions

29
resilio/deployment.yaml Normal file
View File

@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: resilio-sync
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: resilio-sync
template:
metadata:
labels:
app: resilio-sync
spec:
volumes:
- name: data
hostPath:
path: /data/resilio-sync
containers:
- name: resilio-sync
image: resilio/sync:2.7.3
resources:
limits:
cpu: 500m
memory: 512Mi
volumeMounts:
- name: data
mountPath: /mnt/sync

View File

@@ -0,0 +1,7 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml

19
resilio/service.yaml Normal file
View File

@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: resilio-sync
spec:
type: LoadBalancer
ipFamilyPolicy: PreferDualStack
ipFamilies:
- IPv4
- IPv6
selector:
app: resilio-sync
ports:
- name: web
port: 8888
targetPort: 8888
- name: sync
port: 55555
targetPort: 55555