Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: zookeeper-webui
spec:
replicas: 1
selector:
matchLabels:
name: zookeeper-webui
template:
metadata:
labels:
name: zookeeper-webui
spec:
containers:
- name: zookeeper-webui
image: tobilg/zookeeper-webui
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
env:
- name: ZK_DEFAULT_NODE
value: "zk-cs:2181"
- name: USER
value: "admin"
- name: PASSWORD
value: "123456"
svc
kind: Service
apiVersion: v1
metadata:
name: zookeeper-webui
spec:
type: NodePort
ports:
- name: zookeeper-webui
port: 8080
nodePort: 30083
targetPort: 8080
protocol: TCP
selector:
name: zookeeper-webui