deploy syncthing
This commit is contained in:
		
							
								
								
									
										37
									
								
								apps/syncthing/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								apps/syncthing/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: syncthing | ||||
| spec: | ||||
|   selector: | ||||
|     matchLabels: | ||||
|       app: syncthing | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: syncthing | ||||
|     spec: | ||||
|       containers: | ||||
|       - name: syncthing | ||||
|         image: syncthing | ||||
|         resources: | ||||
|           limits: | ||||
|             memory: "256Mi" | ||||
|             cpu: "500m" | ||||
|         ports: | ||||
|         - containerPort: 8384 | ||||
|           name: syncthing-web | ||||
|           protocol: TCP | ||||
|         - containerPort: 22000 | ||||
|           protocol: TCP | ||||
|           name: syncthing-listen | ||||
|         - containerPort: 22000 | ||||
|           protocol: UDP | ||||
|           name: syncthing-discover | ||||
|         volumeMounts: | ||||
|         - name: persistence | ||||
|           mountPath: /var/syncthing | ||||
|       volumes: | ||||
|       - name: persistence | ||||
|         persistentVolumeClaim: | ||||
|           claimName: syncthing-claim | ||||
							
								
								
									
										16
									
								
								apps/syncthing/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/syncthing/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| apiVersion: traefik.containo.us/v1alpha1 | ||||
| kind: IngressRoute | ||||
| metadata: | ||||
|   name: rss-ingressroute | ||||
|  | ||||
| spec: | ||||
|   entryPoints: | ||||
|     - websecure | ||||
|   routes: | ||||
|     - match: Host(`syncthing.kluster.moll.re`) | ||||
|       kind: Rule | ||||
|       services: | ||||
|         - name: syncthing-web | ||||
|           port: 8384 | ||||
|   tls: | ||||
|     certResolver: default-tls | ||||
							
								
								
									
										16
									
								
								apps/syncthing/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/syncthing/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
|  | ||||
| namespace: syncthing | ||||
|  | ||||
| resources: | ||||
|   - namespace.yaml | ||||
|   - pvc.yaml | ||||
|   - deployment.yaml | ||||
|   - service.yaml | ||||
|   - ingress.yaml | ||||
|  | ||||
| images: | ||||
|   - name: syncthing | ||||
|     newName: syncthing | ||||
|     newTag: v1.27 | ||||
							
								
								
									
										4
									
								
								apps/syncthing/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/syncthing/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: v1 | ||||
| kind: Namespace | ||||
| metadata: | ||||
|   name: placeholder | ||||
							
								
								
									
										11
									
								
								apps/syncthing/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								apps/syncthing/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| kind: PersistentVolumeClaim | ||||
| apiVersion: v1 | ||||
| metadata: | ||||
|   name: syncthing-claim | ||||
| spec: | ||||
|   storageClassName: nfs-client | ||||
|   accessModes: | ||||
|     - ReadWriteOnce | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: 10Gi | ||||
							
								
								
									
										19
									
								
								apps/syncthing/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								apps/syncthing/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
| metadata: | ||||
|   name: syncthing | ||||
| spec: | ||||
|   selector: | ||||
|     app: syncthing | ||||
|   type: LoadBalancer | ||||
|   LoadBalancerIP: 192.168.3.4 | ||||
|   ports: | ||||
|   - port: 8384 | ||||
|     targetPort: 8384 | ||||
|     name: syncthing-web | ||||
|   - port: 22000 | ||||
|     targetPort: 22000 | ||||
|     name: syncthing-listen | ||||
|   - port: 22000 | ||||
|     targetPort: 22000 | ||||
|     name: syncthing-discover | ||||
		Reference in New Issue
	
	Block a user