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:
Rick Elrod
2022-12-10 22:06:25 -06:00
committed by Hao Liu
parent 12e51ad9ad
commit ebc040fe75
4 changed files with 11 additions and 5 deletions

View File

@@ -699,8 +699,13 @@ spec:
service_account_annotations:
description: ServiceAccount annotations
type: string
replicas:
description: Number of instance replicas
web_replicas:
description: Number of web instance replicas
type: integer
default: 1
format: int32
task_replicas:
description: Number of task instance replicas
type: integer
default: 1
format: int32

View File

@@ -172,7 +172,8 @@ _init_projects_container_image: quay.io/centos/centos:stream9
create_preload_data: true
replicas: "1"
web_replicas: "1"
task_replicas: "1"
task_args:
- /usr/bin/launch_awx_task.sh

View File

@@ -8,7 +8,7 @@ metadata:
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
{{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=4) | trim }}
spec:
replicas: {{ replicas }}
replicas: {{ task_replicas }}
selector:
matchLabels:
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-task'

View File

@@ -9,7 +9,7 @@ metadata:
{{ lookup("template", "labels/common.yaml.j2") | indent(width=4) | trim }}
{{ lookup("template", "labels/version.yaml.j2") | indent(width=4) | trim }}
spec:
replicas: {{ replicas }}
replicas: {{ web_replicas }}
selector:
matchLabels:
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'