Requirements: GCloud Kubernetes Engine cluster, kubectl
This needs to be done once when downloaded your repository.
- Upload Service account credentials:
./secrets/create_secret_keyfile.sh
cp /secrets.credentials.yml.template /secrets/credentials.yml
- Update
/secrets/credentials.yml
with user and password to access your Google Cloud managed Postgres DB (see ../cloudsql to create tables and obtain user/password). cp /secrets/twsecret.yml.template /secrets/twsecret.yml
- Update
/secrets/twsecret.yml
with your Twitter application access token, secret, etc. You can access your Twitter apps here. Your group may have an application already created, ask your lab mates or advisor first.
Deploy all components to Kubernetes.
- Deploy secrets to cluster:
kubectl create -f secrets/
- Deploy Kafka cluster:
kubectl create -f kafka/
- Deploy twitter stream:
kubectl create -f twitter-stream/
- Deploy dashboard services:
kubectl create -f api/
- Configure access inside of cluster:
kubectl create -f auth.yaml
- Create Kubernetes ingress:
kubectl create -f ingress.yaml
and SSL certificatekubectl create -f cert.yaml
kubectl proxy
- Open browser to http://localhost:8001/api/v1/namespaces/default/services/kafka-manager:http/proxy/