azure-pipelines-tool-lib | creating CI/CD tool installer tasks | Azure library
kandi X-RAY | azure-pipelines-tool-lib Summary
kandi X-RAY | azure-pipelines-tool-lib Summary
Lib for creating CI/CD tool installer tasks in Azure Pipelines
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-pipelines-tool-lib
azure-pipelines-tool-lib Key Features
azure-pipelines-tool-lib Examples and Code Snippets
Community Discussions
Trending Discussions on azure-pipelines-tool-lib
QUESTION
I'm new AKS, ACR, and DevOps Pipelines and I'm trying to setup a CI/CD pipeline.
I have a resource group setup that has both AKS and ACR in it. AKS is using Standard_B2s
and only one node at this point since I'm just playing around.
Images are being deployed to ACR automatically on a commit to master--haven't figured out how to setup testing yet--but when it comes to deploying to AKS, I just keep getting a:
...ANSWER
Answered 2020-Jan-02 at 10:26Error from server (BadRequest): container "client" in pod "client-deployment-5688bdc69c-hxlcf" is waiting to start: trying and failing to pull image
Based on my experience, this is more relative with imagePullSecrets
and the Kubernetes namespace
.
In your Create imagePullSecret
and Deploy to Kubernetes cluster
task, I saw that you did not provide the value to task parameter: namespace
. This will lead to a new namespace which name is default
will be created, since you unspecified the namespace.
And, the kubernetes secret which generated by createSecret
action is seperated for each namespace. In one word, different namespace has different secret value:
Secrets are stored within a given namespace and can only be accessed by pods within the same namespace.
Now, let’s back to your build compile process.
In your yml definition, Create imagePullSecret
will create a secret
for new namespace default
which created by task automatically as you did not provide the given namespace value.
Then, in next task Deploy to Kubernetes cluster
, because of the same reason, here the task will re-created a another new namespace default
(Note: this is not same with the previous one). Also, you could see this progress from the log:
At this time, the secret
that generated from the previous task will not available for the current namespace. BUT, as you know, the ACR
is a private container registry which our system must verify whether the kubernetes secret
is available.
In addition, in your Deploy to Kubernetes cluster task, you were specifying the repository as $(imageRepository)
which does not same with the repository you push the image to $(imageRepository)-client
.
This can also be checked in your log:
That's why there's no available node in your kubernetes, and you failed to pull the image also.
To avoid the issue, please ensure you provide the namespace
value in KubernetesManifest@0
task.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-pipelines-tool-lib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page