2. Deploy Portworx on AKS
Install
Create a secret to give Portworx access to Azure APIs
Update <AZURE_TENANT_ID>
, <AZURE_CLIENT_ID>
and <AZURE_CLIENT_SECRET>
in below command and create a secret called px-azure.
kubectl create secret generic -n kube-system px-azure --from-literal=AZURE_TENANT_ID=<AZURE_TENANT_ID> \
--from-literal=AZURE_CLIENT_ID=<AZURE_CLIENT_ID> \
--from-literal=AZURE_CLIENT_SECRET=<AZURE_CLIENT_SECRET>
secret/px-azure created
When you generate the spec in the next step, the Portworx pod will fetch the Azure environment variables from this secret.
Generate the specs
To install Portworx with Kubernetes, you must first generate Kubernetes manifests that you will deploy in your cluster:
- Navigate to PX-Central and log in, or create an account
Select Install and Run to open the Spec Generator
Select New Spec
Portworx can also be installed using it’s Helm chart by following instructions here. The above method is recommended over helm as the wizard will guide you based on your environment.
NOTE: To deploy Portworx to an Azure Sovereign cloud, you must go to the Customize page and set the value of the AZURE_ENVIRONMENT
variable. The following example screenshot shows how you can deploy Portworx to the Azure US Government cloud:
Apply the specs
Apply the generated specs to your cluster.
kubectl apply -f px-spec.yaml
Monitor the portworx pods
Wait till all Portworx pods show as ready in the below output:
kubectl get pods -o wide -n kube-system -l name=portworx
Monitor Portworx cluster status
PX_POD=$(kubectl get pods -l name=portworx -n kube-system -o jsonpath='{.items[0].metadata.name}')
kubectl exec $PX_POD -n kube-system -- /opt/pwx/bin/pxctl status
Post-Install
Once you have a running Portworx installation, below sections are useful.
-
Storage operations
Learn how to perform various storage operations using Portworx on Kubernetes
-
Stateful applications on Kubernetes
Learn how to install various applications with Portworx on Kubernetes
-
Operate and Maintain
Operations guide for running Portworx in Production with Kubernetes