forked from rancher/rancher-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rancher#481 from rancher/release/v2.7.2
Publishing v2.7.2 docs
- Loading branch information
Showing
83 changed files
with
30,623 additions
and
14,617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,6 @@ | |
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
yarn-error.log* | ||
|
||
.idea/ |
37 changes: 37 additions & 0 deletions
37
...arted/installation-and-upgrade/install-upgrade-on-a-kubernetes-cluster/rancher-psact.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: apiserver.config.k8s.io/v1 | ||
kind: AdmissionConfiguration | ||
plugins: | ||
- configuration: | ||
apiVersion: pod-security.admission.config.k8s.io/v1 | ||
defaults: | ||
audit: restricted | ||
audit-version: latest | ||
enforce: restricted | ||
enforce-version: latest | ||
warn: restricted | ||
warn-version: latest | ||
exemptions: | ||
namespaces: | ||
- ingress-nginx | ||
- kube-system | ||
- cattle-system | ||
- cattle-epinio-system | ||
- cattle-fleet-system | ||
- longhorn-system | ||
- cattle-neuvector-system | ||
- cattle-monitoring-system | ||
- rancher-alerting-drivers | ||
- cis-operator-system | ||
- cattle-csp-adapter-system | ||
- cattle-externalip-system | ||
- cattle-gatekeeper-system | ||
- istio-system | ||
- cattle-istio-system | ||
- cattle-logging-system | ||
- cattle-windows-gmsa-system | ||
- cattle-sriov-system | ||
- cattle-ui-plugin-system | ||
- tigera-operator | ||
kind: PodSecurityConfiguration | ||
name: PodSecurity | ||
path: "" |
62 changes: 62 additions & 0 deletions
62
...tall-upgrade-on-a-kubernetes-cluster/upgrade-a-hardened-cluster-to-k8s-v1-25.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
title: Upgrade a Hardened Custom/Imported Cluster to Kubernetes v1.25 | ||
--- | ||
|
||
Kubernetes v1.25 changes how clusters describe and implement security policies. From this version forward, [Pod Security Policies (PSPs)](https://kubernetes.io/docs/concepts/security/pod-security-policy/) are no longer available. Kubernetes v1.25 replaces them with new security objects: [Pod Security Standards (PSS)](https://kubernetes.io/docs/concepts/security/pod-security-standards/), and [Pod Security Admissions (PSAs)](https://kubernetes.io/docs/concepts/security/pod-security-admission/). | ||
|
||
If you have custom or imported hardened clusters, you must make special preparations to ensure that the upgrade from an earlier version of Kubernetes to v1.25 or later goes smoothly. | ||
|
||
## Upgrading Imported Hardened Clusters to Kubernetes v1.25 or Later | ||
|
||
<Tabs groupId="k8s-distro"> | ||
<TabItem value="RKE2" default> | ||
|
||
Perform the following on each node in the cluster: | ||
1. Save [`rancher-psact.yaml`](./rancher-psact.yaml) in `/etc/rancher/rke2`. | ||
1. Edit the RKE2 configuration file: | ||
1. Update the `profile` field to `cis-1.23`. | ||
1. Specify the path for the configuration file that you just added: `pod-security-admission-config-file: /etc/rancher/rke2/rancher-psact.yaml`. | ||
|
||
</TabItem> | ||
<TabItem value="K3s"> | ||
|
||
Perform the following on each node in the cluster: | ||
|
||
Follow the official K3s instructions on [Upgrading Hardened Clusters from v1.24.x to v1.25.x](https://docs.k3s.io/known-issues#hardened-125), but use a [custom](./rancher-psact.yaml) Rancher PSA configuration template, instead of the configuration provided on the official K3s site. | ||
</TabItem> | ||
</Tabs> | ||
|
||
After you perform these steps, you can upgrade the cluster's Kubernetes version through the Rancher UI: | ||
|
||
1. In the upper left corner, click **☰ > Cluster Management**. | ||
1. Find the cluster you want to update in the **Clusters** table, and click the **⋮**. | ||
1. Select **Edit Config**. | ||
1. In the **Kubernetes Version** dropdown menu, select the version that you would like to use. | ||
1. Click **Save**. | ||
|
||
## Upgrading Custom Hardened Clusters to Kubernetes v1.25 or Later | ||
|
||
<Tabs groupId="k8s-distro"> | ||
<TabItem value="RKE2" default> | ||
|
||
1. In the upper left corner, click **☰ > Cluster Management**. | ||
1. Find the cluster you want to update in the **Clusters** table, and click the **⋮**. | ||
1. Select **Edit Config**. | ||
1. Under **Basics > Security**, in the **CIS Profile** dropdown menu, select `cis-1.23`. | ||
1. In the **Default Pod Security Admission** dropdown menu, select `rancher-restricted`. | ||
1. In the **Kubernetes Version** dropdown menu, select the version that you would like to use. | ||
1. Click **Save**. | ||
|
||
</TabItem> | ||
<TabItem value="K3s"> | ||
|
||
1. In the upper left corner, click **☰ > Cluster Management**. | ||
1. Find the cluster you want to update in the **Clusters** table, and click the **⋮**. | ||
1. Select **Edit YAML**. | ||
1. Delete `PodSecurityPolicy` from `kube-apiserver-arg.enable-admission-plugins` | ||
1. Add this line to the `spec` field: `defaultPodSecurityAdmissionConfigurationTemplateName: rancher-restricted` | ||
1. Update `kubernetesVersion` to your chosen version (v1.25 or later). | ||
1. Click **Save**. | ||
|
||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.