add
This commit is contained in:
29
resilio/deployment.yaml
Normal file
29
resilio/deployment.yaml
Normal 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
|
7
resilio/kustomization.yaml
Normal file
7
resilio/kustomization.yaml
Normal 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
19
resilio/service.yaml
Normal 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
|
Reference in New Issue
Block a user