Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

webdevops/k8s-rollingupdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes rollingupdate trigger for Deployments, Daemonsets and Statefulsets

This tool triggers a rolling update for Deployments, Daemonsets and Statefulsets with possiblity to filter by annotation.

Usage

Usage:
  k8s-rollingupdate [OPTIONS]

Application Options:
      --kubeconfig=             Path to .kube/config [$KUBECONFIG]
      --kubecontext=            Context of .kube/config [$KUBECONTEXT]
  -n, --namespace=              Namespace to process [$K8S_ROLLINGUPDATE_NAMESPACE]
      --annotation=             Filter Kubernetes object by annotation
                                [$K8S_ROLLINGUPDATE_ANNOTATION]
      --annotation-value=       Filter Kubernetes object by annotation value (needs --annotation)
                                [$K8S_ROLLINGUPDATE_ANNOTATION_VALUE]
      --annotation-autorollout= Annotation which will be added to trigger rolling update (default:
                                rolllingupdate.webdevops.io/trigger)
                                [$K8S_ROLLINGUPDATE_ANNOTATION_TRIGGER]

Help Options:
  -h, --help                    Show this help message
# Trigger rolling update for everything in namespace
k8s-rollingupdate -n your-namespace

# Trigger rolling update for everything multiple namespaces
k8s-rollingupdate -n your-namespace -n other-namespace

# Trigger rolling update for everything with annotation foobar/barfoo
k8s-rollingupdate -n your-namespace --annotation foobar/barfoo

# Trigger rolling update for everything with annotation foobar/barfoo=value
k8s-rollingupdate -n your-namespace --annotation foobar/barfoo --annotation-value value

About

Rolling update trigger for Kubernetes Deployments, Daemonsets and Statefulsets

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published