Add nginx release to flux
This commit is contained in:
13
cluster/infra.yaml
Normal file
13
cluster/infra.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: infra
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m0s
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
path: ./infra
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
4
infra/kustomization.yaml
Normal file
4
infra/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- nginx.yaml
|
||||||
56
infra/nginx.yaml
Normal file
56
infra/nginx.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user