gitea: expose ssh via metallb shared IP
This commit is contained in:
parent
66e7e6acc5
commit
d90950b82e
@ -6,6 +6,7 @@ metadata:
|
|||||||
namespace: traefik
|
namespace: traefik
|
||||||
annotations:
|
annotations:
|
||||||
metallb.universe.tf/address-pool: communication-pool
|
metallb.universe.tf/address-pool: communication-pool
|
||||||
|
metallb.universe.tf/allow-shared-ip: traefik
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerClass: metallb
|
loadBalancerClass: metallb
|
||||||
|
|||||||
@ -21,12 +21,16 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: gitea-ssh
|
name: gitea-ssh
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
|
annotations:
|
||||||
|
metallb.universe.tf/address-pool: communication-pool
|
||||||
|
metallb.universe.tf/allow-shared-ip: traefik
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: LoadBalancer
|
||||||
|
loadBalancerClass: metallb
|
||||||
|
loadBalancerIP: 192.168.22.9
|
||||||
selector:
|
selector:
|
||||||
app: gitea
|
app: gitea
|
||||||
ports:
|
ports:
|
||||||
- name: ssh
|
- name: ssh
|
||||||
port: 2242
|
port: 2242
|
||||||
targetPort: 2242
|
targetPort: 2242
|
||||||
nodePort: 32242
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user