Instruction on how to override the labels and annotations for services (#4934)

This commit is contained in:
Vincent 2022-05-10 11:21:33 -04:00 committed by GitHub
parent 873706d3c5
commit 3e01965862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -528,7 +528,7 @@ Currently `labels`, `annotations` and `selector` are supported.
### Override labels and annotations and selector
The following KnativeEventing resource overrides the `eventing-webhook` service to have the label `mylabel: foo`, the annotation `myannotataions: bar`,
The following KnativeEventing resource overrides the `eventing-webhook` service to have the label `mylabel: foo`, the annotation `myannotations: bar`,
the selector `myselector: bar`.
```yaml
@ -543,7 +543,7 @@ spec:
labels:
mylabel: foo
annotations:
myannotataions: bar
myannotations: bar
selector:
myselector: bar
```

View File

@ -482,7 +482,7 @@ Currently `replicas`, `labels`, `annotations` and `nodeSelector` are supported.
### Override replicas, labels and annotations
The following KnativeServing resource overrides the `webhook` deployment to have `3` Replicas, the label `mylabel: foo`, and the annotation `myannotataions: bar`,
The following KnativeServing resource overrides the `webhook` deployment to have `3` Replicas, the label `mylabel: foo`, and the annotation `myannotations: bar`,
while other system deployments have `2` Replicas by using `spec.high-availability`.
```yaml
@ -500,7 +500,7 @@ spec:
labels:
mylabel: foo
annotations:
myannotataions: bar
myannotations: bar
```
!!! note
@ -602,7 +602,7 @@ Currently `labels`, `annotations` and `selector` are supported.
### Override labels and annotations and selector
The following KnativeServing resource overrides the `webhook` service to have the label `mylabel: foo`, the annotation `myannotataions: bar`,
The following KnativeServing resource overrides the `webhook` service to have the label `mylabel: foo`, the annotation `myannotations: bar`,
the selector `myselector: bar`.
```yaml
@ -617,7 +617,7 @@ spec:
labels:
mylabel: foo
annotations:
myannotataions: bar
myannotations: bar
selector:
myselector: bar
```