Running with gitlab-runner 13.9.0-rc2 (69c049fd)
  on docker-auto-scale fa6cab46
  feature flags: FF_GITLAB_REGISTRY_HELPER_IMAGE:true
section_start:1613514584:resolve_secrets
Resolving secrets
section_end:1613514584:resolve_secrets
section_start:1613514584:prepare_executor
Preparing the "docker+machine" executor
Using Docker executor with image registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.7 ...
Pulling docker image registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.7 ...
Using docker image sha256:3cc6f3a2fe3a9b760b7d7030af302d04022020882378955fb8b98d941f682033 for registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.7 with digest registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image@sha256:cc3b155c0406960ac664aaea96703b3289f295698128af383308c78931d3db11 ...
section_end:1613514653:prepare_executor
section_start:1613514653:prepare_script
Preparing environment
Running on runner-fa6cab46-project-4422333-concurrent-0 via runner-fa6cab46-stg-srm-1613514584-207a2d03...
section_end:1613514655:prepare_script
section_start:1613514655: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 00164633 as master...

Skipping Git submodules setup
section_end:1613514656:get_sources
section_start:1613514656:step_script
Executing "step_script" stage of the job script
Using docker image sha256:3cc6f3a2fe3a9b760b7d7030af302d04022020882378955fb8b98d941f682033 for registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image:v1.0.7 with digest registry.gitlab.com/gitlab-org/cluster-integration/auto-deploy-image@sha256:cc3b155c0406960ac664aaea96703b3289f295698128af383308c78931d3db11 ...
$ 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://charts.helm.sh/stable 
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
"bitnami" has been added to your repositories
Download skipped. Using the default chart included in auto-deploy-image...
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 "bitnami" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
Saving 1 charts
Downloading postgresql from repo https://charts.helm.sh/stable
Deleting outdated charts
$ auto-deploy ensure_namespace
NAME                              STATUS   AGE
monitor-sandbox-4422333-staging   Active   119d
$ 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:"16+", GitVersion:"v1.16.15-gke.6000", GitCommit:"b02f5ea6726390a4b19d06fa9022981750af2bbc", GitTreeState:"clean", BuildDate:"2020-11-18T09:16:22Z", GoVersion:"go1.13.15b4", 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
Release "staging-postgresql" has been upgraded.
LAST DEPLOYED: Tue Feb 16 22:31:12 2021
NAMESPACE: monitor-sandbox-4422333-staging
STATUS: DEPLOYED

RESOURCES:
==> v1/Pod(related)
NAME                  READY  STATUS   RESTARTS  AGE
staging-postgresql-0  1/1    Running  0         27d

==> v1/Secret
NAME                TYPE    DATA  AGE
staging-postgresql  Opaque  1     119d

==> v1/Service
NAME                         TYPE       CLUSTER-IP   EXTERNAL-IP  PORT(S)   AGE
staging-postgresql           ClusterIP  10.86.9.130  <none>       5432/TCP  119d
staging-postgresql-headless  ClusterIP  None         <none>       5432/TCP  119d

==> v1/StatefulSet
NAME                READY  AGE
staging-postgresql  1/1    119d


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:

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

To get the password for "user" run:

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

To connect to your database run the following command:

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



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

    kubectl port-forward --namespace monitor-sandbox-4422333-staging svc/staging-postgresql 5432:5432 &
    PGPASSWORD="$POSTGRES_PASSWORD" psql --host 127.0.0.1 -U user -d staging -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... v1.0.7
Fetching the deploying chart version... v1.0.7
The current chart is compatible with the previously deployed chart
secret "staging-secret" deleted
secret/staging-secret replaced
No helm values file found at '.gitlab/auto-deploy-values.yaml'
Deploying new stable release...
Release "staging" has been upgraded.
LAST DEPLOYED: Tue Feb 16 22:31:17 2021
NAMESPACE: monitor-sandbox-4422333-staging
STATUS: DEPLOYED

RESOURCES:
==> v1/Deployment
NAME     READY  UP-TO-DATE  AVAILABLE  AGE
staging  1/1    1           1          119d

==> v1/Pod(related)
NAME                     READY  STATUS   RESTARTS  AGE
staging-d7dff4745-d7dl8  1/1    Running  0         8d

==> v1/Service
NAME                 TYPE       CLUSTER-IP  EXTERNAL-IP  PORT(S)   AGE
staging-auto-deploy  ClusterIP  10.86.4.44  <none>       5000/TCP  119d

==> v1beta1/Ingress
NAME                 HOSTS                                                                                          ADDRESS      PORTS    AGE
staging-auto-deploy  gitlab-org-monitor-monitor-sandbox-staging.34.67.11.220.nip.io,le-4422333.34.67.11.220.nip.io  35.184.0.59  80, 443  119d


NOTES:
Application should be accessible at

    http://gitlab-org-monitor-monitor-sandbox-staging.34.67.11.220.nip.io
deployment "staging" successfully rolled out
section_end:1613514680:step_script
section_start:1613514681:cleanup_file_variables
Cleaning up file based variables
section_end:1613514682:cleanup_file_variables
Job succeeded