此内容没有您所选择的语言版本。
Chapter 14. Configuring for GCE
14.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.
14.2. 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"
14.3. 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.