# Unable to add service/Routes via admin API

**URL:** <https://discuss.konghq.com/t/unable-to-add-service-routes-via-admin-api/10369>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [July 10, 2022, 7:11pm UTC](https://discuss.konghq.com/t/unable-to-add-service-routes-via-admin-api/10369 "2022-07-10T19:11:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![senthil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/senthil/32/3511_2.png) [@senthil](https://discuss.konghq.com/u/senthil)\
**Post date:** [July 10, 2022, 7:11pm UTC](https://discuss.konghq.com/t/unable-to-add-service-routes-via-admin-api/10369/1 "2022-07-10T19:11:01Z")

</div>

**Helm Version** : 2.10.2  
**Kubernetes Version** : 1.22.6  
**Kong Version** : Latest(2.4.2)  
**Environment** : Azure Kubernetes Service

Summary of what I have done so far,

1. Kong Gateway Installation - Installed kong by executing the below helm command  
**“helm install kong kong/kong -n kong”**
2. Once installation is done, I am able to access the proxy in the “[http://XXX.XXX.XXX.XXX:80](http://XXX.XXX.XXX.XXX:80)” url
3. Admin API - upgraded the helm chart by adding the “admin:” section to the values.yaml file. Now, I am able to access the admin api in the “[http://XXX.XXX.XXX.XXX:8001/](http://XXX.XXX.XXX.XXX:8001/)” url  
**“helm upgrade kong kong/kong -n kong -f values.yaml”**
4. Manager UI - upgraded the helm chart by adding the “manager:” section to the values.yaml file. Now, I am able to access the Kong Manager in the “[http://XXX.XXX.XXX.XXX:8002](http://XXX.XXX.XXX.XXX:8002)” url

**Problem statements**  
The problem no 1 is, when I tried to add service via admin api(curl command), getting the below error.  
**HTTP/1.1 405 Not Allowed**  
**{“name”:“operation unsupported”,“message”:“cannot create ‘services’ entities when not using a database”,“code”:12}**

The problem no 2 is, as stated above, the manager UI is loading properly, but when I tried to add a new service, it is throwing “Network error”. Have enabled “enterprise.enabled: true” in the values.yaml

Tried all the below approach for data store to get rid of the above error.

1. DBless
2. Helm provisioned Postgres
3. Azure managed Postgres(latest version as of 07/2022)
4. Postgres version 13 installed on Azure VM(ubuntu 20.04)

There is no restriction to access any of the above postgresql databases, as the port 5432 is kept open and it is accessible through internet(for testing alone). I am also able to successfully connect them from my laptop via pgAdmin and psql

# To sum up,

# 1) the admin API and Manager UI is loading properly, but unable to add any service/routes.

# 2) Unable to add Postgresql database as the Data Store.

Note:  
I am new for Kong and Kubernetes. Hence the terminology that I used might not be relevant.  
I am trying to install Enterprise(Free) edition and not the paid subscription.

Please find the values.yaml below. The IP Address mentioned in pg\_host is dummy(for security reasons I have deidentified the values)  
env:  
database: “postgres”  
pg\_host: 020.001.20.2  
pg\_port: 5432  
pg\_timeout: 50000  
pg\_user: kong  
pg\_password: kong  
pg\_database: kong  
pg\_ssl: off  
nginx\_worker\_processes: “2”  
proxy\_access\_log: /dev/stdout  
admin\_access\_log: /dev/stdout  
admin\_gui\_access\_log: /dev/stdout  
portal\_api\_access\_log: /dev/stdout  
proxy\_error\_log: /dev/stderr  
admin\_error\_log: /dev/stderr  
admin\_gui\_error\_log: /dev/stderr  
portal\_api\_error\_log: /dev/stderr  
prefix: /kong\_prefix/  
image:  
repository: kong/kong-gateway  
tag: “2.8”  
pullPolicy: IfNotPresent  
admin:  
enabled: true  
type: LoadBalancer  
annotations: {}  
labels: {}

http:  
enabled: true  
servicePort: 8001  
containerPort: 8001  
parameters:

tls:  
enabled: false  
servicePort: 8444  
containerPort: 8444  
parameters:  
- http2  
ingress:  
enabled: false  
ingressClassName:  
hostname:  
annotations: {}  
path: /  
pathType: ImplementationSpecific

enterprise:  
enabled: true

manager:  
enabled: true  
type: LoadBalancer  
annotations: {}  
labels: {}

http:  
enabled: true  
servicePort: 8002  
containerPort: 8002  
parameters:

tls:  
enabled: false  
servicePort: 8445  
containerPort: 8445  
parameters:  
- http2

ingress:  
enabled: false  
ingressClassName:  
hostname:  
annotations: {}  
path: /  
pathType: ImplementationSpecific
