Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions playbooks/openshift-node/private/join.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@
openshift_master_host: "{{ groups.oo_first_master.0 }}"
openshift_manage_node_is_master: "{{ ('oo_masters_to_config' in group_names) | bool }}"

- name: Create additional node network plugin groups
hosts: "{{ openshift_node_scale_up_group | default('oo_nodes_to_config') }}"
tasks:
# Creating these node groups will prevent a ton of skipped tasks.
# Create group for calico nodes
- group_by:
key: oo_nodes_use_{{ (openshift_use_calico | default(False)) | ternary('calico','nothing') }}
changed_when: False

- name: Additional calico node config
hosts: oo_nodes_use_calico
roles:
- role: calico
when: openshift_use_calico | default(false) | bool

- name: Node Join Checkpoint End
hosts: all
gather_facts: false
Expand Down
2 changes: 1 addition & 1 deletion roles/calico/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# TODO: Move into shared vars file
- name: Load default node image
set_fact:
calico_node_image: "quay.io/calico/node:v2.6.7"
calico_node_image: "quay.io/calico/node:v3.1.3"
when: calico_node_image is not defined

- name: Prepull Images
Expand Down
2 changes: 1 addition & 1 deletion roles/calico_master/templates/calicov3.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ spec:
# chosen from this range. Changing this value after installation will have
# no effect. This should fall within '--cluster-cidr'.
- name: CALICO_IPV4POOL_CIDR
value: "{{ openshift.master.sdn_cluster_network_cidr }}"
value: "{{ openshift_cluster_network_cidr }}"
- name: CALICO_IPV4POOL_IPIP
value: "{{ calico_ipv4pool_ipip }}"
# Disable IPv6 on Kubernetes.
Expand Down