Skip to content

Commit

Permalink
Merge pull request #72 from accorvin/configure-replica-count
Browse files Browse the repository at this point in the history
Allow setting worker replica count to 0
  • Loading branch information
mijaros authored Dec 12, 2023
2 parents d69be8e + 65bb3b9 commit 2780df0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions osia/installer/clouds/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def __init__(self,
cluster_name=None,
base_domain=None,
master_flavor=None,
master_replicas=None,
master_replicas='3',
pull_secret_file=None,
ssh_key_file=None,
worker_flavor=None,
worker_replicas=None,
worker_replicas='3',
certificate_bundle_file=None,
cluster_directory=None,
skip_clean=False,
Expand Down
4 changes: 2 additions & 2 deletions osia/installer/templates/install-config-base.yaml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ compute:
{% block deploymentType %}{% endblock %}:
type: {{ worker_flavor }}
{% else %} platform: {}{% endif %}
replicas: {{ worker_replicas|default("3", true) }}
replicas: {{ worker_replicas }}
controlPlane:
hyperthreading: Enabled
name: master
{% if master_flavor %} platform:
{{ self.deploymentType() }}:
type: {{ master_flavor }}{% else %} platform: {}{% endif %}
replicas: {{ master_replicas|default("3", true) }}
replicas: {{ master_replicas }}
metadata:
name: {{ cluster_name }}
networking:
Expand Down

0 comments on commit 2780df0

Please sign in to comment.