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