init(): initial commit

This commit is contained in:
ITQ committed 2026-10-23 10:28:31 +03:00
commit 0cce6461db
216 files changed
+36511

No files matched your search

@@ -0,0 +1,22 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: global-http-redirect
namespace: gateway-system
spec:
parentRefs:
- name: shared-gateway
namespace: gateway-system
sectionName: http-redirect
rules:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
port: 443
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: gateway-system
@@ -0,0 +1,22 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argocd
namespace: argocd
spec:
parentRefs:
- name: shared-gateway
namespace: gateway-system
sectionName: argocd-https
hostnames:
- "argocd.yc.infra.itqdev.xyz"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: argocd-server
port: 80
@@ -0,0 +1,12 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: argocd-cert
namespace: gateway-system
spec:
secretName: argocd-tls
issuerRef:
name: letsencrypt-dns
kind: ClusterIssuer
dnsNames:
- argocd.yc.infra.itqdev.xyz
@@ -0,0 +1,22 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: grafana
namespace: grafana
spec:
parentRefs:
- name: shared-gateway
namespace: gateway-system
sectionName: grafana-https
hostnames:
- grafana.yc.infra.itqdev.xyz
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: grafana
port: 80
@@ -0,0 +1,12 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: grafana-cert
namespace: gateway-system
spec:
secretName: grafana-tls
issuerRef:
name: letsencrypt-dns
kind: ClusterIssuer
dnsNames:
- grafana.yc.infra.itqdev.xyz
@@ -0,0 +1,22 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: headlamp
namespace: headlamp
spec:
parentRefs:
- name: shared-gateway
namespace: gateway-system
sectionName: headlamp-https
hostnames:
- "k8s.yc.infra.itqdev.xyz"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: headlamp
port: 80
@@ -0,0 +1,12 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: headlamp-cert
namespace: gateway-system
spec:
secretName: headlamp-tls
issuerRef:
name: letsencrypt-dns
kind: ClusterIssuer
dnsNames:
- k8s.yc.infra.itqdev.xyz
@@ -0,0 +1,16 @@
apiVersion: gateway.networking.k8s.io/v1
kind: TLSRoute
metadata:
name: karmada-api
namespace: karmada-system
spec:
parentRefs:
- name: shared-gateway
namespace: gateway-system
sectionName: karmada-tls
hostnames:
- karmada.yc.infra.itqdev.xyz
rules:
- backendRefs:
- name: karmada-apiserver
port: 5443
@@ -0,0 +1,66 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: shared-gateway
namespace: gateway-system
spec:
gatewayClassName: cilium
listeners:
- name: http-redirect
port: 80
protocol: HTTP
allowedRoutes:
namespaces:
from: All
- name: headlamp-https
port: 443
protocol: HTTPS
hostname: k8s.yc.infra.itqdev.xyz
tls:
mode: Terminate
certificateRefs:
- kind: Secret
group: ""
name: headlamp-tls
allowedRoutes:
namespaces:
from: All
- name: argocd-https
port: 443
protocol: HTTPS
hostname: argocd.yc.infra.itqdev.xyz
tls:
mode: Terminate
certificateRefs:
- kind: Secret
group: ""
name: argocd-tls
allowedRoutes:
namespaces:
from: All
- name: grafana-https
port: 443
protocol: HTTPS
hostname: grafana.yc.infra.itqdev.xyz
tls:
mode: Terminate
certificateRefs:
- kind: Secret
group: ""
name: grafana-tls
allowedRoutes:
namespaces:
from: All
- name: karmada-tls
port: 443
protocol: TLS
hostname: karmada.yc.infra.itqdev.xyz
tls:
mode: Passthrough
allowedRoutes:
namespaces:
from: All