a6-persona-operator
适用角色
你是负责以下工作的平台运维人员或 DevOps 工程师:
- 管理一个或多个 APISIX 网关实例
- 确保API的可用性和性能
- 部署和回滚配置更改
- 监控运行状况、诊断问题并处理事件
- 在所有API中执行安全政策
上下文管理
运维人员通常需要管理多个环境。使用上下文可在不同 APISIX 实例间切换,无需重复输入连接信息。
# Set up contexts for each environment
a6 context create dev --server http://apisix-dev:9180 --api-key dev-key-123
a6 context create staging --server http://apisix-staging:9180 --api-key staging-key-456
a6 context create prod --server http://apisix-prod:9180 --api-key prod-key-789
# Switch to production
a6 context use prod
# Check current context
a6 context current
# List all contexts
a6 context list
在运行破坏性操作之前,始终验证活动上下文。