https://graph.windows.net/abb5adde-bee8-4821-8b03-e63efdc7701c
- The following table maps the values you copied in the Azure portal to the fields in Rancher. ~~~~
+ The following table maps the values you copied in the Azure portal to the fields in Rancher.
Rancher Field | Azure Value
---------|----------
diff --git a/content/rancher/v2.x/en/admin-settings/authentication/microsoft-adfs/_index.md b/content/rancher/v2.x/en/admin-settings/authentication/microsoft-adfs/_index.md
new file mode 100644
index 00000000000..700ec9fda08
--- /dev/null
+++ b/content/rancher/v2.x/en/admin-settings/authentication/microsoft-adfs/_index.md
@@ -0,0 +1,52 @@
+---
+title: Configuring Microsoft Active Directory Federation Service (SAML)
+weight: 1205
+---
+_Available as of v2.0.7_
+
+If your organization uses Microsoft Active Directory Federation Services (AD FS) for user authentication, you can configure Rancher to allow your users to log in using their AD FS credentials.
+
+>**Prerequisites:**
+>
+>- You must have a [Microsoft AD FS Server](https://docs.microsoft.com/en-us/windows-server/identity/active-directory-federation-services) configured.
+>- Export a `federationmetadata.xml` file from your AD FS Server. For more information, see the [PingIdentity video](https://docs.pingidentity.com/bundle/ping_sm_videoLibrary/page/p1_IdentityBridgeADFS.html).
+
+1. From the **Global** view, select **Security > Authentication** from the main menu.
+
+1. Select **Microsoft Active Directory Federation Services**.
+
+1. Complete the **Configure AD FS Account** form. Microsoft AD FS lets you specify an existing Active Directory (AD) server. The examples below describe how you can map AD attributes to fields within Rancher.
+
+ 1. **Display Name Field**: Enter the AD attribute that contains the display name of users (example: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname`).
+
+ 1. **User Name Field**: Enter the AD attribute that contains the user name/given name (example: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name`).
+
+ 1. **UID Field**: Enter an AD attribute that is unique to every user (example: `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn`).
+
+ 1. **Groups Field**: Make entries for managing group memberships (example: `http://schemas.xmlsoap.org/claims/Group`).
+
+ 1. **Rancher API Host**: Enter the URL for your Rancher Server.
+
+ 1. **Private Key** and **Certificate**: This is a key-certificate pair to create a secure shell between Rancher and your AD FS.
+
+ You can generate one using an openssl command. For example:
+
+ ```
+ openssl req -x509 -newkey rsa:2048 -keyout myservice.key -out myservice.cert -days 365 -nodes -subj "/CN=myservice.example.com"
+ ```
+ 1. **Metadata XML**: The `federationmetadata.xml` file exported from your AD FS server. You can find this file at `https://your-AD-Server/federationmetadata/2007-06/federationmetadata.xml`.
+
+
+1. After you complete the **Configure AD FS Account** form, click **Authenticate with AD FS**, which is at the bottom of the page.
+
+ Rancher redirects you to the AD FS login page. Enter credentials that authenticate with Microsoft AD FS to validate your Rancher AD FS configuration.
+
+ >**Note:** You may have to disable your popup blocker to see the AD FS login page.
+
+**Result:** Rancher is configured to work with MS FS. Your users can now sign into Rancher using their MS FS logins.
+
+>**Active Directory Federation Service Caveats:**
+>
+>- AD FS does not support search or lookup. When adding users to [clusters]({{< baseurl >}}/rancher/v2.x/en/k8s-in-rancher/editing-clusters/) or [projects]({{< baseurl >}}/rancher/v2.x/en/k8s-in-rancher/projects-and-namespaces/editing-projects/), the exact IDs must be entered correctly.
+>- When adding users to [clusters]({{< baseurl >}}/rancher/v2.x/en/k8s-in-rancher/editing-clusters/) or [projects]({{< baseurl >}}/rancher/v2.x/en/k8s-in-rancher/projects-and-namespaces/editing-projects/), group IDs are not supported unless the admin who turned on access control is a member of the group.
+>- When adding a group that includes an admin to [clusters]({{< baseurl >}}/rancher/v2.x/en/k8s-in-rancher/editing-clusters/) or [projects]({{< baseurl >}}/rancher/v2.x/en/k8s-in-rancher/projects-and-namespaces/editing-projects/), add it from the drop-down rather than the search bar. If you add the group using the search bar, the group will not get added.
\ No newline at end of file
diff --git a/content/rancher/v2.x/en/admin-settings/authentication/openldap/_index.md b/content/rancher/v2.x/en/admin-settings/authentication/openldap/_index.md
index c577e9a2131..2777c006cac 100644
--- a/content/rancher/v2.x/en/admin-settings/authentication/openldap/_index.md
+++ b/content/rancher/v2.x/en/admin-settings/authentication/openldap/_index.md
@@ -7,51 +7,122 @@ aliases:
_Available as of v2.0.5_
-If your organization uses OpenLDAP for user authentication, you can configure Rancher to allow your users to login using their OpenLDAP credentials.
+If your organization uses LDAP for user authentication, you can configure Rancher to communicate with an OpenLDAP server to authenticate users. This allows Rancher admins to control access to clusters and projects based on users and groups managed externally in the organisation's central user repository, while allowing end-users to authenticate with their LDAP credentials when logging in to the Rancher UI.
+
+## OpenLDAP Authentication Flow
+
+1. When a user attempts to login with his LDAP credentials, Rancher creates an initial bind to the LDAP server using a service account with permissions to search the directory and read user/group attributes.
+2. Rancher then searches the directory for the user by using a search filter based on the provided username and configured attribute mappings.
+3. Once the user has been found, he is authenticated with another LDAP bind request using the user's DN and provided password.
+4. Once authentication succeeded, Rancher then resolves the group memberships both from the membership attribute in the user's object and by performing a group search based on the configured user mapping attribute.
->**Prerequisites:**
+> **Note:**
+>
+> Before you proceed with the configuration, please familiarise yourself with the concepts of [External Authentication Configuration and Principal Users]({{< baseurl >}}/rancher/v2.x/en/admin-settings/authentication/#external-authentication-configuration-and-principal-users).
+
+## Prerequisites
+
+Rancher must be configured with a LDAP bind account (aka service account) to search and retrieve LDAP entries pertaining to users and groups that should have access. It is recommended to not use an admin account or personal account for this purpose and instead create a dedicated account in OpenLDAP with read-only access to users and groups under the configured search base (see below).
+
+> **Using TLS?**
>
->- You must have an [OpenLDAP Server](https://www.openldap.org/) configured.
->- Create a service account in OpenLDAP with `read-only` access. Rancher uses this account to verify group membership when a user makes a request using an API key.
->- Read [External Authentication Configuration and Principal Users]({{< baseurl >}}/rancher/v2.x/en/admin-settings/authentication/#external-authentication-configuration-and-principal-users).
+> If the certificate used by the OpenLDAP server is self-signed or not from a recognised certificate authority, make sure have at hand the CA certificate (concatenated with any intermediate certificates) in PEM format. You will have to paste in this certificate during the configuration so that Rancher is able to validate the certificate chain.
-1. Sign into Rancher using a local user assigned the `administrator` role (i.e., the _local principal_).
+## Configuration Steps
+### Open OpenLDAP Configuration
-2. From the **Global** view, select **Security > Authentication** from the main menu.
+1. Log into the Rancher UI using the initial local `admin` account.
+2. From the **Global** view, navigate to **Security** > **Authentication**
+3. Select **OpenLDAP**. The **Configure an OpenLDAP server** form will be displayed.
-3. Select **OpenLDAP**.
+### Configure OpenLDAP Server Settings
-4. Complete the **Configure an OpenLDAP server** form.
+In the section titled `1. Configure an OpenLDAP server`, complete the fields with the information specific to your server. Please refer to the following table for detailed information on the required values for each parameter.
- You may need to log in to your domain controller to find the information requested in the form.
+> **Note:**
+>
+> If you are in doubt about the correct values to enter in the user/group Search Base configuration fields, consult your LDAP administrator or refer to the section [Identify Search Base and Schema using ldapsearch]({{< baseurl >}}/rancher/v2.x/en/admin-settings/authentication/ad/#annex-identify-search-base-and-schema-using-ldapsearch) in the Active Directory authentication documentation.
- >**Using TLS?**
- >If the certificate is self-signed or not from a recognized certificate authority, make sure you provide the complete chain. That chain is needed to verify the server's certificate.
- If you see this page, the Nginx web server is successfully installed and -working. Further configuration is required.
- -For online documentation and support please refer to
-Nginx.org.
-Commercial support is available at
-nginx.com.
Thank you for using Nginx.
- - -gettingstarted@rancher:~$ - -``` - -## Finished - -Congratulations! You have: - -- Created your first cluster. -- Deployed Nginx to your cluster using a workload. +- [Deploying Workloads]({{< baseurl >}}/rancher/v2.x/en/quick-start-guide//workload/): Deploy a simple workload and expose it, letting you access it from outside the cluster. diff --git a/content/rancher/v2.x/en/quick-start-guide/deployment/_index.md b/content/rancher/v2.x/en/quick-start-guide/deployment/_index.md new file mode 100644 index 00000000000..cfccadb294d --- /dev/null +++ b/content/rancher/v2.x/en/quick-start-guide/deployment/_index.md @@ -0,0 +1,12 @@ +--- +title: Deploying Rancher Server +weight: 100 +--- + +The following are the current guides for provisioning Rancher Server and a cluster: + +- [DigitalOcean Quick Start](./digital-ocean-qs) - We provide you with a Terraform configuration file that completely automates the set up of the Rancher Server and registers a cluster for you to get started with. + +- [Vagrant Quick Start](./quickstart-vagrant) - We provide you with a Vagrant configuration that again completely automates the set up of the Rancher Server and registers a cluster for you to get started with. + +- [Manual Quick Start](./quickstart-manual-setup) - This will guide you through the process and requirements of manually setting up Rancher in any environment. diff --git a/content/rancher/v2.x/en/quick-start-guide/deployment/digital-ocean-qs/_index.md b/content/rancher/v2.x/en/quick-start-guide/deployment/digital-ocean-qs/_index.md new file mode 100644 index 00000000000..bfc0964705a --- /dev/null +++ b/content/rancher/v2.x/en/quick-start-guide/deployment/digital-ocean-qs/_index.md @@ -0,0 +1,56 @@ +--- +title: DigitalOcean Quick Start +weight: 100 +--- +The following steps will quickly deploy a Rancher Server with a single node cluster attached. + +## Prerequisites + +>**Note** +>Deploying to DigitalOcean will incur charges. + +- [DigitalOcean Account](https://www.digitalocean.com): You will require an account on DigitalOcean as this is where the server and cluster will run. +- [DigitalOcean Access Key](https://www.digitalocean.com/community/tutorials/how-to-create-a-digitalocean-space-and-api-key): Use this link to create a DigitalOcean Access Key if you don't have one. +- [Terraform](https://www.terraform.io/downloads.html): Used to provision the server and cluster to DigitalOcean. + + +## Getting Started + +1. Clone [Rancher Quickstart](https://github.com/rancher/quickstart) to a folder using `git clone https://github.com/rancher/quickstart`. + +2. Go into the DigitalOcean folder containing the terraform file by executing `cd quickstart/do`. + +3. Rename the `terraform.tfvars.example` file to `terraform.tfvars`. + +4. Edit `terraform.tfvars` to include your DigitalOcean Access Key. + +5. **Optional:** Edit `terraform.tfvars` to: + + - Change the number of nodes. (`count_agent_all_nodes`) + - Change the password of the `admin` user for logging into Rancher. (`admin_password`) + +6. Run `terraform init`. + +7. To initiate the creation of the environment, run `terraform apply`. Then wait for the the following output: + + ``` + Apply complete! Resources: 2 added, 0 changed, 0 destroyed. + Outputs: + rancher-url = [ + https://xxx.xxx.xxx.xxx + ] + ``` + +8. Paste the `rancher-url` from the output above into the browser. Log in when prompted (default password is `admin`). + +**Result:** Rancher Server and your Kubernetes cluster is installed on DigitalOcean. + +### What's Next? + +Use Rancher to create a deployment. For more information, see [Creating Deployments]({{< baseurl >}}/rancher/v2.x/en/quick-start-guide/workload). + +## Destroying the Environment + +1. From the `quickstart/do` folder, execute `terraform destroy --force`. + +2. Wait for confirmation that all resources have been destroyed. diff --git a/content/rancher/v2.x/en/quick-start-guide/deployment/quickstart-manual-setup/_index.md b/content/rancher/v2.x/en/quick-start-guide/deployment/quickstart-manual-setup/_index.md new file mode 100644 index 00000000000..d46f7938548 --- /dev/null +++ b/content/rancher/v2.x/en/quick-start-guide/deployment/quickstart-manual-setup/_index.md @@ -0,0 +1,129 @@ +--- +title: Manual Quick Start +weight: 300 +--- +Howdy Partner! This tutorial walks you through: + +- Installation of {{< product >}} {{< version >}} +- Creation of your first cluster +- Deployment of an application, Nginx + +## Quick Start Outline + +This Quick Start Guide is divided into different tasks for easier consumption. + + + + +1. [Provision a Linux Host](#1-provision-a-linux-host) + +1. [Install Rancher](#2-install-rancher) + +1. [Log In](#3-log-in) + +1. [Create the Cluster](#4-create-the-cluster) + + +diff --git a/layouts/shortcodes/ports_aws_securitygroup_nodedriver.html b/layouts/shortcodes/ports_aws_securitygroup_nodedriver.html new file mode 100644 index 00000000000..9f45ef205ae --- /dev/null +++ b/layouts/shortcodes/ports_aws_securitygroup_nodedriver.html @@ -0,0 +1,103 @@ +Note:
-The
+rancher/ranchercontainer is hosted on DockerHub. If you don't have access to DockerHub, or you are installing Rancher without an Internet connection, refer to Air Gap Installation.The
rancher/ranchercontainer is hosted on DockerHub. If you don't have access to DockerHub, or you are installing Rancher without an Internet connection, refer to Air Gap Installation.Note:
-For a list of other Rancher Server tags available, refer to Rancher Server Tags.
+For a list of other Rancher Server tags available, refer to Rancher Server Tags.
If you are Creating an Amazon EC2 Cluster, you can choose to let Rancher create a Security Group called rancher-nodes. The following rules are automatically added to this Security Group.
+
Security group: rancher-nodes
+| Type | +Protocol | +Port Range | +Source | +
|---|---|---|---|
| SSH | +TCP | +22 | +0.0.0.0/0 | +
| HTTP | +TCP | +80 | +0.0.0.0/0 | +
| Custom TCP Rule | +TCP | +443 | +0.0.0.0/0 | +
| Custom TCP Rule | +TCP | +2376 | +0.0.0.0/0 | +
| Custom TCP Rule | +TCP | +2379-2380 | +sg-xxx (rancher-nodes) | +
| Custom UDP Rule | +UDP | +4789 | +sg-xxx (rancher-nodes) | +
| Custom TCP Rule | +TCP | +6443 | +0.0.0.0/0 | +
| Custom UDP Rule | +UDP | +8472 | +sg-xxx (rancher-nodes) | +
| Custom TCP Rule | +TCP | +10250-10252 | +sg-xxx (rancher-nodes) | +
| Custom TCP Rule | +TCP | +10256 | +sg-xxx (rancher-nodes) | +
| Custom TCP Rule | +TCP | +30000-32767 | +0.0.0.0/0 | +
| Custom UDP Rule | +UDP | +30000-32767 | +0.0.0.0/0 | +
| Type | +Protocol | +Port Range | +Destination | +
|---|---|---|---|
| All traffic | +All | +All | +0.0.0.0/0 | +
Add one or more Node Pools to your cluster.
A Node Pool is a collection of nodes based on a Node Template. A Node Template defines the configuration of a Node, like what Operating System image, number of CPUs and amount of RAM. Each Node Pool can have one or more Nodes Roles associated with it.
Add one or more node pools to your cluster.
A node pool is a collection of nodes based on a node template. A node Template defines the configuration of a node, like what Operating System to use, number of CPUs and amount of memory. Each node pool must have one or more nodes roles assigned.
diff --git a/src/img/rancher/cluster-options-yaml.png b/src/img/rancher/cluster-options-yaml.png new file mode 100644 index 00000000000..6259a6f9a34 Binary files /dev/null and b/src/img/rancher/cluster-options-yaml.png differ diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/globalpermissionfinal.png b/src/img/rancher/globalpermissionfinal.png similarity index 100% rename from content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/globalpermissionfinal.png rename to src/img/rancher/globalpermissionfinal.png diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/globalpermissionrole.png b/src/img/rancher/globalpermissionrole.png similarity index 100% rename from content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/globalpermissionrole.png rename to src/img/rancher/globalpermissionrole.png diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/globalpermissionuser.png b/src/img/rancher/globalpermissionuser.png similarity index 100% rename from content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/globalpermissionuser.png rename to src/img/rancher/globalpermissionuser.png diff --git a/src/img/rancher/port-communications.png b/src/img/rancher/port-communications.png index ca1d3356854..f356f6b49b0 100644 Binary files a/src/img/rancher/port-communications.png and b/src/img/rancher/port-communications.png differ diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/rancherroles1.png b/src/img/rancher/rancherroles1.png similarity index 100% rename from content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/rancherroles1.png rename to src/img/rancher/rancherroles1.png diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/rancherroles2.png b/src/img/rancher/rancherroles2.png similarity index 100% rename from content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/rancherroles2.png rename to src/img/rancher/rancherroles2.png diff --git a/content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/rancheruser.png b/src/img/rancher/rancheruser.png similarity index 100% rename from content/rancher/v2.x/en/cluster-provisioning/rke-clusters/node-pools/vsphere/rancheruser.png rename to src/img/rancher/rancheruser.png diff --git a/src/img/rancher/user-settings.png b/src/img/rancher/user-settings.png new file mode 100644 index 00000000000..ca545e752a4 Binary files /dev/null and b/src/img/rancher/user-settings.png differ diff --git a/src/img/rancher/vsphere-cluster-create-1.png b/src/img/rancher/vsphere-cluster-create-1.png new file mode 100644 index 00000000000..35faaf08b30 Binary files /dev/null and b/src/img/rancher/vsphere-cluster-create-1.png differ diff --git a/src/img/rancher/vsphere-node-driver-cloudprovider.png b/src/img/rancher/vsphere-node-driver-cloudprovider.png new file mode 100644 index 00000000000..628d2667c9d Binary files /dev/null and b/src/img/rancher/vsphere-node-driver-cloudprovider.png differ diff --git a/src/img/rancher/vsphere-node-template-1.png b/src/img/rancher/vsphere-node-template-1.png new file mode 100644 index 00000000000..c8e7213a56a Binary files /dev/null and b/src/img/rancher/vsphere-node-template-1.png differ diff --git a/src/img/rancher/vsphere-node-template-2.png b/src/img/rancher/vsphere-node-template-2.png new file mode 100644 index 00000000000..34da41240d2 Binary files /dev/null and b/src/img/rancher/vsphere-node-template-2.png differ diff --git a/src/img/rancher/vsphere-storage-class.png b/src/img/rancher/vsphere-storage-class.png new file mode 100644 index 00000000000..00fa558ea14 Binary files /dev/null and b/src/img/rancher/vsphere-storage-class.png differ diff --git a/src/img/rancher/workload-add-volume.png b/src/img/rancher/workload-add-volume.png new file mode 100644 index 00000000000..d3033b17d14 Binary files /dev/null and b/src/img/rancher/workload-add-volume.png differ diff --git a/src/img/rancher/workload-persistent-data.png b/src/img/rancher/workload-persistent-data.png new file mode 100644 index 00000000000..cb4b6532699 Binary files /dev/null and b/src/img/rancher/workload-persistent-data.png differ diff --git a/src/img/rke/vsphere-advanced-parameters.png b/src/img/rke/vsphere-advanced-parameters.png new file mode 100644 index 00000000000..77c558ffc5d Binary files /dev/null and b/src/img/rke/vsphere-advanced-parameters.png differ diff --git a/src/img/rke/vsphere-nodedriver-enable-uuid.png b/src/img/rke/vsphere-nodedriver-enable-uuid.png new file mode 100644 index 00000000000..58bdbd2e1a3 Binary files /dev/null and b/src/img/rke/vsphere-nodedriver-enable-uuid.png differNotes:
-
- After you create a Node Template, it will be saved and you will be able to re-use it in additional Node Pools.
-- Each Node Role (i.e.
-etcd,Control Plane, andWorker) must be fulfilled. Although it is possible to apply multiple Node Roles to a Node Pool, this is not recommended.- The recommended setup is to have a Node Pool with the
+etcdNode Role and a count of three, a Node Pool with theControl PlaneNode Role and a count of at least two, and a Node Pool with theWorkerNode Role and a count of at least two. Regarding theetcdNode Role, refer to the etcd Admin Guide.- Each node role (i.e.
+etcd,Control Plane, andWorker) should be assigned to a distinct node pool. Although it is possible to assign multiple node roles to a node pool, this should not be done for production clusters.- The recommended setup is to have a node pool with the
etcdnode role and a count of three, a node pool with theControl Planenode role and a count of at least two, and a node pool with theWorkernode role and a count of at least two. Regarding theetcdnode role, refer to the etcd Admin Guide.