Whiplash API Server needs the cluster configuration details as a configMap
NOTE: Create your own user config, just make sure it has rights to the namespace: whiplash
kubectl -n whiplash create cm whiplash-cluster-config --from-file=cluster.yaml=.kube/configThe SSH key used by the tunnel client is referenced by 'ssh-master' secret in whiplash namespace
kubectl -n whiplash create secret generic ssh-master --from-file=id_rsa=<YOUR ID KEY FILE>Finally, apply the deployment of Whiplash
kubectl apply -f operator/whiplash-operator.yamlCheck the pods are running:
kubectl get pods -n whiplashNAME READY STATUS RESTARTS AGE
whiplash-674dd54bbb-kl8g7 2/2 Running 0 11mWhen you add a tunnel, Whiplash creates a tiny Pod with one container from "image": "nowsci/sshtunnel"
npm installTo build to dashboard web directory you must have Ionic CLI installed;
npm install -g @ionic/cliBuild the web directory
ionic build web --prodBuild the Whiplash Dashboard docker image:
docker buildx build --platform=linux/amd64 -t jadsy2107/whiplash .Build the Whiplash API Server docker image
cd server/
docker buildx build --platform=linux/amd64 -t jadsy2107/whiplash-server .