KB Article #186462
How to deploy a new configuration to a containerized API Gateway?
Problem
Getting 'HTTP 405 Method not allowed' while running projdeploy command on containerized API Gateway.
Resolution
Deploying a new version of the fed with projdeploy is not supported in EMT. If EMT_DEPLOYMENT_ENABLED=true deployment is only supported via Policy Studio.
More details about this flag EMT_DEPLOYMENT_ENABLED. Note: EMT_DEPLOYMENT_ENABLED environment variable is provided as a convenience for development environments only.
Procedure to deploy changes in API Gateway configuration
- Docker Deployments:
1. create a backup of the current fed file.
2. override the current file with the new configuration.
3. redeploy the API Gateway Docker image:
docker run -d --name=apimgr \
--network=api-gateway-domain \
-p 8075:8075 \
-p 8065:8065 \
-p 8080:8080 \
-v ./events:/apigateway/events \
-v ./license.lic:/merge/apigateway/conf/licenses/license.lic \
-v ./new-fed.fed:/merge/fed \
-e ACCEPT_GENERAL_CONDITIONS=yes \
-e EMT_ANM_HOSTS=anm:8090 \
-e CASS_HOST=cassandra \
docker.repository.axway.com/apigateway-docker-prod/7.7/gateway:{version}
- Kubernetes Deployments: Update API Gateway configuration