Skip to content

Instantly share code, notes, and snippets.

@jpswade
Created April 24, 2018 14:53
Show Gist options
  • Save jpswade/139b7f9eb240b592c0236bdf25047df3 to your computer and use it in GitHub Desktop.
Save jpswade/139b7f9eb240b592c0236bdf25047df3 to your computer and use it in GitHub Desktop.
Setup Zalenium
#!/usr/bin/env bash
# @see https://github.com/zalando/zalenium/tree/master/docs/k8s/helm
# @todo helm install local/zalenium - @see https://github.com/kubernetes/helm/issues/3873
# @see https://zalando.github.io/zalenium/#kubernetes
set -e
docker pull elgalu/selenium
docker pull dosel/zalenium
[[ -d zalenium ]] || git clone git@github.com:zalando/zalenium.git
cd zalenium
kubectl create -f kubernetes/ || kubectl apply -f kubernetes/
kubectl set image \
deployments \
--selector app=zalenium \
zalenium=dosel/zalenium:latest
kubectl get pods --all-namespaces -l app=zalenium
POD_NAME=$(kubectl get pods -l app=zalenium -o jsonpath={.items[0].metadata.name})
kubectl describe deploy zalenium
kubectl describe pod ${POD_NAME}
kubectl rollout status deployments zalenium
#EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment