Skip to content

Commit 618d162

Browse files
committed
Add ingress-nginx
1 parent 1b8a785 commit 618d162

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

infra/argo-apps/ingress-nginx.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: ingress-nginx
5+
namespace: argocd
6+
spec:
7+
project: infra
8+
sources:
9+
- chart: ingress-nginx
10+
helm:
11+
valueFiles:
12+
- $myRepo/infra/ingress-nginx/values.yaml
13+
repoURL: https://kubernetes.github.io/ingress-nginx
14+
targetRevision: 4.13.0
15+
- repoURL: https://github.com/code4romania/code4ro-k8s.git
16+
targetRevision: HEAD
17+
ref: myRepo
18+
destination:
19+
namespace: ingress-nginx
20+
server: https://kubernetes.default.svc
21+
syncPolicy:
22+
syncOptions:
23+
- CreateNamespace=true

infra/ingress-nginx/values.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
controller:
2+
kind: DaemonSet
3+
metrics:
4+
enabled: true
5+
serviceMonitor:
6+
additionalLabels:
7+
release: "kube-prometheus-stack"
8+
enabled: true
9+
ingressClassResource:
10+
default: "true"
11+
service:
12+
annotations:
13+
load-balancer.hetzner.cloud/location: nbg1
14+
# NOTE: This is NOT the load balancer created automatically for HA clusters. You need to specify a different name here to create a separate load balancer for ingress Nginx.
15+
load-balancer.hetzner.cloud/name: code4ro-prod-ingress-nginx
16+
17+
# Ensures communication between the load balancer and cluster nodes happens through the private network.
18+
load-balancer.hetzner.cloud/use-private-ip: "true"
19+
20+
# "uses-proxyprotocol" enables the proxy protocol on the load balancer so that the ingress controller and applications can see the real client IP.
21+
load-balancer.hetzner.cloud/uses-proxyprotocol: "true"
22+
load-balancer.hetzner.cloud/http-redirect-https: "true"
23+
24+
# -- Will add custom configuration options to Nginx https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
25+
config:
26+
use-gzip: "true"
27+
enable-real-ip: "true"
28+
disable-access-log: "true"
29+
enable-brotli: "true"

0 commit comments

Comments
 (0)