ingress-nginx: Remove the controller configuration.
ingress-nginx has been replaced by Traefik. Keep the nginx IngressClass,
which Traefik's ingress-nginx compat provider selects on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: Ib1ecb2fb10a081823ed8db842bfce76447b06ae4
diff --git a/ingress-nginx/config.yaml b/ingress-nginx/config.yaml
deleted file mode 100644
index dac9a94..0000000
--- a/ingress-nginx/config.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-apiVersion: v1
-kind: ConfigMap
-
-metadata:
- labels:
- app.kubernetes.io/component: controller
- app.kubernetes.io/instance: ingress-nginx
- app.kubernetes.io/managed-by: Helm
- app.kubernetes.io/name: ingress-nginx
- app.kubernetes.io/version: 0.48.1
- helm.sh/chart: ingress-nginx-3.35.0
-
- name: ingress-nginx-controller
- namespace: ingress-nginx
-
-data:
- proxy-buffer-size: "64k"
-
- # The controller template already emits limit_req_status; setting it again
- # in http-snippet makes every reload fail with a duplicate-directive error.
- limit-req-status-code: "429"
-
- # Rate-limit crawlers per bot family (not per IP, since they rotate IPs).
- # Requests with an empty $bot_key (i.e., everyone else) are not limited.
- http-snippet: |
- map $http_user_agent $bot_key {
- default "";
- ~*GPTBot gptbot;
- ~*ClaudeBot claudebot;
- ~*meta-externalagent meta;
- ~*Amazonbot amazonbot;
- ~*Bytespider bytespider;
- ~*PerplexityBot perplexity;
- ~*CCBot ccbot;
- ~*SemrushBot semrush;
- ~*AhrefsBot ahrefs;
- ~*PetalBot petal;
- ~*(DataForSeoBot|MJ12bot|DotBot|Reflect) seo-misc;
- }
- limit_req_zone $bot_key zone=bots:10m rate=10r/m;
- # Global cap per host, for vhosts that opt in with a configuration-snippet.
- # Used for cgit: a botnet with thousands of rotating IPs and browser user
- # agents crawls it, so neither per-IP nor per-bot limits help.
- limit_req_zone $host zone=perhost:1m rate=5r/s;
- server-snippet: |
- limit_req zone=bots burst=20 nodelay;
-
diff --git a/traefik/ingressclass.yaml b/traefik/ingressclass.yaml
new file mode 100644
index 0000000..aa7caa7
--- /dev/null
+++ b/traefik/ingressclass.yaml
@@ -0,0 +1,8 @@
+apiVersion: networking.k8s.io/v1
+kind: IngressClass
+metadata:
+ name: nginx
+ annotations:
+ ingressclass.kubernetes.io/is-default-class: "true"
+spec:
+ controller: k8s.io/ingress-nginx