mirror of https://github.com/knative/docs.git
Add the configuration of podDisruptionBudget for knative operator (#5114)
* Add the configuration of podDisruptionBudget for knative operator * Add the description on the Pod Disruption Budget (PDB) Signed-off-by: Vincent Hou <shou@us.ibm.com> Signed-off-by: Vincent Hou <shou@us.ibm.com>
This commit is contained in:
parent
42ab45be5d
commit
acb827c003
|
@ -505,3 +505,23 @@ kn operator configure labels --component eventing --serviceName eventing-webhook
|
|||
kn operator configure annotations --component eventing --serviceName eventing-webhook --key myannotations --value bar -n knative-eventing
|
||||
kn operator configure selectors --component eventing --serviceName eventing-webhook --key myselector --value bar -n knative-eventing
|
||||
```
|
||||
|
||||
## Override system podDisruptionBudgets
|
||||
|
||||
A Pod Disruption Budget (PDB) allows you to limit the disruption to your application when its pods need to be rescheduled
|
||||
for maintenance reasons. Knative Operator allows you to configure the `minAvailable` for a specific podDisruptionBudget
|
||||
resource in Eventing based on the name. To understand more about the configuration of the resource podDisruptionBudget, click [here](https://kubernetes.io/docs/tasks/run-application/configure-pdb/).
|
||||
For example, if you would like to change `minAvailable` into 70% for the podDisruptionBudget named `eventing-webhook`,
|
||||
you need to change your KnativeEventing CR as below:
|
||||
|
||||
```yaml
|
||||
apiVersion: operator.knative.dev/v1beta1
|
||||
kind: KnativeEventing
|
||||
metadata:
|
||||
name: knative-eventing
|
||||
namespace: knative-eventing
|
||||
spec:
|
||||
podDisruptionBudgets:
|
||||
- name: eventing-webhook
|
||||
minAvailable: 70%
|
||||
```
|
||||
|
|
|
@ -675,3 +675,23 @@ kn operator configure labels --component serving --serviceName webhook --key myl
|
|||
kn operator configure annotations --component serving --serviceName webhook --key myannotations --value bar -n knative-serving
|
||||
kn operator configure selectors --component serving --serviceName webhook --key myselector --value bar -n knative-serving
|
||||
```
|
||||
|
||||
## Override system podDisruptionBudgets
|
||||
|
||||
A Pod Disruption Budget (PDB) allows you to limit the disruption to your application when its pods need to be rescheduled
|
||||
for maintenance reasons. Knative Operator allows you to configure the `minAvailable` for a specific podDisruptionBudget
|
||||
resource in Serving based on the name. To understand more about the configuration of the resource podDisruptionBudget, click [here](https://kubernetes.io/docs/tasks/run-application/configure-pdb/).
|
||||
For example, if you would like to change `minAvailable` into 70% for the podDisruptionBudget named `activator-pdb`, you
|
||||
need to change your KnativeServing CR as below:
|
||||
|
||||
```yaml
|
||||
apiVersion: operator.knative.dev/v1beta1
|
||||
kind: KnativeServing
|
||||
metadata:
|
||||
name: knative-serving
|
||||
namespace: knative-serving
|
||||
spec:
|
||||
podDisruptionBudgets:
|
||||
- name: activator-pdb
|
||||
minAvailable: 70%
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue