mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-14 13:04:31 +00:00
adding concept content for global configuration, projects, and clusters
This commit is contained in:
@@ -98,4 +98,4 @@ Users can existing Kubernetes cluster into Rancher. Rancher does not automate th
|
||||
|
||||
### Kubeconfig File
|
||||
|
||||
Coming Soon
|
||||
Coming Soon!
|
||||
|
||||
@@ -5,48 +5,79 @@ weight: 2075
|
||||
|
||||
# Global Configuration
|
||||
|
||||
Coming Soon
|
||||
After installing Rancher 2.0, you should configure it to support your users and environment. This section describes the global configurations you should make after installation.
|
||||
|
||||
## Authentication
|
||||
# Authentication
|
||||
|
||||
Coming Soon
|
||||
One of the key features that Rancher adds to Kubernetes is centralized user authentication. This feature allows your users to use one set of credentials to authenticate with any of your Kubernetes clusters.
|
||||
|
||||
### External vs. Local Authentication
|
||||
This centralized user authentication is accomplished using the Rancher authentication proxy, which is installed with the rest of Rancher. This proxy authenticates your users and forwards their requests to your Kubernetes clusters using a service account.
|
||||
|
||||
Coming Soon
|
||||
## External vs. Local Authentication
|
||||
|
||||
The Rancher authentication proxy integrates with the following external authentication services.
|
||||
|
||||
- Microsoft Active Directory
|
||||
- GitHub
|
||||
|
||||
However, Rancher also provides local authentication.
|
||||
|
||||
In most cases, you should use an external authentication service over local, as external authentication allows user management from a central location. However, you may want a few local authentication accounts for managing Rancher under rare circumstances, such as if Active Directory is down.
|
||||
|
||||
## Users and Roles
|
||||
|
||||
Coming Soon
|
||||
Within Rancher, each user autheticates as a _user_, which is an object that grants you access within the Rancher system. As mentioned in the previous sections, users can either be local or external.
|
||||
|
||||
Once the user logs in to Rancher, their _authorization_, or their access rights within the system, are determined by _roles_. Roles are sets of permissions that the user can perform in Rancher
|
||||
|
||||
There are two types of roles in Rancher: default roles and custom roles.
|
||||
|
||||
### Default Roles
|
||||
|
||||
Coming Soon
|
||||
Out-of-the-box, Rancher comes with two default roles:
|
||||
|
||||
- **Administrator:**
|
||||
|
||||
These users have full control over the entire Rancher system and all clusters within it.
|
||||
|
||||
- **Standard User:**
|
||||
|
||||
These users can create new clusters or manage clusters and projects that an administrator has given them access to.
|
||||
|
||||
### Custom Roles
|
||||
|
||||
Coming Soon
|
||||
Rancher lets you create _custom roles_ that let you assing individual permissions to a user. These roles are convenient for defining narrow or specialized persmissions to user within Rancher.
|
||||
|
||||
### Membership
|
||||
|
||||
Coming Soon
|
||||
The projects and clusters accessible to a standard or custom users is determined by _membership_. Membership is a list of users who have access to a specific project or cluster. Each project and cluster includes a tab that Rancher administrators can use to assign membership.
|
||||
|
||||
Non-administrative users do not have access to any existing projects/clusters by default. An administrator must explicitly assign the user membership.
|
||||
|
||||
## Rancher Server URL
|
||||
|
||||
Coming Soon
|
||||
This is the URL of your Rancher Server. All nodes in your cluster must resolve to this URL.
|
||||
|
||||
- You are prompted for this URL upon the very first Rancher login.
|
||||
- You can edit this URL later by selecting **Settings**.
|
||||
|
||||
## Pod Security Policies
|
||||
|
||||
Coming Soon
|
||||
_Pod Security Policies_ are objects that control security-sensitive aspects of pod specification. Pods only run within Kubernetes if they meet the conditions specified in their assigned Pod Security Policy.
|
||||
|
||||
### Best Practice: Set Pod Security as Cluster Level
|
||||
Read more about Pod Security Policies in the [Kubernetes Documentation](https://kubernetes.io/docs/concepts/policy/pod-security-policy/).
|
||||
|
||||
Coming Soon
|
||||
>**Best Practice:**
|
||||
>Set Pod Security at the cluster level.
|
||||
|
||||
## Node Drivers
|
||||
|
||||
Coming Soon
|
||||
Out-of-the-box, Rancher provides support for creating clusters using many popular cloud providers: Amazon EC2, Azure, DigitalOcean, and so on. However, you may want to create a cluster using another cloud provider. In these scenarios, you can create a custom node driver for the cloud provider and point Rancher toward it.
|
||||
|
||||
For more information on creating node drivers, see [https://github.com/rancher/ui-driver-skel](https://github.com/rancher/ui-driver-skel).
|
||||
|
||||
## Node Templates
|
||||
|
||||
Coming Soon
|
||||
You can create new clusters within Rancher using _node templates_. A node template is a virtual machine image used to create a Kubernetes cluster. While creating a cluster, Rancher will prompt you for an image to use as a template. Follow the directions on screen to create the template. During cluster creation, Rancher clones the template and installs different Kubernettes components.
|
||||
|
||||
After you add a node template to Rancher, its stored by the system so that you can use it when creating another cluster later. Node templates are bound to your login. After you add a template, you can remove them from your user profile.
|
||||
|
||||
@@ -7,15 +7,18 @@ weight: 2150
|
||||
|
||||
## What's a Project?
|
||||
|
||||
Project is a new concept introduced by Rancher. It is not a native Kubernetes construct. A project captures a set of policies for a set of namespaces. A user can be assigned a specific role in a project. A role can be owner, member, read-only, or custom. Policies include Kubernetes Role-Based Access Control (RBAC) policies and pod security policies. Rancher 2.0 also implements a canned network policy that isolated containers in different projects. Future version of Rancher will implement more flexible network policies.
|
||||
Project is a new concept introduced by Rancher. It is not a native Kubernetes construct. A project captures a set of policies for a set of namespaces. A user can be assigned a specific role in a project. A role can be owner, member, read-only, or custom. Policies include Kubernetes Role-Based Access Control (RBAC) policies and pod security policies. Rancher 2.0 also implements a canned network policy that isolates containers in different projects. Future versions of Rancher will implement more flexible network policies.
|
||||
|
||||
### Authorization
|
||||
|
||||
Coming Soon
|
||||
Non-administrative users are only authorized for project access after an administrator explicitly adds them to the project's **Members** tab.
|
||||
|
||||
>**Exception:**
|
||||
> Non-administrative users can access projects that they create themselves.
|
||||
|
||||
### Pod Security Policies
|
||||
|
||||
Coming Soon
|
||||
Rancher extends Kubernetes to allow the application of [Pod Sercurity Policies](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) at the project level in additiona to the cluster level. However, as a best practice, we recommend applying Pod Security Policies at the cluster level.
|
||||
|
||||
## Namespaces
|
||||
|
||||
|
||||
Reference in New Issue
Block a user