Migrate from DaemonSet to Operator in GCP Anthos
This page describes how to migrate your Portworx cluster from a DaemonSet installation to a Portworx Operator installation.
Prerequisites
To migrate, you must meet the following prerequisites:
- Kubernetes version 1.16 or newer
- Portworx installed with one DaemonSet; the scenario of two or more DaemonSet installations on one Kubernetes cluster is not supported
Migrate to Operator
Install Portworx Operator
Install the Portworx Operator version 1.9.0 or newer using one of the following methods:
Install by spec generator
To install using the spec generator, run the following commands:
curl -o operator.yaml https://install.portworx.com/?comp=pxoperator
kubectl apply -f operator.yaml
Wait for the StorageCluster to be created
If you have Portworx DaemonSet installed, the Operator will automatically detect that on startup. The Operator will then create an equivalent StorageCluster object.
Add cloud provider annotation to StorageCluster
Run the appropriate command for your cloud provider from the following list:
- Google Kubernetes Engine (GKE)
kubectl -n kube-system annotate storagecluster --all portworx.io/is-gke="true"