File tree Expand file tree Collapse file tree 2 files changed +79
-0
lines changed Expand file tree Collapse file tree 2 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 45
45
high-availability:
46
46
replicas: 3
47
47
----
48
+
49
+ . You can also specify the number of replicas for a specific workload.
50
+ +
51
+ [NOTE]
52
+ ====
53
+ Workload-specific configuration overrides the global setting for Knative Eventing.
54
+ ====
55
+ +
56
+ .Example YAML
57
+ [source,yaml]
58
+ ----
59
+ apiVersion: operator.knative.dev/v1beta1
60
+ kind: KnativeEventing
61
+ metadata:
62
+ name: knative-eventing
63
+ namespace: knative-eventing
64
+ spec:
65
+ high-availability:
66
+ replicas: 3
67
+ workloads:
68
+ - name: mt-broker-filter
69
+ replicas: 3
70
+ ----
71
+
72
+ . Verify that the high availability limits are respected:
73
+ +
74
+ .Example command
75
+ [source,terminal]
76
+ ----
77
+ $ oc get hpa -n knative-eventing
78
+ ----
79
+ +
80
+ .Example output
81
+ [source,terminal]
82
+ ----
83
+ NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
84
+ broker-filter-hpa Deployment/mt-broker-filter 1%/70% 3 12 3 112s
85
+ broker-ingress-hpa Deployment/mt-broker-ingress 1%/70% 3 12 3 112s
86
+ eventing-webhook Deployment/eventing-webhook 4%/100% 3 7 3 115s
87
+ ----
Original file line number Diff line number Diff line change 41
41
high-availability:
42
42
replicas: 3
43
43
----
44
+
45
+ . You can also specify the number of replicas for a specific workload.
46
+ +
47
+ [NOTE]
48
+ ====
49
+ Workload-specific configuration overrides the global setting for Knative Serving.
50
+ ====
51
+ +
52
+ .Example YAML
53
+ [source,yaml]
54
+ ----
55
+ apiVersion: operator.knative.dev/v1beta1
56
+ kind: KnativeServing
57
+ metadata:
58
+ name: knative-serving
59
+ namespace: knative-serving
60
+ spec:
61
+ high-availability:
62
+ replicas: 3
63
+ workloads:
64
+ - name: webhook
65
+ replicas: 4
66
+ ----
67
+
68
+ . Verify that the high availability limits are respected:
69
+ +
70
+ .Example command
71
+ [source,terminal]
72
+ ----
73
+ $ oc get hpa -n knative-serving
74
+ ----
75
+ +
76
+ .Example output
77
+ [source,terminal]
78
+ ----
79
+ NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
80
+ activator Deployment/activator 0%/100% 3 22 3 2m24s
81
+ webhook Deployment/webhook 2%/100% 4 8 4 2m23s
82
+ ----
You can’t perform that action at this time.
0 commit comments