How to upgrade stork

Audience
Public
Product
Portworx
Content Type
Source Type
Knowledge Base

How to upgrade stork

KB0015206
Pure Product
Portworx
Question

How do I upgrade Stork to take advantage of the latest fixes seen in the Stork release notes

Answer

There is no Stork and PWX version dependency. Generally, we keep them the same (as noted here). This means that if the customer is having issues with px-backup, Stork can be upgraded to the latest without having to upgrade all of portworx. It also means that you can upgrade Stork by upgrading the portworx if it is operator based. 

 

Upgrading Stork needs to be done on the portworx cluster where the backup is being performed and the portworx cluster where it is being restored. 

1. Find the name of the storage cluster(stc) where the spec resides. 

[ ~ ]$ kubectl -n <namespace-where-portworx-is-installed> get stc
NAME                                              CLUSTER UUID                           STATUS   VERSION   AGE
px-cluster-64215e0a-ab5c-4805-9e2f-ff6615956830   c52cb0b5-8d18-42aa-9dbe-6bea5608b282   Online   2.13.0    2d5h

2. Edit the stc by adding "image: openstorage/stork:23.2.0" under stork as seen here;

[ ~ ]$ kubectl -n <namespace-where-portworx-is-installed> edit stc <name of stc>
...
stork:
    args:
      webhook-controller: "true"
    enabled: true
    image: openstorage/stork:23.2.0
  updateStrategy:
...

3. Wait a few minutes then check the image a stork pod is using to see that it is updated. 
[ ~ ]$ kubectl -n <namespace-where-portworx-is-installed> get deployment stork -o wide