gitea: migrate to gateway API for ingress
This commit is contained in:
+39
-19
@@ -1,15 +1,27 @@
|
|||||||
gitea:
|
gitea:
|
||||||
replicaCount: 3
|
replicaCount: 3
|
||||||
ingress:
|
# ingress:
|
||||||
enabled: true
|
# enabled: true
|
||||||
hosts:
|
# hosts:
|
||||||
- host: git.dubyatp.xyz
|
# - host: git.dubyatp.xyz
|
||||||
paths:
|
# paths:
|
||||||
- path: /
|
# - path: /
|
||||||
tls:
|
# tls:
|
||||||
- secretName: cert-dubyatp-xyz
|
# - secretName: cert-dubyatp-xyz
|
||||||
hosts:
|
# hosts:
|
||||||
- git.dubyatp.xyz
|
# - git.dubyatp.xyz
|
||||||
|
gateway:
|
||||||
|
httpRoute:
|
||||||
|
enabled: true
|
||||||
|
hostnames:
|
||||||
|
- git.dubyatp.xyz
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
pathType: PathPrefix
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
create: true
|
create: true
|
||||||
@@ -105,16 +117,24 @@ gitea:
|
|||||||
services:
|
services:
|
||||||
- name: gitea-ssh
|
- name: gitea-ssh
|
||||||
port: 22
|
port: 22
|
||||||
- apiVersion: v1
|
- apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: Secret
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
name: cert-dubyatp-xyz
|
name: traefik
|
||||||
annotations:
|
spec:
|
||||||
replicator.v1.mittwald.de/replicate-from: "cert-manager/cert-dubyatp-xyz"
|
gatewayClassName: traefik
|
||||||
replicator.v1.mittwald.de/replicated-keys: "tls.crt,tls.key"
|
listeners:
|
||||||
data:
|
- name: https
|
||||||
tls.crt: ""
|
protocol: HTTPS
|
||||||
tls.key: ""
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
- apiVersion: external-secrets.io/v1
|
- apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user