add ingress-route and edit gitea-svc and traefik release to make gitea work on port 22
All checks were successful
Validate Kubernetes Manifests / kubeconform (push) Successful in 13s
All checks were successful
Validate Kubernetes Manifests / kubeconform (push) Successful in 13s
This commit is contained in:
14
clusters/ipv6/git-ops/gitea/gitea-ingress-route.yml
Normal file
14
clusters/ipv6/git-ops/gitea/gitea-ingress-route.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRouteTCP
|
||||
metadata:
|
||||
name: gitea-ssh
|
||||
namespace: git-ops
|
||||
spec:
|
||||
entryPoints:
|
||||
- ssh
|
||||
routes:
|
||||
- match: HostSNI(`*`)
|
||||
services:
|
||||
- name: gitea-int-service
|
||||
port: 22
|
||||
@@ -1,20 +1,3 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gitea-app
|
||||
namespace: git-ops
|
||||
annotations:
|
||||
metallb.io/loadBalancerIPs: 192.168.1.202
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: gitea-app
|
||||
ports:
|
||||
- port: 22
|
||||
targetPort: 22
|
||||
name: ssh
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -28,6 +11,11 @@ spec:
|
||||
- protocol: TCP
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
name: http
|
||||
- protocol: TCP
|
||||
port: 22
|
||||
targetPort: 22
|
||||
name: ssh
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
||||
@@ -57,6 +57,13 @@ spec:
|
||||
expose:
|
||||
default: true
|
||||
|
||||
ssh:
|
||||
port: 22
|
||||
exposedPort: 22
|
||||
protocol: TCP
|
||||
expose:
|
||||
default: true
|
||||
|
||||
providers:
|
||||
kubernetesCRD: {}
|
||||
kubernetesIngress: {}
|
||||
|
||||
Reference in New Issue
Block a user