-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress-create.sh
26 lines (25 loc) · 1.04 KB
/
ingress-create.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm upgrade kafka-ingress ingress-nginx/ingress-nginx \
--version 4.7.0 \
--atomic \
--namespace kafka \
--set controller.ingressClassResource.name=kafka \
--set controller.scope.namespace=kafka \
--set controller.scope.enabled=true \
--set controller.ingressClass=nginx \
--set tcp.940=kafka/kafka-service:940 \
--set tcp.941=kafka/kafka-service:941 \
--set tcp.942=kafka/kafka-service:942 \
--set rbac.create=true \
--set-string controller.config.server-tokens=false \
--set-string controller.config.use-forwarded-headers=true \
--set controller.kind=Deployment \
--set controller.resources.limits.memory=2G \
--set controller.resources.limits.cpu=1 \
--set controller.resources.requests.memory=1M \
--set controller.resources.requests.cpu=.01 \
--set controller.config.hide-headers=Server
sleep 10
export INGRESS_IP=$(kubectl --namespace kafka get services -o json kafka-ingress-ingress-nginx-controller | jq -r '.status.loadBalancer.ingress[0].ip')
echo $INGRESS_IP