Listenport config not updated in kubernetes
search cancel

Listenport config not updated in kubernetes

book

Article ID: 281323

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

 When updating the  listenport config in the the values.yaml file the gateway pod does not use the new configuration after doing a helm update. 

When updating the key reference it does not update the listen port key reference in the gateway after restarting the pod.

Checking the SSG database and the configmap for the listenport config, It looks like you cannot update the listenport key reference using the values.yaml.

It will always just take the value that is listed in the database.

Environment

API Container gateway 10.1 11.x 

Resolution

The listenport config bundle in gateway/templates/listenport-configmap.yaml contains a bootstrap bundle which is only be applied on a gateway restart.

The helm upgrade command  or the upgrade in Teraform will only update the configmap but not restart the gateway and a stop and start of the pod does not restart the gateway.

You need to do a : 

 kubectl rollout restart deployment <deployment-name>

To get the deployment name you can run 

 kubectl get deployments 

This will restart the deployment and apply the updated bundle .