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 best solutions below
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
- Pushing to git repository hosted by Visual studio online without entering user name and password
- Generate folder structure of a changeset after checkin in VSO
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- Could not write destination file: Access to path 'd:\a\src\...\Web.config' is denied
- hosted build visual studio online
- VSTS Rest API Get WorkItems By Field Value
- xunit.runner.dnx on visual studio online no tests found
- OpsHub User Mapping Error
- Kick off mocha tests in Visual Studio Team Services Build
- Visual Studio Online - Build - There are agents that are capable of running the build, but they are not online
- on-premise TFS to VSO issues using OpsHub 1.2.0.000
- Git tag at the end of build on Visual Studio Online (Build vNext, hosted pool)
- Get Latest Version using command-line from VSO?
- Visual Studio Team Services workspace error
- How to cache credentials for VS online in posh-git?
Related Questions in AZURE-PIPELINES
- Kick off mocha tests in Visual Studio Team Services Build
- TFS 2017 build as code
- vsts build fails on Microsoft.AspNet.Identity.EntityFramework
- Issue with visual studio build agent behind a proxy
- VSTS build: replace string in linked file before packing
- Azure Powershell VSO agent task not failing for non-zero exit code
- Accessing variables in VSTS for release name format
- Visual Studio Team Services - build definition - fail on more warnings, or on less tests
- npm install needs authentication in VSTS hosted build
- Can ExtensionDataService be used from a PowerShell-based VSTS build task?
- VSTS intermittently nuget package restore fails
- Setting up Build Pipeline for Azure Bot Service/Azure Functions solution in VSTS Build
- Continuous deployment to Azure of ASP.NET Core app
- Modify TFS 2015 BuildNumber during build process
- Save Screenshot to folder in root directory VSTS
Related Questions in KUBECTL
- How to create users/groups restricted to namespace in Kubernetes using RBAC API?
- NodePort services not working as expected on AWS, possibly due to IAM ELB permissions
- How to authenticate kubectl using environment variables?
- kubectl jsonpath expression for named path
- kubectl behind a proxy
- Finding the reason for pods being killed by Minikube
- How to configure kubernetes to allow for long running interactive sessions?
- Can I get or delete a pod/resource by UID?
- Define size for /dev/shm on container engine
- What is the jsonpath for Kubernetes POD status?
- Restart container within pod
- Sharing a persistent volume between pods in Kubernetes
- Does HPA(Horizontal pod autoscaling) considers the mean of CPU utilization of multiple containers(in a pod) to scale the pods?
- Flannel fails in kubernetes cluster due to failure of subnet manager
- Kubernetes create Service in deployment+rbd mode, also same configured to succeed in default namespace, fail under non default namespace?
Related Questions in AZURE-PIPELINES-YAML
- Remove commit message from azure devops pipeline run web page?
- How to get the build id from the trigger build task provided by the Azure devops
- How to get path to project in pipleline Azure Devops?
- How to deploy to azure web app containers using a docker hub registry
- Azure Devops Piepeline - Yaml Powershell Script Path
- Rename and Replace Placeholder Task in Azure DevOps CI pipeline
- Azure DevOps pipeline kubectl task command: rollout unavailable
- Choose build configuration according to branch name & parameter
- Logic App CI/CD - why is workflow treated as infrastructure?
- Azure Pipelines: Rollback to a certain version (release) after failed deployment to Kubernetes cluster in Azure-Pipelines.yml
- Pass a file reference as a parameter to a inserted step from another repo in a Azure YAML deployment
- Transfer variable to template
- How to resolve "unexpected value 'stages' azure pipelines" in Azure devops pipeline yml
- How to Specify .NET Framework Version in YAML Pipeline?
- How to trigger Azure DevOps Pipeline when new branch is created and use the new branch name as a variable in the pipeline
Related Questions in AZURE-PIPELINES-TASKS
- How are Azure Devops service connections secure?
- How to get the build id from the trigger build task provided by the Azure devops
- i am facing below issue in git based wiki updater task
- Azure DevOps pipeline kubectl task command: rollout unavailable
- Cannot save output from npm task in Azure Pipelines release
- Azure custom task visibleRule definition error
- Why Azure Yaml pipeline 'Template Parameter' if-condition does not resolve correctly while comparing the numbers?
- Access variable between pipeline jobs
- How to specify triggers using variables in Azure DevOps Services pipeline yaml
- Nuget Pack Failure - The process cannot access the file 'D:\a\1\a\*.nupkg'
- Azure pipelines failing stating Incorrect task refrence
- Azure Artifacts - Downloading Maven package content throws azure UnhandledPromiserejectionWarning
- How to properly do file transforms on Azure Pipelines
- How to get Github Labels from Pull Request - Azure Pipelines
- How to use a variable group in a Azure Pipelines yml template?
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)
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?

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.