Skip to content

Commit

Permalink
Upgrade configs for protobuf support.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoodwin committed Aug 8, 2016
1 parent f28826b commit cf84520
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/byo/openshift-cluster/upgrades/v3_3/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@
- include: ../../../../common/openshift-cluster/upgrades/upgrade.yml
vars:
openshift_deployment_type: "{{ deployment_type }}"
master_config_hook: "v3_3/master_config_upgrade.yml"
node_config_hook: "v3_3/node_config_upgrade.yml"
- include: ../../../openshift-master/restart.yml
- include: ../../../../common/openshift-cluster/upgrades/post.yml
5 changes: 5 additions & 0 deletions playbooks/common/openshift-cluster/upgrades/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
- include: rpm_upgrade.yml component=master
when: not openshift.common.is_containerized | bool

- include: "{{ master_config_hook }}"
when: master_config_hook is defined

- include_vars: ../../../../roles/openshift_master/vars/main.yml

- name: Update systemd units
Expand Down Expand Up @@ -90,6 +93,8 @@

- include: docker/upgrade.yml
when: l_docker_upgrade is defined and l_docker_upgrade | bool and not openshift.common.is_atomic | bool
- include: "{{ node_config_hook }}"
when: node_config_hook is defined

- include: rpm_upgrade.yml
vars:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.externalKubernetesClientConnectionOverrides.acceptContentTypes'
yaml_value: 'application/vnd.kubernetes.protobuf,application/json'

- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.externalKubernetesClientConnectionOverrides.contentType'
yaml_value: 'application/vnd.kubernetes.protobuf'

- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.externalKubernetesClientConnectionOverrides.burst'
yaml_value: 400

- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.externalKubernetesClientConnectionOverrides.ops'
yaml_value: 200

- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.openshiftLoopbackClientConnectionOverrides.acceptContentTypes'
yaml_value: 'application/vnd.kubernetes.protobuf,application/json'

- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.openshiftLoopbackClientConnectionOverrides.contentType'
yaml_value: 'application/vnd.kubernetes.protobuf'

- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.openshiftLoopbackClientConnectionOverrides.burst'
yaml_value: 600

- modify_yaml:
dest: "{{ openshift.common.config_base}}/master/master-config.yaml"
yaml_key: 'masterClients.openshiftLoopbackClientConnectionOverrides.ops'
yaml_value: 300
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- modify_yaml:
dest: "{{ openshift.common.config_base}}/node/node-config.yaml"
yaml_key: 'masterClientConnectionOverrides.acceptContentTypes'
yaml_value: 'application/vnd.kubernetes.protobuf,application/json'

- modify_yaml:
dest: "{{ openshift.common.config_base}}/node/node-config.yaml"
yaml_key: 'masterClientConnectionOverrides.contentType'
yaml_value: 'application/vnd.kubernetes.protobuf'

- modify_yaml:
dest: "{{ openshift.common.config_base}}/node/node-config.yaml"
yaml_key: 'masterClientConnectionOverrides.burst'
yaml_value: 40

- modify_yaml:
dest: "{{ openshift.common.config_base}}/node/node-config.yaml"
yaml_key: 'masterClientConnectionOverrides.ops'
yaml_value: 20

0 comments on commit cf84520

Please sign in to comment.