ganrad / Az-DevOps-Agent-On-AKS

Build and deploy Azure DevOps Pipeline agent in a container on Azure Kubernetes Service. Elastically scale the DevOps build infrastructure.
42 stars 49 forks source link

Cant create more than one POD #2

Closed krupakar-code closed 3 years ago

krupakar-code commented 3 years ago

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?

krupakar-code commented 3 years ago

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

ganrad commented 3 years ago

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

ganrad commented 3 years ago

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

allcontributors[bot] commented 3 years ago

@ganrad

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