add ingress-nginx app

This commit is contained in:
2024-06-11 02:30:17 +10:00
parent 47c1068cdb
commit 2b11a2eec7
7 changed files with 198 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: tcp-services
namespace: ingress-nginx
data:
53: "adguard-home/adguard-home:53"
853: "adguard-home/adguard-home:853"
5443: "adguard-home/adguard-home:5443"
6060: "adguard-home/adguard-home:6060"
10080: "adguard-home/adguard-home:80"
10443: "adguard-home/adguard-home:443"
13000: "adguard-home/adguard-home::3000"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: udp-services
namespace: ingress-nginx
data:
53: "adguard-home/adguard-home:53"
67: "adguard-home/adguard-home:67"
68: "adguard-home/adguard-home:68"
853: "adguard-home/adguard-home:853"
5443: "adguard-home/adguard-home:5443"
10443: "adguard-home/adguard-home:443"
13000: "adguard-home/adguard-home:3000"

View File

@@ -0,0 +1,48 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: ingress-nginx-config
namespace: ingress-nginx
spec:
interval: 1h
targetNamespace: ingress-nginx
path: ./kubernetes/infrastructure/ingress-nginx/config
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: ingress-nginx
namespace: ingress-nginx
spec:
interval: 1h
targetNamespace: ingress-nginx
path: ./kubernetes/templates/apps/ingress-nginx
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: ingress-nginx-config
postBuild:
substituteFrom:
- kind: Secret
name: app-vars
- kind: ConfigMap
name: ingress-nginx-values
patches:
- target:
kind: Deployment
name: ingress-nginx-controller
patch: |
- op: add
path: /spec/template/spec/containers/0/args/-
value: --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
- op: add
path: /spec/template/spec/containers/0/args/-
value: --udp-services-configmap=$(POD_NAMESPACE)/udp-services

View File

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

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ingress-nginx-values
namespace: ingress-nginx
data:
load_balancer_ip: "192.168.0.180"
use_geoip2: "false"
metrics_enabled: "true"