mirror of https://github.com/knative/docs.git
Instruction on how to override the labels and annotations for services (#4934)
This commit is contained in:
parent
873706d3c5
commit
3e01965862
|
@ -528,7 +528,7 @@ Currently `labels`, `annotations` and `selector` are supported.
|
||||||
|
|
||||||
### Override labels and annotations and selector
|
### 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`.
|
the selector `myselector: bar`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -543,7 +543,7 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
mylabel: foo
|
mylabel: foo
|
||||||
annotations:
|
annotations:
|
||||||
myannotataions: bar
|
myannotations: bar
|
||||||
selector:
|
selector:
|
||||||
myselector: bar
|
myselector: bar
|
||||||
```
|
```
|
||||||
|
|
|
@ -482,7 +482,7 @@ Currently `replicas`, `labels`, `annotations` and `nodeSelector` are supported.
|
||||||
|
|
||||||
### Override replicas, labels and annotations
|
### 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`.
|
while other system deployments have `2` Replicas by using `spec.high-availability`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -500,7 +500,7 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
mylabel: foo
|
mylabel: foo
|
||||||
annotations:
|
annotations:
|
||||||
myannotataions: bar
|
myannotations: bar
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
|
@ -602,7 +602,7 @@ Currently `labels`, `annotations` and `selector` are supported.
|
||||||
|
|
||||||
### Override labels and annotations and selector
|
### 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`.
|
the selector `myselector: bar`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -617,7 +617,7 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
mylabel: foo
|
mylabel: foo
|
||||||
annotations:
|
annotations:
|
||||||
myannotataions: bar
|
myannotations: bar
|
||||||
selector:
|
selector:
|
||||||
myselector: bar
|
myselector: bar
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue