This is a cache of https://docs.openshift.com/enterprise/3.1/install_config/configuring_gce.html. It is a snapshot of the page at 2024-11-24T04:33:07.254+0000.
Configuring for GCE | Installation and Configuration | OpenShift Enterprise 3.1
×

Overview

OpenShift can be configured to access an GCE infrastructure, including using GCE volumes as persistent storage for application data. After GCE is configured properly, some additional configurations will need to be completed on the OpenShift hosts.

Configuring masters

Edit or create the master configuration file on all masters (/etc/origin/master/master-config.yaml by default) and update the contents of the apiServerArguments and controllerArguments sections:

kubernetesmasterConfig:
  ...
  apiServerArguments:
    cloud-provider:
      - "gce"
  controllerArguments:
    cloud-provider:
      - "gce"

Configuring Nodes

Edit or create the node configuration file on all nodes (/etc/origin/node/node-config.yaml by default) and update the contents of the kubeletArguments section:

kubeletArguments:
  cloud-provider:
    - "gce"

Then, start or restart the OpenShift services on the master and all nodes.