mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-16 10:03:28 +00:00
@@ -23,15 +23,15 @@ If your private registry requires credentials, it cannot be used as the default
|
||||
|
||||
1. Go into the **Settings** view.
|
||||
|
||||

|
||||
{{< img "/img/rancher/airgap/settings.png" "Settings" >}}
|
||||
|
||||
1. Look for the setting called `system-default-registry` and choose **Edit**.
|
||||
|
||||

|
||||
{{< img "/img/rancher/airgap/edit-system-default-registry.png" "Edit" >}}
|
||||
|
||||
1. Change the value to your registry (e.g. `registry.yourdomain.com:port`). Do not prefix the registry with `http://` or `https://`.
|
||||
|
||||

|
||||
{{< img "/img/rancher/airgap/enter-system-default-registry.png" "Save" >}}
|
||||
|
||||
**Result:** Rancher will use your private registry to pull system images.
|
||||
|
||||
|
||||
+2
-2
@@ -131,7 +131,7 @@ In the **Scheduling** section, enter:
|
||||
- The name of the **VM Network** to attach to
|
||||
- The name/path of the **Datastore** to store the disks in
|
||||
|
||||

|
||||
{{< img "/img/rancher/vsphere-node-template-2.png" "image" >}}
|
||||
|
||||
{{% /tab %}}
|
||||
{{% /tabs %}}
|
||||
@@ -289,7 +289,7 @@ For an example of how to provision storage in vSphere using Rancher, refer to th
|
||||
|
||||
1. Set **Cloud Provider** option to `Custom`.
|
||||
|
||||

|
||||
{{< img "/img/rancher/vsphere-node-driver-cloudprovider.png" "vsphere-node-driver-cloudprovider">}}
|
||||
|
||||
1. Click on **Edit as YAML**
|
||||
1. Insert the following structure to the pre-populated cluster YAML. As of Rancher v2.3+, this structure must be placed under `rancher_kubernetes_engine_config`. In versions prior to v2.3, it has to be defined as a top-level field. Note that the `name` *must* be set to `vsphere`.
|
||||
|
||||
+6
-6
@@ -22,20 +22,20 @@ The following steps create a role with the required privileges and then assign i
|
||||
|
||||
3. Create a new role. Give it a name and select the privileges listed in the permissions table above.
|
||||
|
||||

|
||||
{{< img "/img/rancher/rancherroles1.png" "image" >}}
|
||||
|
||||
4. Go to the **Users and Groups** tab.
|
||||
|
||||
5. Create a new user. Fill out the form and then click **OK**. Make sure to note the username and password, because you will need it when configuring node templates in Rancher.
|
||||
|
||||

|
||||
{{< img "/img/rancher/rancheruser.png" "image" >}}
|
||||
|
||||
6. Go to the **Global Permissions** tab.
|
||||
|
||||
7. Create a new Global Permission. Add the user you created earlier and assign it the role you created earlier. Click **OK**.
|
||||
|
||||

|
||||
{{< img "/img/rancher/globalpermissionuser.png" "image" >}}
|
||||
|
||||
{{< img "/img/rancher/globalpermissionrole.png" "image" >}}
|
||||
|
||||

|
||||
|
||||
**Result:** You now have credentials that Rancher can use to manipulate vSphere resources.
|
||||
**Result:** You now have credentials that Rancher can use to manipulate vSphere resources.
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@ To enable disk UUIDs for all VMs created for a cluster,
|
||||
|
||||
4. Enter `disk.enableUUID` as key with a value of **TRUE**.
|
||||
|
||||

|
||||
{{< img "/img/rke/vsphere-nodedriver-enable-uuid.png" "vsphere-nodedriver-enable-uuid" >}}
|
||||
|
||||
5. Click **Create** or **Save**.
|
||||
|
||||
**Result:** The disk UUID is enabled in the vSphere node template.
|
||||
**Result:** The disk UUID is enabled in the vSphere node template.
|
||||
|
||||
@@ -99,6 +99,6 @@ For example, for the `web-deployment.yml` file parsed from v1.6 that we've been
|
||||
|
||||
<figcaption>Port Mapping: Setting NodePort</figcaption>
|
||||
|
||||

