mirror of
https://github.com/devitq/homelab.git
synced 2026-11-20 23:07:39 +00:00
init(): initial commit
This commit is contained in:
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
|
||||
@@ -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.internal.itqdev.xyz"
|
||||
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: argocd-server
|
||||
port: 80
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: argocd-tls
|
||||
namespace: gateway-system
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: infisical
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: argocd-tls
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
type: kubernetes.io/tls
|
||||
data:
|
||||
- secretKey: tls.crt
|
||||
remoteRef:
|
||||
key: /gateway/ARGOCD_TLS_CERT
|
||||
- secretKey: tls.key
|
||||
remoteRef:
|
||||
key: /gateway/ARGOCD_TLS_KEY
|
||||
@@ -0,0 +1,23 @@
|
||||
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.internal.itqdev.xyz"
|
||||
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: grafana
|
||||
port: 80
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: grafana-tls
|
||||
namespace: gateway-system
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: infisical
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: grafana-tls
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
type: kubernetes.io/tls
|
||||
data:
|
||||
- secretKey: tls.crt
|
||||
remoteRef:
|
||||
key: /gateway/GRAFANA_TLS_CERT
|
||||
- secretKey: tls.key
|
||||
remoteRef:
|
||||
key: /gateway/GRAFANA_TLS_KEY
|
||||
@@ -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.internal.itqdev.xyz"
|
||||
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: headlamp
|
||||
port: 80
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: headlamp-tls
|
||||
namespace: gateway-system
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: infisical
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: headlamp-tls
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
type: kubernetes.io/tls
|
||||
data:
|
||||
- secretKey: tls.crt
|
||||
remoteRef:
|
||||
key: /gateway/HEADLAMP_TLS_CERT
|
||||
- secretKey: tls.key
|
||||
remoteRef:
|
||||
key: /gateway/HEADLAMP_TLS_KEY
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: jellyfin
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: shared-gateway
|
||||
namespace: gateway-system
|
||||
sectionName: jellyfin-https
|
||||
|
||||
hostnames:
|
||||
- "jellyfin.itqdev.xyz"
|
||||
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: jellyfin
|
||||
port: 8096
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: jellyfin-cert
|
||||
namespace: gateway-system
|
||||
spec:
|
||||
secretName: jellyfin-tls
|
||||
issuerRef:
|
||||
name: infisical
|
||||
kind: ClusterIssuer
|
||||
group: infisical-issuer.infisical.com
|
||||
duration: 720h
|
||||
renewBefore: 240h
|
||||
dnsNames:
|
||||
- jellyfin.itqdev.xyz
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: movienight-cert
|
||||
namespace: movienight
|
||||
spec:
|
||||
secretName: movienight-tls
|
||||
issuerRef:
|
||||
name: infisical
|
||||
kind: ClusterIssuer
|
||||
group: infisical-issuer.infisical.com
|
||||
duration: 720h
|
||||
renewBefore: 240h
|
||||
dnsNames:
|
||||
- movienight.itqdev.xyz
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: vdeniske-cert
|
||||
namespace: vdeniske
|
||||
spec:
|
||||
secretName: vdeniske-tls
|
||||
issuerRef:
|
||||
name: infisical
|
||||
kind: ClusterIssuer
|
||||
group: infisical-issuer.infisical.com
|
||||
duration: 720h
|
||||
renewBefore: 240h
|
||||
dnsNames:
|
||||
- vdeniske.itqdev.xyz
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: TLSRoute
|
||||
metadata:
|
||||
name: wazuh
|
||||
namespace: wazuh
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: shared-gateway
|
||||
namespace: gateway-system
|
||||
sectionName: wazuh-tls
|
||||
hostnames:
|
||||
- wazuh.internal.itqdev.xyz
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: dashboard
|
||||
port: 443
|
||||
@@ -0,0 +1,83 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: shared-gateway
|
||||
namespace: gateway-system
|
||||
spec:
|
||||
infrastructure:
|
||||
annotations:
|
||||
lbipam.cilium.io/ips: 10.13.46.1
|
||||
gatewayClassName: cilium
|
||||
listeners:
|
||||
- name: http-redirect
|
||||
port: 80
|
||||
protocol: HTTP
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
|
||||
- name: headlamp-https
|
||||
port: 443
|
||||
protocol: HTTPS
|
||||
hostname: k8s.internal.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.internal.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.internal.itqdev.xyz
|
||||
tls:
|
||||
mode: Terminate
|
||||
certificateRefs:
|
||||
- kind: Secret
|
||||
group: ""
|
||||
name: grafana-tls
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
|
||||
- name: jellyfin-https
|
||||
port: 443
|
||||
protocol: HTTPS
|
||||
hostname: jellyfin.itqdev.xyz
|
||||
tls:
|
||||
mode: Terminate
|
||||
certificateRefs:
|
||||
- kind: Secret
|
||||
group: ""
|
||||
name: jellyfin-tls
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
|
||||
- name: wazuh-tls
|
||||
port: 443
|
||||
protocol: TLS
|
||||
hostname: wazuh.internal.itqdev.xyz
|
||||
tls:
|
||||
mode: Passthrough
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
Reference in new issue
Block a user