kubeless/deploy/kubeless_kafka_setup.sh
2019-04-03 23:45:54 +02:00

6 lines
317 B
Bash

#!/bin/bash
kubectl create -f kafka_pv.yml
kubectl create -f zoo_pv.yml
export RELEASE=$(curl -s https://api.github.com/repos/kubeless/kafka-trigger/releases/latest | grep tag_name | cut -d '"' -f 4)
kubectl create -f https://github.com/kubeless/kafka-trigger/releases/download/$RELEASE/kafka-zookeeper-$RELEASE.yaml