Skip to content

Commit

Permalink
Merge branch 'main' into fix/5477/expose-service-name-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunYogesh authored Mar 1, 2024
2 parents 3ee1242 + d5d67b1 commit a2ca350
Show file tree
Hide file tree
Showing 34 changed files with 227 additions and 83 deletions.
42 changes: 42 additions & 0 deletions assets/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,48 @@ hr
.section
padding: 4rem 1.5rem

.copyBtn
padding: 10px
background: none
height: 50%
margin-right: 10px
margin-top: 5px
color: #ffffff
font-size: 18px
border: none
outline: none
border-radius: 10px
cursor: pointer
&:focus
outline: 2px solid #5784f5
&:hover
outline: 2px solid #5784f5
&:active
background: #809ce2
&:before
content: "Copied"
position: absolute
top: -45px
right: 0px
background: #5c81dc
padding: 8px 10px
border-radius: 20px
font-size: 15px
display: none
&:after
content: ""
position: absolute
top: -20px
right: 25px
width: 10px
height: 10px
background: #5c81dc
transform: rotate(45deg)
display: none

.copy-text-active .copyBtn:before, .copy-text-active .copyBtn:after,
display: block

@media screen and (max-width: 1024px)
.section
width: 100vw
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.0/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.1/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.10/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
2 changes: 1 addition & 1 deletion content/docs/2.10/scalers/cpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
2 changes: 1 addition & 1 deletion content/docs/2.10/scalers/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
8 changes: 4 additions & 4 deletions content/docs/2.11/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
2 changes: 1 addition & 1 deletion content/docs/2.11/scalers/cpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
2 changes: 1 addition & 1 deletion content/docs/2.11/scalers/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
8 changes: 4 additions & 4 deletions content/docs/2.12/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
2 changes: 1 addition & 1 deletion content/docs/2.12/scalers/cpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
2 changes: 1 addition & 1 deletion content/docs/2.12/scalers/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
8 changes: 4 additions & 4 deletions content/docs/2.13/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
2 changes: 1 addition & 1 deletion content/docs/2.13/scalers/cpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
2 changes: 1 addition & 1 deletion content/docs/2.13/scalers/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
8 changes: 4 additions & 4 deletions content/docs/2.14/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
11 changes: 10 additions & 1 deletion content/docs/2.14/operate/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ All applicable scalers will use this timeout. Setting a per-scaler timeout is cu

## HTTP connection disable keep alive

Keep alive behaviour is enabled by default for every HTTP connection, this could stack a huge amount of connections (one per scaler) in some scenarios.
Keep alive behaviour is enabled by default for every HTTP connection, this could stack a huge amount of connections (one per scaler) in some scenarios.

You can disable keep alive for every HTTP connection by adding the relevant environment variable to both the KEDA Operator, and KEDA Metrics Server deployments:

Expand Down Expand Up @@ -129,6 +129,15 @@ The Kubernetes client config used within KEDA Operator and KEDA Metrics Adapter
| kube-api-burst | cfg.Burst | 30 | Set the burst for throttling requests sent to the apiserver |
| disable-compression | cfg.DisableCompression | true | Disable compression for response in k8s restAPI in client-go, see [this Kubernetes issue](https://github.com/kubernetes/kubernetes/issues/112296) for details |

## gRPC Metrics Service Parameters

The gRPC Metrics Service is part of the KEDA Operator deployment and serves scaling events and metrics from the scalers over gRPC to the Metrics API Service, that in turn serves them to the Kubernetes API Server. The gRPC Metrics Service config used by the KEDA Metrics Adapter to connect to the KEDA Operator can be adjusted by passing the following command-line flags to the Adapter binary:

| Adapter Flag | Default Value | Description |
| ----------------------------------- | ------------------------------------------------- | ---------------------------------------------- |
| metrics-service-address | keda-operator.keda.svc.cluster.local:9666 | The address of the gRPC Metrics Service Server |
| metrics-service-grpc-authority | "" | Host Authority override for the Metrics Service if the Host Authority is not the same as the address used for the gRPC Metrics Service Server. This is required for mutual TLS when the identity of the adapter server as presented in its TLS certificate is not the same as the metrics-service-address |

## Configure `MaxConcurrentReconciles` for Controllers

To implement internal controllers KEDA uses the [controller-runtime project](https://github.com/kubernetes-sigs/controller-runtime), that enables configuration of [MaxConcurrentReconciles property](https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/controller#Options), ie. the maximum number of concurrent reconciles which can be run for a controller.
Expand Down
2 changes: 1 addition & 1 deletion content/docs/2.14/scalers/cpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
2 changes: 1 addition & 1 deletion content/docs/2.14/scalers/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ spec:
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: "50"
containerName: "api"
containerName: "foo"
```
8 changes: 4 additions & 4 deletions content/docs/2.2/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.3/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.4/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.5/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.6/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.7/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
8 changes: 4 additions & 4 deletions content/docs/2.8/concepts/scaling-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ spec:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
- name: demo-rabbitmq-client
image: demo-rabbitmq-client:1
imagePullPolicy: Always
command: ["receive", "amqp://user:[email protected]:5672", "job"]
command: ["receive", "amqp://user:[email protected]:5672"]
envFrom:
- secretRef:
name: rabbitmq-consumer
name: rabbitmq-consumer-secrets
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
Expand Down
Loading

0 comments on commit a2ca350

Please sign in to comment.