Skip to content

Commit 90dd161

Browse files
committed
Fixed schduling on master nodes
Since dedicated infra nodes are used we can mark master nodes as not schedulable directly in inventory file. Fixes: #214
1 parent 812ed42 commit 90dd161

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

templates/var/lib/ansible/group_vars/masters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mkdir -p /var/lib/os-apply-config/templates/var/lib/ansible/group_vars
22
cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/group_vars/masters.yml
33
num_infra: {{infra_count}}
44
router_vip: {{router_vip}}
5-
openshift_schedulable: true
5+
openshift_schedulable: false
66
openshift_master_api_port: 8443
77
{{#deploy_router}}
88
openshift_hosted_router_selector: region=infra

templates/var/lib/ansible/playbooks/main.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/playbooks/main
7878
<%/router_vip%>
7979
<%/deploy_router%>
8080

81-
- hosts: masters[0]
82-
sudo: yes
83-
tasks:
84-
- name: Disable scheduling on master nodes
85-
shell: oadm manage-node {{ item }} --schedulable=false
86-
with_items: "{{groups['masters']}}"
87-
8881
- hosts: masters[0]
8982
sudo: yes
9083
tasks:

0 commit comments

Comments
 (0)