fix(ingress): restructure nginx

Signed-off-by: JJGadgets <git@jjgadgets.tech>
This commit is contained in:
JJGadgets
2023-02-26 19:53:36 +08:00
parent 7cc175d9d5
commit 0b8b182d0c
3 changed files with 1 additions and 58 deletions

View File

@@ -1,57 +0,0 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: ingress-nginx-ext
namespace: ingress
spec:
chart:
spec:
chart: ingress-nginx
version: 4.4.2
sourceRef:
name: ingress-nginx
values:
tcp:
"42080": ingress/ingress-nginx-controller:20080::PROXY
"42443": ingress/ingress-nginx-controller:20443::PROXY
controller:
kind: DaemonSet
extraEnvs:
- name: TZ
value: Asia/Singapore
service:
type: NodePort
externalTrafficPolicy: Local
ports:
http: 80
https: 443
targetPorts:
http: 42080
https: 42443
nodePorts:
http: 80
https: 443
containerPort:
internalhttp: 42080
internalhttps: 42443
publishService:
enabled: true
ingressClassByName: false
ingressClassResource:
enabled: false
config:
disable-access-log: "true"
nodeSelector:
node-restriction.kubernetes.io/nodeType: awsIngress
tolerations:
- key: nodeType.jj
operator: Equal
value: awsIngress
effect: NoSchedule
resources:
requests:
cpu: 10m
memory: 250Mi
limits:
memory: 500Mi

View File

@@ -4,5 +4,5 @@ kind: Kustomization
resources:
- 1-namespace.yaml
- 2-certs.yaml
- 3-nginx.yaml
# - 3-nginx.yaml
# - 4-nginx-external.yaml