mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 21:18:04 +00:00
Fix errors on GCE cloud provider page
This commit is contained in:
@@ -26,6 +26,10 @@ For details on enabling the Amazon cloud provider, refer to [this page.]({{<base
|
|||||||
|
|
||||||
For details on enabling the Azure cloud provider, refer to [this page.]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/rke-clusters/cloud-providers/azure)
|
For details on enabling the Azure cloud provider, refer to [this page.]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/rke-clusters/cloud-providers/azure)
|
||||||
|
|
||||||
|
### Setting up the GCE Cloud Provider
|
||||||
|
|
||||||
|
For details on enabling the Google Compute Engine cloud provider, refer to [this page.]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/rke-clusters/cloud-providers/gce)
|
||||||
|
|
||||||
### Setting up a Custom Cloud Provider
|
### Setting up a Custom Cloud Provider
|
||||||
|
|
||||||
The `Custom` cloud provider is available if you want to configure any [Kubernetes cloud provider](https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/).
|
The `Custom` cloud provider is available if you want to configure any [Kubernetes cloud provider](https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/).
|
||||||
|
|||||||
+23
-26
@@ -3,9 +3,7 @@ title: Setting up the Google Compute Engine Cloud Provider
|
|||||||
weight: 3
|
weight: 3
|
||||||
---
|
---
|
||||||
|
|
||||||
In this section, you'll learn how to enable the Google Compute Engine (GCE) cloud provider for provisioning custom clusters in Rancher. A custom cluster is one in which Rancher installs Kubernetes on existing nodes.
|
In this section, you'll learn how to enable the Google Compute Engine (GCE) cloud provider for custom clusters in Rancher. A custom cluster is one in which Rancher installs Kubernetes on existing nodes.
|
||||||
|
|
||||||
These steps are required for provisioning GCE Kubernetes clusters that include Windows nodes.
|
|
||||||
|
|
||||||
The official Kubernetes documentation for the GCE cloud provider is [here.](https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#gce)
|
The official Kubernetes documentation for the GCE cloud provider is [here.](https://kubernetes.io/docs/concepts/cluster-administration/cloud-providers/#gce)
|
||||||
|
|
||||||
@@ -17,18 +15,18 @@ If you are using Calico,
|
|||||||
1. Click **Edit as YAML,** and enter the following configuration:
|
1. Click **Edit as YAML,** and enter the following configuration:
|
||||||
```yaml
|
```yaml
|
||||||
rancher_kubernetes_engine_config:
|
rancher_kubernetes_engine_config:
|
||||||
cloud_provider:
|
cloud_provider: // indent 2 spaces than `rancher_kubernetes_engine_config`
|
||||||
name: gce
|
name: gce
|
||||||
customCloudProvider: |-
|
customCloudProvider: |-
|
||||||
[Global]
|
[Global]
|
||||||
project-id=<your projcet ID, optional>
|
project-id=<your project ID, optional>
|
||||||
network-name=<your network, optional if using default network>
|
network-name=<your network, optional if using default network>
|
||||||
subnetwork-name=<your subnetwork of the above network, optional if using default network>
|
subnetwork-name=<your subnetwork of the above network, optional if using default network>
|
||||||
node-instance-prefix=<your instance group name/your instance name specific prefix, required>
|
node-instance-prefix=<your instance group name/your instance name specific prefix, required>
|
||||||
node-tags=<your network tags, must patch one or some tags, required>
|
node-tags=<your network tags, must patch one or some tags, required>
|
||||||
network:
|
network:
|
||||||
options:
|
options:
|
||||||
calico_cloud_provider: "gce"
|
calico_cloud_provider: "gce"
|
||||||
plugin: "calico"
|
plugin: "calico"
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -38,18 +36,17 @@ If you are using Canal or Flannel,
|
|||||||
1. Click **Edit as YAML,** and enter the following configuration:
|
1. Click **Edit as YAML,** and enter the following configuration:
|
||||||
```yaml
|
```yaml
|
||||||
rancher_kubernetes_engine_config:
|
rancher_kubernetes_engine_config:
|
||||||
cloud_provider:
|
cloud_provider:
|
||||||
name: gce
|
name: gce
|
||||||
customCloudProvider: |-
|
customCloudProvider: |-
|
||||||
[Global]
|
[Global]
|
||||||
project-id=<your project ID, optional>
|
project-id=<your project ID, optional>
|
||||||
network-name=<your network, optional if using default network>
|
network-name=<your network, optional if using default network>
|
||||||
subnetwork-name=<your subnetwork of the above network, optional if using default network>
|
subnetwork-name=<your subnetwork of the above network, optional if using default network>
|
||||||
node-instance-prefix=<your instance group name/your instance name specific prefix, required>
|
node-instance-prefix=<your instance group name/your instance name specific prefix, required>
|
||||||
node-tags=<your network tags, must patch one or some tags, required>
|
node-tags=<your network tags, must patch one or some tags, required>
|
||||||
services:
|
services:
|
||||||
kube_controller:
|
kube_controller:
|
||||||
extra_args:
|
extra_args:
|
||||||
configure-cloud-routes: true # we need to allow
|
configure-cloud-routes: true # we need to allow the cloud provider configure the routes for the hosts
|
||||||
# the cloud provider to configure the routes for the hosts
|
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user