Testing ADO/Serverless functions locally
@mayra-cabrera and I both went through the same set up to test serverless functions on GDK.
- Set up GDK to be accessible online (https://gitlab.com/gitlab-org/gitlab-development-kit/blob/master/doc/howto/auto_devops.md)
- Import project with serverless/gitlab-ci.yml config (https://staging.gitlab.com/danielgruesso/serverless)
- Create k8s cluster with RBAC-enabled
- Install Helm, Ingress, Runner, and Knative
- Add wildcard DNS by editing
etc/hosts
(https://gitlab.slack.com/archives/CB07X8AQ3/p1543994996080300?thread_ts=1543960682.069100&cid=CB07X8AQ3) - Run pipeline
- Encounter failure:
Deployment started. Run “tm -n serverless-21 describe service functions-echo” to see the details
> Waiting for ready state...2018/12/20 23:54:00 Revision “functions-echo-00001" failed with message: “build step \“build-step-build-and-push\” exited with code 1 (image: \“docker-pullable://gcr.io/kaniko-project/executor@sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870\“); for logs run: kubectl -n serverless-21 logs functions-echo-00001-c2vqg -c build-step-build-and-push”.
> ERROR: Job failed: command terminated with exit code 1
Without the deploy finishing, we cannot test functions locally. We need to determine how to overcome this error.