Etcd-adminer:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
无编辑摘要 |
(→相關連結) |
||
(未显示同一用户的1个中间版本) | |||
第43行: | 第43行: | ||
sudo docker compose up -d | sudo docker compose up -d | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== 注意事項 == | |||
etcd-adminer沒有登入機制,這邊可以搭配[[oauth2-proxy]]或是類似的工具綁定公司的SSO使用。 | |||
== 相關連結 == | == 相關連結 == | ||
* [[etcd]] | * [[etcd]] | ||
* [[oauth2-proxy]] | |||
== 參考資料 == | == 參考資料 == |
2023年10月24日 (二) 16:50的最新版本
etcd-adminer是一套etcd的网页管理工具。
安装与设定
这边的方式是用Docker Compose跑起来,先设定/srv/etcd-adminer.example.com/docker-compose.yml
,其中里面可以看到对外开Port 8081使用:
version: '3.2'
services:
etcd-adminer:
image: srimaln91/etcd-adminer:latest
container_name: etcd-adminer
hostname: etcd-adminer
ports:
- 8081:8080
restart: unless-stopped
volumes:
- /srv/etcd-adminer.example.com/config.yaml:/app/config.yaml
接着设定/srv/etcd-adminer.example.com/config.yaml
,这边是直接指定了etcd所有的机器,这边的设定值可以参考config.go[1]的程式码:
http:
port: 8080
logger:
level: "DEBUG"
etcd:
- name: "example-etcd"
endpoints:
- "10.1.2.1:2379"
- "10.1.2.2:2379"
- "10.1.2.3:2379"
superadmin:
username: "root"
password: "password"
后续就是标准的Docker Compose操作了:
sudo docker compose up -d
注意事项
etcd-adminer没有登入机制,这边可以搭配oauth2-proxy或是类似的工具绑定公司的SSO使用。
相关连结
参考资料
- ↑ etcd-adminer/config/confg.go at main · srimaln91/etcd-adminer. [2023-10-25].
外部链接
- 官方网站 (英文)