Running with gitlab-runner 13.3.1 (738bbe5a)
  on docker-auto-scale fa6cab46
section_start:1598602675:prepare_executor
Preparing the "docker+machine" executor
Using Docker executor with image registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.0 ...
Pulling docker image registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.0 ...
Using docker image sha256:8d252815026899ace38e7c55f64c9c3a381376fbecf164bb67872fe234ad5b26 for registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.0 ...
section_end:1598602738:prepare_executor
section_start:1598602738:prepare_script
Preparing environment
Running on runner-fa6cab46-project-4422333-concurrent-0 via runner-fa6cab46-stg-srm-1598602675-d4521004...
section_end:1598602741:prepare_script
section_start:1598602741:get_sources
Getting source from Git repository
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/gitlab-org/monitor/monitor-sandbox/.git/
Created fresh repository.
Checking out 4b506c2e as master...

Skipping Git submodules setup
section_end:1598602743:get_sources
section_start:1598602743:step_script
Executing "step_script" stage of the job script
$ auto-deploy check_kube_domain
$ auto-deploy download_chart
Creating /root/.helm 
Creating /root/.helm/repository 
Creating /root/.helm/repository/cache 
Creating /root/.helm/repository/local 
Creating /root/.helm/plugins 
Creating /root/.helm/starters 
Creating /root/.helm/cache/archive 
Creating /root/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Adding local repo with URL: http://127.0.0.1:8879/charts 
$HELM_HOME has been configured at /root/.helm.
Not installing Tiller due to 'client-only' flag having been set
Download is skipped. The bundled chart in auto-deploy-image will be used.
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
	Get "http://127.0.0.1:8879/charts/index.yaml": dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "stable" chart repository
Update Complete.
Saving 1 charts
Downloading postgresql from repo https://kubernetes-charts.storage.googleapis.com/
Deleting outdated charts
Hang tight while we grab the latest from your chart repositories...
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
	Get "http://127.0.0.1:8879/charts/index.yaml": dial tcp 127.0.0.1:8879: connect: connection refused
...Successfully got an update from the "stable" chart repository
Update Complete.
Saving 1 charts
Downloading postgresql from repo https://kubernetes-charts.storage.googleapis.com/
Deleting outdated charts
$ auto-deploy ensure_namespace
NAME                                   STATUS   AGE
monitor-sandbox-4422333-dast-default   Active   303d
$ auto-deploy initialize_tiller
Checking Tiller...
Tiller is listening on localhost:44134
Client: &version.Version{SemVer:"v2.16.9", GitCommit:"8ad7037828e5a0fca1009dabe290130da6368e39", GitTreeState:"clean"}
[debug] SERVER: "localhost:44134"

Kubernetes: &version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.10-gke.42", GitCommit:"42bef28c2031a74fc68840fce56834ff7ea08518", GitTreeState:"clean", BuildDate:"2020-06-02T16:07:00Z", GoVersion:"go1.12.12b4", Compiler:"gc", Platform:"linux/amd64"}
Server: &version.Version{SemVer:"v2.16.9", GitCommit:"8ad7037828e5a0fca1009dabe290130da6368e39", GitTreeState:"clean"}

$ auto-deploy create_secret
Create secret...
$ auto-deploy deploy
Error: release: "dast-default" not found
Release "dast-default-postgresql" does not exist. Installing it now.
NAME:   dast-default-postgresql
LAST DEPLOYED: Fri Aug 28 08:19:20 2020
NAMESPACE: monitor-sandbox-4422333-dast-default
STATUS: DEPLOYED

RESOURCES:
==> v1/Pod(related)
NAME                       READY  STATUS   RESTARTS  AGE
dast-default-postgresql-0  1/1    Running  0         39s

==> v1/Secret
NAME                     TYPE    DATA  AGE
dast-default-postgresql  Opaque  1     39s

==> v1/Service
NAME                              TYPE       CLUSTER-IP    EXTERNAL-IP  PORT(S)   AGE
dast-default-postgresql           ClusterIP  10.12.11.239  <none>       5432/TCP  39s
dast-default-postgresql-headless  ClusterIP  None          <none>       5432/TCP  39s

==> v1/StatefulSet
NAME                     READY  AGE
dast-default-postgresql  1/1    39s


NOTES:
** Please be patient while the chart is being deployed **

PostgreSQL can be accessed via port 5432 on the following DNS name from within your cluster:

    dast-default-postgresql.monitor-sandbox-4422333-dast-default.svc.cluster.local - Read/Write connection

To get the password for "user" run:

    export POSTGRES_PASSWORD=$(kubectl get secret --namespace monitor-sandbox-4422333-dast-default dast-default-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)

To connect to your database run the following command:

    kubectl run dast-default-postgresql-client --rm --tty -i --restart='Never' --namespace monitor-sandbox-4422333-dast-default --image docker.io/bitnami/postgresql:9.6.16 --env="PGPASSWORD=$POSTGRES_PASSWORD" --command -- psql --host dast-default-postgresql -U user -d dast-default -p 5432



To connect to your database from outside the cluster execute the following commands:

    kubectl port-forward --namespace monitor-sandbox-4422333-dast-default svc/dast-default-postgresql 5432:5432 &
    PGPASSWORD="$POSTGRES_PASSWORD" psql --host 127.0.0.1 -U user -d dast-default -p 5432

WARNING: Rolling tag detected (bitnami/postgresql:9.6.16), please note that it is strongly recommended to avoid using rolling tags in a production environment.
+info https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/

Validating chart version...
Fetching the previously deployed chart version... 
Fetching the deploying chart version... v1.0.0
secret/dast-default-secret replaced
No helm values file found at '.gitlab/auto-deploy-values.yaml'
Deploying new stable release...
Release "dast-default" does not exist. Installing it now.
NAME:   dast-default
LAST DEPLOYED: Fri Aug 28 08:20:00 2020
NAMESPACE: monitor-sandbox-4422333-dast-default
STATUS: DEPLOYED

RESOURCES:
==> v1/Deployment
NAME          READY  UP-TO-DATE  AVAILABLE  AGE
dast-default  1/1    1           1          19s

==> v1/Pod(related)
NAME                          READY  STATUS   RESTARTS  AGE
dast-default-c7f59f8c5-6zzht  1/1    Running  0         19s

==> v1/Service
NAME                      TYPE       CLUSTER-IP   EXTERNAL-IP  PORT(S)   AGE
dast-default-auto-deploy  ClusterIP  10.12.4.126  <none>       5000/TCP  19s

==> v1beta1/Ingress
NAME                      HOSTS                                                                         ADDRESS  PORTS  AGE
dast-default-auto-deploy  dast-4422333-dast-default.34.67.11.220.nip.io,le-4422333.34.67.11.220.nip.io  80, 443  18s


NOTES:
Application should be accessible at

    http://dast-4422333-dast-default.34.67.11.220.nip.io
deployment "dast-default" successfully rolled out
$ auto-deploy persist_environment_url
section_end:1598602820:step_script
section_start:1598602820:upload_artifacts_on_success
Uploading artifacts for successful job
Uploading artifacts...
environment_url.txt: found 1 matching files and directories 
Uploading artifacts as "archive" to coordinator... ok  id=37682913 responseStatus=201 Created token=byuJLk7o
section_end:1598602822:upload_artifacts_on_success
Job succeeded