ganrad/Az-DevOps-Agent-On-AKS

Cant create more than one POD

Closed this issue · 4 comments

AZP_AGENT_NAME will be unique for each agent in a POOL.
If we are deploying two replicas only one will get created.The other pod will face an error "already has an active session exists"
Any possible to pass random name for AZP_AGENT_NAME?

Just found a solution to dynamically take pod name as agent name
valueFrom:
fieldRef:
fieldPath: metadata.name

@Krupakarreddin thanks for the feedback. Updated the helm chart files. Closing this issue. Thanks.

@all-contributors please add @Krupakarreddin as bug identifier. Thanks.

@ganrad

I've put up a pull request to add @Krupakarreddin! 🎉