Skip to content

Commit

Permalink
docs: Update disable disruption on nodepool to use budgets
Browse files Browse the repository at this point in the history
  • Loading branch information
jigisha620 committed Jun 20, 2024
1 parent 2e907f9 commit 49cfb7e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
9 changes: 4 additions & 5 deletions website/content/en/docs/concepts/disruption.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,15 @@ metadata:
#### Example: Disable Disruption on a NodePool
NodePool `.spec.annotations` allow you to set annotations that will be applied to all nodes launched by this NodePool. By setting the annotation `karpenter.sh/do-not-disrupt: "true"` on the NodePool, you will selectively prevent all nodes launched by this NodePool from being considered in disruption actions.
To disable disruption for all nodes launched by a NodePool, you can configure its `.spec.disruption.budgets`. Setting a budget of zero nodes will prevent any of those nodes from being considered for voluntary disruption.
```yaml
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
name: default
spec:
template:
metadata:
annotations: # will be applied to all nodes
karpenter.sh/do-not-disrupt: "true"
disruption:
budgets:
- nodes: "0"
```
9 changes: 4 additions & 5 deletions website/content/en/preview/concepts/disruption.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,15 @@ metadata:
#### Example: Disable Disruption on a NodePool
NodePool `.spec.annotations` allow you to set annotations that will be applied to all nodes launched by this NodePool. By setting the annotation `karpenter.sh/do-not-disrupt: "true"` on the NodePool, you will selectively prevent all nodes launched by this NodePool from being considered in disruption actions.
To disable disruption for all nodes launched by a NodePool, you can configure its `.spec.disruption.budgets`. Setting a budget of zero nodes will prevent any of those nodes from being considered for voluntary disruption.
```yaml
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
name: default
spec:
template:
metadata:
annotations: # will be applied to all nodes
karpenter.sh/do-not-disrupt: "true"
disruption:
budgets:
- nodes: "0"
```
9 changes: 4 additions & 5 deletions website/content/en/v0.35/concepts/disruption.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,15 @@ metadata:
#### Example: Disable Disruption on a NodePool
NodePool `.spec.annotations` allow you to set annotations that will be applied to all nodes launched by this NodePool. By setting the annotation `karpenter.sh/do-not-disrupt: "true"` on the NodePool, you will selectively prevent all nodes launched by this NodePool from being considered in disruption actions.
To disable disruption for all nodes launched by a NodePool, you can configure its `.spec.disruption.budgets`. Setting a budget of zero nodes will prevent any of those nodes from being considered for voluntary disruption.
```yaml
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
name: default
spec:
template:
metadata:
annotations: # will be applied to all nodes
karpenter.sh/do-not-disrupt: "true"
disruption:
budgets:
- nodes: "0"
```
9 changes: 4 additions & 5 deletions website/content/en/v0.36/concepts/disruption.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,15 @@ metadata:
#### Example: Disable Disruption on a NodePool
NodePool `.spec.annotations` allow you to set annotations that will be applied to all nodes launched by this NodePool. By setting the annotation `karpenter.sh/do-not-disrupt: "true"` on the NodePool, you will selectively prevent all nodes launched by this NodePool from being considered in disruption actions.
To disable disruption for all nodes launched by a NodePool, you can configure its `.spec.disruption.budgets`. Setting a budget of zero nodes will prevent any of those nodes from being considered for voluntary disruption.
```yaml
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
name: default
spec:
template:
metadata:
annotations: # will be applied to all nodes
karpenter.sh/do-not-disrupt: "true"
disruption:
budgets:
- nodes: "0"
```
9 changes: 4 additions & 5 deletions website/content/en/v0.37/concepts/disruption.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,15 @@ metadata:
#### Example: Disable Disruption on a NodePool
NodePool `.spec.annotations` allow you to set annotations that will be applied to all nodes launched by this NodePool. By setting the annotation `karpenter.sh/do-not-disrupt: "true"` on the NodePool, you will selectively prevent all nodes launched by this NodePool from being considered in disruption actions.
To disable disruption for all nodes launched by a NodePool, you can configure its `.spec.disruption.budgets`. Setting a budget of zero nodes will prevent any of those nodes from being considered for voluntary disruption.
```yaml
apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
name: default
spec:
template:
metadata:
annotations: # will be applied to all nodes
karpenter.sh/do-not-disrupt: "true"
disruption:
budgets:
- nodes: "0"
```

0 comments on commit 49cfb7e

Please sign in to comment.