Files
k3s/009-基础设施/008-portainer/portainer-server.yaml
2026-02-05 00:11:05 +08:00

17 lines
506 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
apiVersion: apps/v1
kind: Deployment
metadata:
name: portainer
namespace: portainer
spec:
template:
spec:
containers:
- name: portainer
env:
- name: CONTROLLER_DISABLE_CSRF
value: "true"
# 说明:禁用 CSRF 校验是因为 Portainer 新版本对 CSRF 校验非常严格
# 当使用域名访问时(如 portainer.u6.net3w.com需要禁用此校验
# 如果需要重新启用,将此值改为 "false" 或删除此环境变量