Files
Yassin Raman 33dc805570 Deployment: refactoring (#241)
Co-authored-by: Yassin Raman <yassin@gmail.co>
Co-authored-by: yasram1 <yasram1@github.com>
2021-07-28 17:31:18 +01:00

19 lines
879 B
Bash

#!/bin/bash
echo "************************************************************"
echo "****************** Installing dependencies *****************"
git clone https://github.com/obsidiandynamics/kafdrop && cd kafdrop
helm upgrade -i kafdrop chart --set image.tag=3.27.0 \
--set kafka.brokerConnect=kafka-0.kafka-headless.siembol.svc.cluster.local:9092 \
--set server.servlet.contextPath="/" \
--set jvm.opts="-Xms32M -Xmx64M" --namespace=siembol
kubectl run kafka-client --restart='Never' --image docker.io/bitnami/kafka:2.8.0-debian-10-r43 --namespace siembol --command -- sleep infinity
NODE_PORT=$(kubectl get --namespace siembol -o jsonpath="{.spec.ports[0].nodePort}" services kafdrop)
NODE_IP=$(kubectl get nodes --namespace siembol -o jsonpath="{.items[0].status.addresses[0].address}")
echo "************************************************************"