Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oneoneonepig authored Feb 5, 2020
1 parent 2d927de commit 8859c6f
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# pod-restarter
Restarts a specific Pod in Kubernetes
Restarts some Pods in Kubernetes, selected by labels

## Usage
```
-grace-period int
the duration in seconds before the object should be deleted. (default 30)
-namespace string
specify the namespace of the pods (default "default")
-selector string
label selector
```

## Example
Delete all Pods in default Namespace
```
pod-restarter -namespace=default
```
Delete all Pods with label "app=nginx" in default Namespace
```
pod-restarter -namespace=default -selector="app=nginx"
```

## Library and reference
- https://github.com/kubernetes/client-go
- https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go
- https://github.com/kubernetes/client-go/blob/master/examples/in-cluster-client-configuration/main.go

0 comments on commit 8859c6f

Please sign in to comment.