#Upgrading k8s to 1.25
1 messages · Page 1 of 1 (latest)
As long as you are running Trident 23.01 or newer, once you upgrade to k8s 1.25, the operator will recognize the change and remove the use of the Pod Security Policies (PSP) that it was previously using. There is no need to uninstall/re-install the operator.
@young mason thanks, so I can tell the customer to make sure to be at least on Trident 23.01 (with the pre-1.25 YAML) and then just upgrade his k8s environment, correct?
Yes
For some reason everyone want this to be more difficult than it is. It really is that simple. 😃
Openshift 4.11 is on Kubernetes 1.24
Openshift 4.12 is on Kubernetes 1.25
The prerequisite for the upgrade from openshift 4.11 to openshift 4.12 is to remove the PSP.
Hence, currently in my openshift 4.11 ( Kubernetes 1.24 ); Netapp trident 23.07.1 installed via trident operator method by applying bundle_pre_1_25.yaml .
https://www.diffchecker.com/0pcIQDep/ displays the diff between these bundle files.
trident bundle pre and post 1_25 - apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: operator.trident.netapp.io
name:
I would like to stay on 23.07.1 . Can I just remove the PSP resources and other deletions and add lines as seen here?
Objective is to have minimal downtime.
Now, I am hitting the https://github.com/NetApp/trident/issues/819 .
What steps did you follow to hit #819?
- On openshift 4.11 ( Kubernetes 1.24 ); manually install using bundle_pre_1.25.yaml
- To prepare for upgrade from 4.11 to openshift 4.12 ( Kubernetes 1.25 ) based; A. uninstall using bundle_pre_1.25.yaml and then manually install bundle_post_1.25.yaml .
As the PSP resource is not bundled with bundle_post_1.25.yaml ; it was not installed. Yet , I noticed PSP resources named similar to trident-node and trident-controller* being created by trident-operator.
As long as you are running Trident 23.01 or newer, once you upgrade to k8s 1.25, the operator will recognize the change and remove the use of the Pod Security Policies (PSP) that it was previously using. There is no need to uninstall/re-install the operator or the bundle.
Thank you.