We have deployed the pod of Spring Cloud dataflow and Skipper in AWS EKS. We have registered the application and created the stream. Whenever we are undeploy and deploy the stream that time deployment name and repicasset are changed. Can we have option to fix it (deployment name) as we are facing issue with Kubernetes Horizontal Pod Auto Scaler policy as HPA based on the Deployment name.
For example: Application Name: sms Stream name: sms Deployment name: sms-v1
After undeploy and deploy: Deployment name: sms-v2
in this case we have applied the HPA on deployment name sms-v1 not woking after sms-v2. So we need to update deployment name in HPA which is not possible everytime.
Please share the some suggestion.
Thanks
Currently, We have manually changing the deployment name in HPA.
There will be labels assigned to the related Kubernetes Services, Deployments and Pods:
If you have a stream the
spring-group-idis thestreamNameandspring-application-namewill bestreamName-appName-versionThespring-deployment-idwill typically match thespring-app-idYou can use
kubectl get pod --selector='spring-group-id=sms'to view all pods for the specific stream / taskYou should be able to use label selectors in HPA instead of Deployment names.