文件
k3s/core/nginx/helmchart.yaml
T
2024-04-18 19:12:26 +08:00

50 行
1.4 KiB
YAML

apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: ingress-nginx
namespace: infra-net
spec:
repo: https://kubernetes.github.io/ingress-nginx
chart: ingress-nginx
version: 4.10.0
targetNamespace: infra-net
valuesContent: |-
fullnameOverride: ingress-nginx
controller:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: svccontroller.k3s.cattle.io/enablelb
operator: In
values:
- "true"
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
kind: DaemonSet
hostNetwork: true
dnsPolicy: None
dnsConfig:
nameservers:
- 169.254.20.10
- 10.43.0.10
hostNetwork: true
hostPort:
enabled: true
service:
enabled: false
publishService:
enabled: false
extraArgs:
default-ssl-certificate: "infra-net/dev-cm-crt"
config:
use-forwarded-headers: "true"
allow-snippet-annotations: "true"
http-snippet: |
proxy_cache_path /tmp/nginx-cache levels=1:2 keys_zone=cache:2m max_size=100m inactive=7d use_temp_path=off;
proxy_cache_key $scheme$proxy_host$request_uri;
proxy_cache_lock on;
proxy_cache_use_stale updating;