update service config
This commit is contained in:
		| @@ -1,19 +1,43 @@ | |||||||
| apiVersion: v1 | apiVersion: v1 | ||||||
| kind: Service | kind: Service | ||||||
| metadata: | metadata: | ||||||
|   name: syncthing |   name: syncthing-web | ||||||
|  | spec: | ||||||
|  |   selector: | ||||||
|  |     app: syncthing | ||||||
|  |   type: ClusterIP | ||||||
|  |   ports: | ||||||
|  |   - port: 8384 | ||||||
|  |     targetPort: 8384 | ||||||
|  | --- | ||||||
|  | apiVersion: v1 | ||||||
|  | kind: Service | ||||||
|  | annotations: | ||||||
|  |   metallb.universe.tf/allow-shared-ip: syncthing-service | ||||||
|  |  | ||||||
|  | metadata: | ||||||
|  |   name: syncthing-listen | ||||||
| spec: | spec: | ||||||
|   selector: |   selector: | ||||||
|     app: syncthing |     app: syncthing | ||||||
|   type: LoadBalancer |   type: LoadBalancer | ||||||
|   LoadBalancerIP: 192.168.3.4 |   LoadBalancerIP: 192.168.3.4 | ||||||
|   ports: |   ports: | ||||||
|   - port: 8384 |  | ||||||
|     targetPort: 8384 |  | ||||||
|     name: syncthing-web |  | ||||||
|   - port: 22000 |  | ||||||
|     targetPort: 22000 |  | ||||||
|     name: syncthing-listen |  | ||||||
|   - port: 22000 |   - port: 22000 | ||||||
|     targetPort: 22000 |     targetPort: 22000 | ||||||
|  |     protocol: TCP | ||||||
|  | --- | ||||||
|  | apiVersion: v1 | ||||||
|  | kind: Service | ||||||
|  | annotations: | ||||||
|  |   metallb.universe.tf/allow-shared-ip: syncthing-service | ||||||
|  |  | ||||||
|  | metadata: | ||||||
|   name: syncthing-discover |   name: syncthing-discover | ||||||
|  | spec: | ||||||
|  |   selector: | ||||||
|  |     app: syncthing | ||||||
|  |   ports: | ||||||
|  |   - port: 22000 | ||||||
|  |     targetPort: 22000 | ||||||
|  |     protocol: UDP | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user