summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-13 13:22:00 -0400
committerScott Dodson <sdodson@redhat.com>2017-06-16 07:55:00 -0400
commit09823dc64b1447a0a5a2a57921c74c77705c0b3d (patch)
tree1a2265495694c868b0919024c68ee4910988e6e6 /roles/openshift_master/tasks
parentbf21ad12cf4e61e62d8685fbf190fa2f58602acf (diff)
downloadopenshift-09823dc64b1447a0a5a2a57921c74c77705c0b3d.tar.gz
openshift-09823dc64b1447a0a5a2a57921c74c77705c0b3d.tar.bz2
openshift-09823dc64b1447a0a5a2a57921c74c77705c0b3d.tar.xz
openshift-09823dc64b1447a0a5a2a57921c74c77705c0b3d.zip
etcd v3 for clean installs
If we have no master config assume that we're a clean install. If we're a clean install and we're 3.6 or greater use etcd v3 storage.
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r--roles/openshift_master/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index aed5598c0..035c15fef 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -164,6 +164,26 @@
- restart master api
- restart master controllers
+- name: Configure master to use etcd3 storage backend on 3.6 clean installs
+ yedit:
+ src: /etc/origin/master/master-config.yaml
+ key: "{{ item.key }}"
+ value: "{{ item.value }}"
+ with_items:
+ - key: kubernetesMasterConfig.apiServerArguments.storage-backend
+ value:
+ - etcd3
+ - key: kubernetesMasterConfig.apiServerArguments.storage-media-type
+ value:
+ - application/vnd.kubernetes.protobuf
+ when:
+ - r_openshift_master_clean_install
+ - openshift.common.version_gte_3_6
+ notify:
+ - restart master
+ - restart master api
+ - restart master controllers
+
- include: set_loopback_context.yml
when: openshift.common.version_gte_3_2_or_1_2