部署参考:https://github.com/redpanda-data/console/blob/master/docs/installation.md
添加chart
1
2
3
4
|
helm repo add redpanda 'https://charts.redpanda.com/'
helm repo update
helm pull redpanda/console --untar
|
编辑kafka.yaml
kafka.yaml由values.yaml复制而来,并修改一些配置
修改service
1
2
3
4
5
6
7
8
|
#将service处修改为以下内容
service:
type: NodePort
port: 8080
nodePort: 30320
# -- Override the value in `console.config.server.listenPort` if not `nil`
targetPort:
annotations: {}
|
添加kafka的配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#将console处修改为以下内容
console:
# -- Settings for the `Config.yaml` (required).
# For a reference of configuration settings,
# see the [Redpanda Console documentation](https://docs.redpanda.com/docs/reference/console/config/).
config:
kafka:
brokers:
- kafka-0.kafka.default.svc.cluster.local:9092
- kafka-1.kafka.default.svc.cluster.local:9092
- kafka-2.kafka.default.svc.cluster.local:9092
clientId: 13-kafka
# roles:
# roleBindings:
|
部署
1
|
helm upgrade --install kafka-console -f kafka.yaml
|