This topic provides instructions for installing Portworx Backup on GKE with billing through the GCP Marketplace.
Before installing Portworx Backup, make sure that the following requirements are met:
- A GCP GKE cluster that meets the Cluster prerequisites.
- A machine type that meets the hardware requirements defined in the Installation prerequisites.
- Access for Portworx Backup to communicate with the Google Cloud APIs/permissions pointed in GCP GKE section.
You can deploy Portworx Backup on your GKE cluster in two ways, either with GUI or CLI.
Install Portworx Backup through GUI
To install Portworx Backup through GUI in few clicks:
Navigate to the GCP Marketplace console.
In the Search Marketplace search bar at the top, search for
portworx backup. Select Portworx Backup offering.
In the Portworx Backup product details page, click CONFIGURE.
Select CLICK TO DEPLOY ON GKE tab to deploy Portworx Backup through GUI.
Click Create New Cluster if you wish to create a new GKE cluster. The default option is to create a new cluster. Refer GCP documentation for more information on creating a new cluster.
If you already have a GKE cluster, skip step 5 and click OR SELECT AN EXISTING CLUSTER.
- Enter the required values for Namespace, App instance name, PX Backup service account, Storage Class Name, and Reporting service account fields.
- Click DEPLOY.
Install Portworx Backup through CLI
To install Portworx Backup using CLI option, you should:
Generate and apply a license key from the GCP portal.
Generate a spec in Portworx Central that can be used to report billing information to the GCP marketplace.
Apply and tweak the deployment spec.note
Portworx by PureStorage recommends CLI deployment option if you are deploying Portworx Backup on Anthos bare metal or non-GKE setup.
Generate a license key
To generate a license key:
Follow step 1 to step 3 in Install Portworx Backup through GUI.
Select DEPLOY VIA COMMAND LINE tab.
Choose a valid and active reporting service account from the Reporting service account drop-down.
Click DOWNLOAD LICENSE KEY to download your license key file. Your license key file will be of the following format:
Apply the GCP Marketplace license key to your GKE cluster and specify the appropriate namespace where Portworx Backup is going to run:
kubectl apply -f license.yaml -n <namespace>
Once you have created and applied the GCP Marketplace license key to your GKE cluster, you are ready to deploy Portworx Backup.
Generate the spec
To generate kubeconfig details to deploy in your cluster:
Navigate to Portworx Central to generate the spec and login with appropriate credentials.
From the Product Catalog, select Portworx Backup>>On-premises from the product catalog.
In the Spec Details tab of Portworx Backup page, provide the required values and click Next.
Read and click Agree to the Portworx Backup license agreement.
Execute the commands in Step 1 and Step 2 of the Finish tab and click Finish.
Edit and apply the deployment spec
Perform the steps below to apply the deployment spec:
Apply the below spec on your cluster:
Edit volume and volume mounts on px-backup depoloyment:
- name: reporting-log-dir
- name: reporting-log-dir
Add environment variables to the same deployment:
- name: "REPORTING_LOG_DIR"
- name: REPORTING_SECRET
This completes Portworx Backup deployment on your GKE cluster from GCP marketplace.
You can verify successful installation of Portworx Backup on your cluster with the below commands:
Verify the app:
kubectl -n <namespace> get app
NAME TYPE VERSION OWNER READY AGE
pxcentral Portworx Backup 2.5.1 8m39s
Ensure that all the pods related to Portworx Backup are in
kubectl -n <namespace> get pods
NAME READY STATUS RESTARTS AGE
px-backup-5dc9666fb5-cbdjq 1/1 Running 0 45m
pxc-backup-mongodb-0 1/1 Running 0 3h17m
pxc-backup-mongodb-1 1/1 Running 0 3h17m
pxc-backup-mongodb-2 1/1 Running 0 3h17m
pxcentral-apiserver-74b8747844-f9nqc 1/1 Running 0 3h17m
pxcentral-backend-85dbc7d599-hgm99 1/1 Running 0 3h14m
pxcentral-frontend-659bc6f58f-7vh4b 1/1 Running 0 3h14m
pxcentral-keycloak-0 1/1 Running 0 3h17m
pxcentral-keycloak-postgresql-0 1/1 Running 0 3h17m
pxcentral-lh-middleware-6b848df59f-sb2sg 1/1 Running 0 3h14m
pxcentral-mysql-0 1/1 Running 0 3h17m
pxcentral-post-install-hook-b5pbx 0/1 Completed 0 3h17m
Post validation, refer Portworx Backup UI for configuring access to Portworx Backup user interface.
Refer the topics in the below section to get started with Portworx Backup: