mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 06:12:54 +00:00
scale web/task replicas separately
This is a breaking change since 'replicas' is no longer used. Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
@@ -699,8 +699,13 @@ spec:
|
|||||||
service_account_annotations:
|
service_account_annotations:
|
||||||
description: ServiceAccount annotations
|
description: ServiceAccount annotations
|
||||||
type: string
|
type: string
|
||||||
replicas:
|
web_replicas:
|
||||||
description: Number of instance replicas
|
description: Number of web instance replicas
|
||||||
|
type: integer
|
||||||
|
default: 1
|
||||||
|
format: int32
|
||||||
|
task_replicas:
|
||||||
|
description: Number of task instance replicas
|
||||||
type: integer
|
type: integer
|
||||||
default: 1
|
default: 1
|
||||||
format: int32
|
format: int32
|
||||||
|
|||||||
@@ -172,7 +172,8 @@ _init_projects_container_image: quay.io/centos/centos:stream9
|
|||||||
|
|
||||||
create_preload_data: true
|
create_preload_data: true
|
||||||
|
|
||||||
replicas: "1"
|
web_replicas: "1"
|
||||||
|
task_replicas: "1"
|
||||||
|
|
||||||
task_args:
|
task_args:
|
||||||
- /usr/bin/launch_awx_task.sh
|
- /usr/bin/launch_awx_task.sh
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
||||||
{{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=4) | trim }}
|
{{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=4) | trim }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ replicas }}
|
replicas: {{ task_replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-task'
|
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-task'
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ metadata:
|
|||||||
{{ lookup("template", "labels/common.yaml.j2") | indent(width=4) | trim }}
|
{{ lookup("template", "labels/common.yaml.j2") | indent(width=4) | trim }}
|
||||||
{{ lookup("template", "labels/version.yaml.j2") | indent(width=4) | trim }}
|
{{ lookup("template", "labels/version.yaml.j2") | indent(width=4) | trim }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ replicas }}
|
replicas: {{ web_replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'
|
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'
|
||||||
|
|||||||
Reference in New Issue
Block a user