payload: {"action":"created","issue":{"url":"https://api.github.com/repos/helm/charts/issues/19034","repository_url":"https://api.github.com/repos/helm/charts","labels_url":"https://api.github.com/repos/helm/charts/issues/19034/labels{/name}","comments_url":"https://api.github.com/repos/helm/charts/issues/19034/comments","events_url":"https://api.github.com/repos/helm/charts/issues/19034/events","html_url":"https://github.com/helm/charts/issues/19034","id":526264198,"node_id":"MDU6SXNzdWU1MjYyNjQxOTg=","number":19034,"title":"[stable/kong] problem running Kong with Postgres DB","user":{"login":"ivangfr","id":10564548,"node_id":"MDQ6VXNlcjEwNTY0NTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/10564548?v=4","gravatar_id":"","url":"https://api.github.com/users/ivangfr","html_url":"https://github.com/ivangfr","followers_url":"https://api.github.com/users/ivangfr/followers","following_url":"https://api.github.com/users/ivangfr/following{/other_user}","gists_url":"https://api.github.com/users/ivangfr/gists{/gist_id}","starred_url":"https://api.github.com/users/ivangfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivangfr/subscriptions","organizations_url":"https://api.github.com/users/ivangfr/orgs","repos_url":"https://api.github.com/users/ivangfr/repos","events_url":"https://api.github.com/users/ivangfr/events{/privacy}","received_events_url":"https://api.github.com/users/ivangfr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-11-20T23:00:32Z","updated_at":"2020-01-09T10:17:09Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nSince the change of Kong version from `0.26.1` to `0.27.0`, I am not able to run Kong on Kubernetes using Helm. I've seen that the default database is `off` now.\r\n\r\n**Version of Helm and Kubernetes**:\r\n\r\n**Helm**\r\n```\r\nversion.BuildInfo{Version:\"v3.0.0\", GitCommit:\"e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6\", GitTreeState:\"clean\", GoVersion:\"go1.13.4\"}\r\n```\r\n\r\n**Kubernetes**\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"16\", GitVersion:\"v1.16.3\", GitCommit:\"b3cbbae08ec52a7fc73d334838e18d17e8512749\", GitTreeState:\"clean\", BuildDate:\"2019-11-14T04:24:34Z\", GoVersion:\"go1.12.13\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"16\", GitVersion:\"v1.16.2\", GitCommit:\"c97fe5036ef3df2967d086711e6c0c405941e14b\", GitTreeState:\"clean\", BuildDate:\"2019-10-15T19:09:08Z\", GoVersion:\"go1.12.10\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n**Which chart**:\r\nstable/kong\r\n\r\n**What happened**:\r\nIf I install Kong **without database**\r\n```\r\nhelm install my-kong \\\r\n--set image.tag=1.4.0 \\\r\n--set admin.useTLS=false \\\r\n--set readinessProbe.httpGet.scheme=HTTP \\\r\n--set livenessProbe.httpGet.scheme=HTTP \\\r\nstable/kong\r\n```\r\n\r\nThe pod gets UP and RUNNING but I am getting an error while creating a service in kong for my application\r\n```\r\nHTTP/1.1 405 Not Allowed\r\n{\"name\":\"operation unsupported\",\"message\":\"cannot create 'services' entities when not using a database\",\"code\":12}\r\n```\r\n\r\nOn the other hand, when I try to configure the postgres database\r\n```\r\nhelm install my-kong \\\r\n--set image.tag=1.4.0 \\\r\n--set postgresql.enabled=true \\\r\n--set env.database=postgres \\\r\n--set admin.useTLS=false \\\r\n--set readinessProbe.httpGet.scheme=HTTP \\\r\n--set livenessProbe.httpGet.scheme=HTTP \\\r\nstable/kong\r\n```\r\n\r\nthe pod **never** gets to RUNNING status\r\n```\r\nmy-kong-kong-c88f76f59-vztwk         0/2     Init:0/1           0          103s\r\nmy-kong-kong-init-migrations-728t6   0/1     CrashLoopBackOff   3          103s\r\n```\r\n\r\nAm I missing any property above? Is that the correct configuration?\r\n\r\n**What you expected to happen**:\r\nKong pod gets to RUNNING status and I am able to create a service for my application\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\nJust run\r\n```\r\nhelm install my-kong \\\r\n--set image.tag=1.4.0 \\\r\n--set postgresql.enabled=true \\\r\n--set env.database=postgres \\\r\n--set admin.useTLS=false \\\r\n--set readinessProbe.httpGet.scheme=HTTP \\\r\n--set livenessProbe.httpGet.scheme=HTTP \\\r\nstable/kong\r\n```\r\n\r\n**Anything else we need to know**:\r\nBtw, provisioning my own postgres database works fine\r\n\r\n```\r\nhelm install my-postgres \\\r\n--set image.tag=12.1.0 \\\r\n--set image.pullPolicy=IfNotPresent \\\r\n--set postgresqlDatabase=kong \\\r\n--set postgresqlUsername=kong \\\r\n--set postgresqlPassword=kong \\\r\n--set persistence.enabled=false \\\r\nstable/postgresql\r\n\r\nhelm install my-kong \\\r\n--set image.tag=1.4.0 \\\r\n--set env.database=postgres \\\r\n--set env.pg_host=my-postgres-postgresql \\\r\n--set env.pg_database=kong \\\r\n--set env.pg_user=kong \\\r\n--set env.pg_password=kong \\\r\n--set admin.useTLS=false \\\r\n--set readinessProbe.httpGet.scheme=HTTP \\\r\n--set livenessProbe.httpGet.scheme=HTTP \\\r\nstable/kong\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/helm/charts/issues/comments/572491548","html_url":"https://github.com/helm/charts/issues/19034#issuecomment-572491548","issue_url":"https://api.github.com/repos/helm/charts/issues/19034","id":572491548,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MjQ5MTU0OA==","user":{"login":"ivangfr","id":10564548,"node_id":"MDQ6VXNlcjEwNTY0NTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/10564548?v=4","gravatar_id":"","url":"https://api.github.com/users/ivangfr","html_url":"https://github.com/ivangfr","followers_url":"https://api.github.com/users/ivangfr/followers","following_url":"https://api.github.com/users/ivangfr/following{/other_user}","gists_url":"https://api.github.com/users/ivangfr/gists{/gist_id}","starred_url":"https://api.github.com/users/ivangfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivangfr/subscriptions","organizations_url":"https://api.github.com/users/ivangfr/orgs","repos_url":"https://api.github.com/users/ivangfr/repos","events_url":"https://api.github.com/users/ivangfr/events{/privacy}","received_events_url":"https://api.github.com/users/ivangfr/received_events","type":"User","site_admin":false},"created_at":"2020-01-09T10:17:09Z","updated_at":"2020-01-09T10:17:09Z","author_association":"NONE","body":"As this issue is related to start Kong with a fresh Postgress, I follow the FAQ [`Kong fails to start on a fresh installation with Postgres. What do I do?`](https://github.com/helm/charts/blob/master/stable/kong/FAQs.md#kong-fails-to-start-on-a-fresh-installation-with-postgres-what-do-i-do). However, I still have the same problem with `my-kong-kong-init-migrations` pod.\r\n\r\n```\r\n$ minikube start --memory='8000mb' --vm-driver='virtualbox'\r\n\r\n$ kubectl create namespace dev\r\nnamespace/dev created\r\n\r\n$ kubectl get pv -n dev\r\nNo resources found in dev namespace.\r\n\r\n$ helm install my-kong \\\r\n--namespace dev \\\r\n--set image.tag=1.4.0 \\\r\n--set postgresql.enabled=true \\\r\n--set env.database=postgres \\\r\n--set admin.useTLS=false \\\r\n--set readinessProbe.httpGet.scheme=HTTP \\\r\n--set livenessProbe.httpGet.scheme=HTTP \\\r\nstable/kong\r\n\r\n$ kubectl get pods -n dev --watch\r\nNAME                                 READY   STATUS     RESTARTS   AGE\r\nmy-kong-kong-78dd884b77-246ws        0/2     Init:0/1   0          19s\r\nmy-kong-kong-init-migrations-qnt56   0/1     Init:0/1   0          19s\r\nmy-kong-postgresql-0                 0/1     Init:0/1   0          19s\r\nmy-kong-kong-78dd884b77-246ws        0/2     Init:0/1   0          19s\r\nmy-kong-postgresql-0                 0/1     PodInitializing   0          25s\r\nmy-kong-postgresql-0                 0/1     Running           0          42s\r\nmy-kong-postgresql-0                 1/1     Running           0          47s\r\nmy-kong-kong-init-migrations-qnt56   0/1     PodInitializing   0          50s\r\nmy-kong-kong-init-migrations-qnt56   0/1     Error             0          51s\r\nmy-kong-kong-init-migrations-qnt56   0/1     Error             1          52s\r\nmy-kong-kong-init-migrations-qnt56   0/1     CrashLoopBackOff   1          66s\r\nmy-kong-kong-init-migrations-qnt56   0/1     Error              2          66s\r\nmy-kong-kong-init-migrations-qnt56   0/1     CrashLoopBackOff   2          80s\r\n```"}}
other: {"actor":{"display_login":"ivangfr"}}