GCE + Kubernetes + PostgresSQL - Migration problem

Good afternoon,

I installed Kong with Kubernetes and GCE Postgres, using the proxy container. It installs fine, but when it comes to the migration, it fails. In the logs, it complains about the owner of the function upsert_schema_migrations. My manifest is:

apiVersion: batch/v1
kind: Job
metadata:
name: kong-migration
namespace: kong
spec:
template:
metadata:
name: kong-migration
spec:
containers:
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:1.11
command: ["/cloud_sql_proxy",
“-instances=projectname:europe-west1:kong-db=tcp:5432”,
“-credential_file=/secrets/cloudsql/credentials.json”]
volumeMounts:
- name: cloudsql-instance-credentials
mountPath: /secrets/cloudsql
readOnly: true
- name: kong-migration
image: kong
env:
- name: KONG_NGINX_DAEMON
value: ‘off’
- name: KONG_PG_USER
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: username
- name: KONG_PG_PASSWORD
valueFrom:
secretKeyRef:
name: cloudsql-db-credentials
key: password
- name: KONG_PG_HOST
value: 127.0.0.1
command: [ “/bin/sh”, “-c”, “kong migrations up” ]
restartPolicy: Never
volumes:
- name: cloudsql-instance-credentials
secret:
secretName: cloudsql-instance-credentials

Thanks