2022-12-27:etcd是无界面的,不好看,joinsunsoft/etcdv3-browser是etcd的web可视化工具之一。请问在k3s中部署,yaml如何写?
答案2022-12-27:
用户名: ginghan
密码::123456
连接etcd只能是外部ip 端口,也就是说只能通过nodeport连接。
yaml如下:
apiversion: apps/v1
kind: deployment
metadata:
labels:
app: etcdv3-browser
name: etcdv3-browser
namespace: moonfdd
spec:
replicas: 1
selector:
matchlabels:
app: etcdv3-browser
template:
metadata:
labels:
app: etcdv3-browser
spec:
containers:
- image: joinsunsoft/etcdv3-browser
imagepullpolicy: ifnotpresent
name: etcdv3-browser
---
apiversion: v1
kind: service
metadata:
labels:
app: etcdv3-browser
name: etcdv3-browser
namespace: moonfdd
spec:
ports:
- port: 80
protocol: tcp
targetport: 80
selector:
app: etcdv3-browser
type: nodeport