kubernetesMasterConfig:
...
apiServerArguments:
cloud-provider:
- "gce"
controllerArguments:
cloud-provider:
- "gce"
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.
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"
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.