Add nginx release to flux

This commit is contained in:
2025-02-11 23:26:08 +01:00
parent 4228c31a54
commit 2073ec0bc8
3 changed files with 73 additions and 0 deletions

4
infra/kustomization.yaml Normal file
View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- nginx.yaml

56
infra/nginx.yaml Normal file
View File

@@ -0,0 +1,56 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: nginx-ingress-controller
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: nginx
namespace: nginx-ingress-controller
spec:
interval: 24h
url: https://helm.nginx.com/stable
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: nginx-ingress
namespace: nginx-ingress-controller
spec:
interval: 30m
chart:
spec:
chart: nginx-ingress
version: 2.0.1
sourceRef:
kind: HelmRepository
name: nginx
namespace: nginx-ingress-controller
interval: 12h
values:
controller:
resources:
requests:
cpu: 0
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
ingressClass:
create: true
setAsDefaultIngress: true
service:
create: true
type: LoadBalancer
# Requirement for sharing ip with other service
externalTrafficPolicy: Cluster
ipFamilyPolicy: RequireDualStack
annotations:
# Share IP with gitea ssh so we can have the same domain for both port
lbipam.cilium.io/sharing-key: gitea
lbipam.cilium.io/sharing-cross-namespace: gitea
lbipam.cilium.io/ips: 10.44.0.0,2001:470:61a3:400::1