diff --git a/apps/k8s01/syncthing/syncthing.yaml b/apps/k8s01/syncthing/syncthing.yaml index 8febbdfb13037ca815139633d0aeb5a01b7823d8..7a7ef8a2653cda959937cddc131a732366f0e28f 100644 --- a/apps/k8s01/syncthing/syncthing.yaml +++ b/apps/k8s01/syncthing/syncthing.yaml @@ -60,4 +60,38 @@ spec: accessModes: [ "ReadWriteOnce" ] resources: requests: - storage: 70Gi \ No newline at end of file + storage: 70Gi +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/name: syncthing + name: syncthing + namespace: syncthing +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: web + selector: + app.kubernetes.io/name: syncthing + type: ClusterIP +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/name: syncthing + name: syncthing + namespace: syncthing +spec: + ports: + - name: transfer-tcp + port: 22000 + protocol: TCP + targetPort: transfer-tcp + selector: + app.kubernetes.io/name: syncthing + type: LoadBalancer \ No newline at end of file