commit
b3a689658b
|
@ -39,7 +39,7 @@
|
||||||
register: install_helm
|
register: install_helm
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
#FIXME: https://github.com/helm/helm/issues/4063
|
# FIXME: https://github.com/helm/helm/issues/4063
|
||||||
- name: Helm | Force apply tiller overrides if necessary
|
- name: Helm | Force apply tiller overrides if necessary
|
||||||
shell: >
|
shell: >
|
||||||
{{ bin_dir }}/helm init --upgrade --tiller-image={{ tiller_image_repo }}:{{ tiller_image_tag }} --tiller-namespace={{ tiller_namespace }}
|
{{ bin_dir }}/helm init --upgrade --tiller-image={{ tiller_image_repo }}:{{ tiller_image_tag }} --tiller-namespace={{ tiller_namespace }}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: Create kubernetes directories
|
- name: Create kubernetes directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: Update package management cache (YUM)
|
- name: Update package management cache (YUM)
|
||||||
yum:
|
yum:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
# Todo : selinux configuration
|
# Todo : selinux configuration
|
||||||
- name: Confirm selinux deployed
|
- name: Confirm selinux deployed
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Enables Internet connectivity from containers
|
# Enables Internet connectivity from containers
|
||||||
nat_outgoing: true
|
nat_outgoing: true
|
||||||
|
|
||||||
#add default ippool name
|
# add default ippool name
|
||||||
calico_pool_name: "default-pool"
|
calico_pool_name: "default-pool"
|
||||||
|
|
||||||
# Use IP-over-IP encapsulation across hosts
|
# Use IP-over-IP encapsulation across hosts
|
||||||
|
|
|
@ -164,10 +164,10 @@
|
||||||
delay: "{{ retry_stagger | random + 3 }}"
|
delay: "{{ retry_stagger | random + 3 }}"
|
||||||
with_items: "{{ peers|default([]) }}"
|
with_items: "{{ peers|default([]) }}"
|
||||||
when:
|
when:
|
||||||
- calico_version_on_server.stdout|version_compare('v3.0.0', '<')
|
- calico_version_on_server.stdout|version_compare('v3.0.0', '<')
|
||||||
- not calico_upgrade_enabled
|
- not calico_upgrade_enabled
|
||||||
- peer_with_router|default(false)
|
- peer_with_router|default(false)
|
||||||
- inventory_hostname in groups['k8s-cluster']
|
- inventory_hostname in groups['k8s-cluster']
|
||||||
|
|
||||||
- name: Calico | Configure peering with route reflectors
|
- name: Calico | Configure peering with route reflectors
|
||||||
shell: >
|
shell: >
|
||||||
|
@ -208,10 +208,10 @@
|
||||||
delay: "{{ retry_stagger | random + 3 }}"
|
delay: "{{ retry_stagger | random + 3 }}"
|
||||||
with_items: "{{ groups['calico-rr'] | default([]) }}"
|
with_items: "{{ groups['calico-rr'] | default([]) }}"
|
||||||
when:
|
when:
|
||||||
- calico_version_on_server.stdout|version_compare('v3.0.0', '<')
|
- calico_version_on_server.stdout|version_compare('v3.0.0', '<')
|
||||||
- not calico_upgrade_enabled
|
- not calico_upgrade_enabled
|
||||||
- peer_with_calico_rr|default(false)
|
- peer_with_calico_rr|default(false)
|
||||||
- hostvars[item]['cluster_id'] == cluster_id
|
- hostvars[item]['cluster_id'] == cluster_id
|
||||||
|
|
||||||
|
|
||||||
- name: Calico | Create calico manifests
|
- name: Calico | Create calico manifests
|
||||||
|
|
|
@ -136,6 +136,7 @@ spec:
|
||||||
memory: {{ calico_node_memory_requests }}
|
memory: {{ calico_node_memory_requests }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
host: 127.0.0.1
|
||||||
path: /liveness
|
path: /liveness
|
||||||
port: 9099
|
port: 9099
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
@ -143,6 +144,7 @@ spec:
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
host: 127.0.0.1
|
||||||
path: /readiness
|
path: /readiness
|
||||||
port: 9099
|
port: 9099
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
|
Loading…
Reference in New Issue