Hi I am trying to implement the rollback for Kubernetes deployments using this guide, https://adrianbumbas.com/rollback-kubernetes-deployments-with-azure-devops-pipelines/. However, when adding a new kubectl task into the pipeline, I was unable to find the rollout command. I would like to know if there can be other alternative ways that I can achieve it. I appreciate the sharing of knowledge if you have previously encountered similar issue.
Azure DevOps pipeline kubectl task command: rollout unavailable
2.8k views Asked by Richard Rodjues At
2
There are 2 answers
0
Sam Comber
On
As suggested here already, you can use rollout as you would any other command, the below worked perfectly for me
- stage: Deploy_BVT
displayName: Deploy BVT
dependsOn: Build
jobs:
- deployment: Deploy_BVT
pool:
vmImage: $(vmImageName)
environment: '$(envName).my_namespace'
...
- task: Kubernetes@1
inputs:
connectionType: 'Kubernetes Service Connection'
namespace: 'my_namespace'
command: 'rollout'
arguments: 'restart deploy my_deployment'
Related Questions in AZURE-DEVOPS
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Error: VS800075 when downloading artifact from another project
- Azure Scale Sets and Parallel Jobs
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- Referencing yml file from submodule in main pipeline
- Where to find a User Story draft?
- Self Hosted Agent service startup getting failed on VM restart
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- Dacpac deployment to Azure via SSMS failed: Cannot alter the role db_owner
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- Share variables across stages in azure pipelines with templates
- Can I move an Azure Data Factory Pipeline to Azure DevOps?
- How to migrate a single workitem in Devops
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
Related Questions in AZURE-PIPELINES
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- What changed from xcode 13.2.1 to 14.2 that would affect an app's entitlements?
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- To can I reference the error code of a failed step in an Azure pipeline
- Share variables across stages in azure pipelines with templates
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
- Getting CI/CD error on biulding step in React Azure Pipeline
- Custom Conditions in Azure Pipelines break ability to cancel
- Why multiple azure pipelines are being triggered although I am triggering only once?
- Devops passing output from one job template step to another job template step
- Integrate Deployment status to Work Items in TFS
- Because my api, after publishing through the AzureDevops pipeline in flurl methods, the entryPointNotFoundException exception is occurring
Related Questions in KUBECTL
- kubernetes patch or add nested structure depending on if it exists
- Error in port forwarding when using kubectl
- Please kindly advice on kubectl --label-columns and -L label1 -L label2
- Failed to install krew: failed to list the remote URL for index default
- Google cloud shows persistent disk SSD is full, wherease I do not have anything deployed currently
- get entire json object via kubectl with filter on field value
- Issue with apply command in kubectl and .yml file
- Total memory requested by Pod
- Hashi Consul installed - now getting daily errors and lots of logs
- AKS - Cronjob use script file inside PVC
- Kubernetes@1 exec terminal printing network logs in pipeline
- `kubectl logs` returns 0 results, but logs exist on the Node
- NodePort Service not accepting connections : Error: connect ECONNREFUSED
- Connect to minikube cluster running on VM by kubectl from local machine
- How to install kubectl binary in kubernetes container through docker image?
Related Questions in AZURE-PIPELINES-YAML
- Get current Timestamp in CET format and concatenate with string in yml file
- Share variables across stages in azure pipelines with templates
- Devops passing output from one job template step to another job template step
- Azure YAML Pipeline schedule to run on the last Sunday of the month at 4 AM
- How to reference dynamically a variable template in an Azure Pipelines?
- Creating a variable from a PS1 file and it is blank when called from another stage (DevOps YAML)
- accessing resources.repositories in Azure Devops yaml pipeline template
- Using composite variables in the ManualValidation@0 Azure DevOps task
- Azure Devops YAML Pipeline - Deployment Job does not respect the timeoutInMinutes property
- How to use predefined resource variables in Azure DevOps Pipeline Yaml?
- Azure Pipeline YAML invalid -- not sure why
- Powershell script error on hangfire install
- Container didn't respond to HTTP Ping on PORT: 8080, failing site start
- Azure DevOps YAML Pipeline set deploy environment based on variable
- Deploy from self hosted agent in service with private endpoint configured
Related Questions in AZURE-PIPELINES-TASKS
- Can we display only a specific part of output from kubectl describe command in azure pipeline logs?
- Is there any way apart from using key vault, agentless pipeline and parameters to provide user input during pipeline runtime in azure?
- How to update an azure pipeline variable from a powershell task?
- Why Azure Yaml pipeline 'Template Parameter' if-condition does not resolve correctly while comparing the numbers?
- Access variable between pipeline jobs
- Azure custom task visibleRule definition error
- How to pick directory Paths based on Build Agent Name in AzureDevops task
- 500 error when calling Devops Pipeline runs api via REST API call from another pipeline
- In Azure DevOps bash task env, What is the variables default value if the variable doesn't exist in ADO variable group?
- Error downloading Task from Self-Hosted Windows machine
- How to use the Json Variables in Azure DevOps YAML Pipeline?
- Azure pipeline cannot find installed python libraries
- Use Azure Pipeline variable dynamically in Python
- Azure custom task input - conditional required
- Azure pipeline task: ManualValidation passing parameter into input
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

You got this warning was because kubectl task command had a dropdowm list containing the following kubectl commands:
From my test, even you got this warning, you still could run the pipeline, and pipeline could recognize
rolloutcommand. You may have a try.