Prepare your environment
Follow the instructions on this page to prepare your environment.
Install storkctl
Perform the following steps to download storkctl
from the Stork pod to the system where you are running kubectl
:
Linux:
STORK_POD=$(kubectl get pods -n <namespace> -l name=stork -o jsonpath='{.items[0].metadata.name}') && kubectl cp -n kube-system $STORK_POD:/storkctl/linux/storkctl ./storkctl sudo mv storkctl /usr/local/bin && sudo chmod +x /usr/local/bin/storkctl
OS X:
STORK_POD=$(kubectl get pods -n <namespace> -l name=stork -o jsonpath='{.items[0].metadata.name}') && kubectl cp -n <namespace> $STORK_POD:/storkctl/darwin/storkctl ./storkctl sudo mv storkctl /usr/local/bin && sudo chmod +x /usr/local/bin/storkctl
Windows:
Copy
storkctl.exe
from the Stork pod:STORK_POD=$(kubectl get pods -n <namespace> -l name=stork -o jsonpath='{.items[0].metadata.name}') && kubectl cp -n <namespace> $STORK_POD:/storkctl/windows/storkctl.exe ./storkctl.exe
Move
storkctl.exe
to a directory in your PATH
Enable load balancing on cloud clusters
If you’re running Kubernetes in the cloud, you must configure an External LoadBalancer (ELB) for the Portworx API service on your source and destination clusters.
Warning: Do not enable load balancing if authorization is not enabled in the Portworx cluster.
Enable load balancing by entering the kubectl edit service
command and changing the service type value from nodePort
to LoadBalancer
:
kubectl edit service portworx-service -n <namespace>
kind: Service
apiVersion: v1
metadata:
name: portworx-service
namespace: <namespace>
labels:
name: portworx
spec:
selector:
name: portworx
type: LoadBalancer
Last edited: Thursday, Dec 22, 2022
Questions? Visit the Portworx forum.