The role now manages Gitea's robots.txt. It had none before (/robots.txt returned 404).
Why: on 2026-11-18, crawlers drove Gitea to about 10,000 requests in 10 minutes, almost all of them blame, commit, history and raw pages on DevOps/truecharts and Gaming/ashlar. ClaudeBot sent about 5,000 of them; Reflectionbot and a lot of generic Chrome user agents sent most of the rest. That saturated alpha-worker-3 (1 vCPU), where Discourse's database kept getting restarted, so Discourse was down. The companion fix is in DevOps/ansible-role-eom.
What changes:
files/robots.txt:
Crawlers can still read repository front pages, files, issues and releases.
It asks them to skip blame, per-commit pages, history, raw and media, archives, compare, search, feeds, /api/ and /user/.
It sets Crawl-delay: 10.
It blocks the DevOps/truecharts mirror entirely.
tasks/gitea.yaml:
A gitea-robots ConfigMap, mounted through the chart's extraVolumes and extraContainerVolumeMounts at /data/gitea/public/robots.txt. Gitea serves $GITEA_CUSTOM/public/robots.txt.
A kubectl rollout restart when the file changes, because a subPath mount doesn't follow ConfigMap edits.
defaults/main.yml:gitea_robots_txt lets you point at your own file.
Live state: the same file is already being served. With Eric's approval it was copied onto Gitea's data volume. When the role runs, the mount covers that copy, and Gitea restarts once (a few seconds of downtime).
Checked: I confirmed against chart 12.7.0's templates that extraContainerVolumeMounts reaches the main container. I didn't run a full helm template, because helm isn't installed on tower-plus or r350.
The role now manages Gitea's `robots.txt`. It had none before (`/robots.txt` returned 404).
**Why:** on 2026-11-18, crawlers drove Gitea to about 10,000 requests in 10 minutes, almost all of them blame, commit, history and raw pages on `DevOps/truecharts` and `Gaming/ashlar`. ClaudeBot sent about 5,000 of them; Reflectionbot and a lot of generic Chrome user agents sent most of the rest. That saturated `alpha-worker-3` (1 vCPU), where Discourse's database kept getting restarted, so Discourse was down. The companion fix is in DevOps/ansible-role-eom.
**What changes:**
- **`files/robots.txt`:**
- Crawlers can still read repository front pages, files, issues and releases.
- It asks them to skip blame, per-commit pages, history, raw and media, archives, compare, search, feeds, `/api/` and `/user/`.
- It sets `Crawl-delay: 10`.
- It blocks the `DevOps/truecharts` mirror entirely.
- **`tasks/gitea.yaml`:**
- A `gitea-robots` ConfigMap, mounted through the chart's `extraVolumes` and `extraContainerVolumeMounts` at `/data/gitea/public/robots.txt`. Gitea serves `$GITEA_CUSTOM/public/robots.txt`.
- A `kubectl rollout restart` when the file changes, because a subPath mount doesn't follow ConfigMap edits.
- **`defaults/main.yml`:** `gitea_robots_txt` lets you point at your own file.
**Live state:** the same file is already being served. With Eric's approval it was copied onto Gitea's data volume. When the role runs, the mount covers that copy, and Gitea restarts once (a few seconds of downtime).
**Checked:** I confirmed against chart 12.7.0's templates that `extraContainerVolumeMounts` reaches the main container. I didn't run a full `helm template`, because helm isn't installed on tower-plus or r350.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Crawlers (ClaudeBot about 5,000 requests in 10 minutes, plus others) walked blame, commit and history pages and overloaded alpha-worker-3, where Discourse's database kept restarting on 2026-11-18. The role now manages robots.txt as a ConfigMap mounted at /data/gitea/public/robots.txt (gitea_robots_txt), and restarts Gitea when it changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The role now manages Gitea's
robots.txt. It had none before (/robots.txtreturned 404).Why: on 2026-11-18, crawlers drove Gitea to about 10,000 requests in 10 minutes, almost all of them blame, commit, history and raw pages on
DevOps/truechartsandGaming/ashlar. ClaudeBot sent about 5,000 of them; Reflectionbot and a lot of generic Chrome user agents sent most of the rest. That saturatedalpha-worker-3(1 vCPU), where Discourse's database kept getting restarted, so Discourse was down. The companion fix is in DevOps/ansible-role-eom.What changes:
files/robots.txt:/api/and/user/.Crawl-delay: 10.DevOps/truechartsmirror entirely.tasks/gitea.yaml:gitea-robotsConfigMap, mounted through the chart'sextraVolumesandextraContainerVolumeMountsat/data/gitea/public/robots.txt. Gitea serves$GITEA_CUSTOM/public/robots.txt.kubectl rollout restartwhen the file changes, because a subPath mount doesn't follow ConfigMap edits.defaults/main.yml:gitea_robots_txtlets you point at your own file.Live state: the same file is already being served. With Eric's approval it was copied onto Gitea's data volume. When the role runs, the mount covers that copy, and Gitea restarts once (a few seconds of downtime).
Checked: I confirmed against chart 12.7.0's templates that
extraContainerVolumeMountsreaches the main container. I didn't run a fullhelm template, because helm isn't installed on tower-plus or r350.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.