|
||||
{{< img "/img/rancher/set-nodeport.gif" "Set NodePort" >}}
|
||||
|
||||
### [Next: Configure Health Checks]({{< baseurl >}}/rancher/v2.x/en/v1.6-migration/monitor-apps)
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ The required property can be set while creating or modifying VMs in the vSphere
|
||||
1. For each VM navigate to the tab **VM Options** and click on **Edit Configuration**.
|
||||
2. Add the parameter `disk.EnableUUID` with a value of **TRUE**.
|
||||
|
||||

|
||||
{{< img "/img/rke/vsphere-advanced-parameters.png" "vsphere-advanced-parameters" >}}
|
||||
|
||||
### Using the GOVC CLI tool
|
||||
|
||||
@@ -32,4 +32,4 @@ $ govc vm.change -vm <vm-path> -e disk.enableUUID=TRUE
|
||||
|
||||
In Rancher v2.0.4+, disk UUIDs are enabled in vSphere node templates by default.
|
||||
|
||||
If you are using Rancher prior to v2.0.4, refer to the [Rancher documentation.]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/#enabling-disk-uuids-with-a-node-template) for details on how to enable a UUID with a Rancher node template.
|
||||
If you are using Rancher prior to v2.0.4, refer to the [Rancher documentation.]({{<baseurl>}}/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/#enabling-disk-uuids-with-a-node-template) for details on how to enable a UUID with a Rancher node template.
|
||||
|
||||
@@ -34,7 +34,7 @@ You can upload this snapshot directly to an S3 backend with the [S3 options]({{<
|
||||
$ rke etcd snapshot-save --name snapshot.db --config cluster.yml
|
||||
```
|
||||
|
||||

|
||||
{{< img "/img/rke/rke-etcd-backup.png" "etcd snapshot" >}}
|
||||
|
||||
### 2. Simulate a Node Failure
|
||||
|
||||
@@ -133,7 +133,7 @@ Back up the Kubernetes cluster by taking a local snapshot:
|
||||
$ rke etcd snapshot-save --name snapshot.db --config cluster.yml
|
||||
```
|
||||
|
||||

|
||||
{{< img "/img/rke/rke-etcd-backup.png" "etcd snapshot" >}}
|
||||
|
||||
<a id="store-the-snapshot-externally-rke-prior-to-v0.2.0"></a>
|
||||
### 2. Store the Snapshot Externally
|
||||
@@ -250,4 +250,4 @@ nginx-65899c769f-qkhml 1/1 Running 0 17s
|
||||
```
|
||||
|
||||
{{% /tab %}}
|
||||
{{% /tabs %}}
|
||||
{{% /tabs %}}
|
||||
|
||||
@@ -1,17 +1,14 @@
|
||||
{{ $img := .Get 0 }}
|
||||
{{ $alt := .Get 1 }}
|
||||
{{ with resources.Get $img }}
|
||||
{{ $thumb20 := .Resize "2000x" }}
|
||||
{{ $thumb16 := .Resize "1600x" }}
|
||||
{{ $thumb12 := .Resize "1200x" }}
|
||||
{{ $thumb10 := .Resize "1000x" }}
|
||||
{{ $thumb8 := .Resize "800x" }}
|
||||
{{ $thumb6 := .Resize "600x" }}
|
||||
{{ $thumb4 := .Resize "400x" }}
|
||||
{{ $thumb2 := .Resize "200x" }}
|
||||
<img
|
||||
srcset="{{ $thumb2.Permalink }} 200w, {{ $thumb4.Permalink }} 400w, {{ $thumb6.Permalink }} 600w, {{ $thumb8.Permalink }} 800w, {{ $thumb10.Permalink }} 1000w, {{ $thumb12.Permalink }} 1200w, {{ $thumb16.Permalink }} 1600w, {{ $thumb20.Permalink }} 2000w"
|
||||
src="{{ .Permalink }}"
|
||||
srcset="{{ $thumb2.Permalink }} 200w, {{ $thumb4.Permalink }} 400w, {{ $thumb6.Permalink }} 600w, {{ $thumb8.Permalink }} 800w, {{ $thumb10.Permalink }} 1000w"
|
||||
src="{{ $thumb6.Permalink }}"
|
||||
alt ="{{$alt}}"
|
||||
>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user