Skip to main content
Version: 2.8

Enable license server

Follow the procedure in this topic to enable the license server component.

If you installed the license server component using Helm, you can use Helm to enable it as well.

Prerequisites

Before you enable, ensure that:

  1. Portworx Backup chart is deployed with all the components in running state.

  2. Set px/ls=true label on any of the two worker nodes.

    kubectl label node <NODE_NAME> px/ls=true
  3. Ensure that port 7070 is enabled on the cluster

    sudo iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 7070 -j ACCEPT
  4. For OpenShift cluster:

    • Edit privileged scc using command:

      oc edit scc privileged
    • Add the following into users section:

    system:serviceaccount:<px-backup-namespace>:pxcentral-license-server 

    px-backup-namespace is the namespace where Portworx Backup is deployed

Enable

To enable the license server using Helm:

  1. Update your Helm repository.

    helm repo update
  2. Retrieve all custom values you used during install. Generate a YAML file, replacing the <namespace> with your namespace.

    helm get values --namespace <namespace> <release-name> -o yaml > values.yaml
  3. Delete the post-install hook job.

    kubectl delete job pxcentral-post-install-hook --namespace <namespace>
  4. Remove the pxcentral-license-server deployment. Enter the following kubectl delete deployment command, replacing the <namespace> parameter to match your environment.

    kubectl delete deployment pxcentral-license-server -n <namespace>
  5. Run the following helm upgrade command to enable the license server, using the -f flag to pass the custom values.yaml file you generated above.

    helm upgrade <release-name> <repo-name>/px-central --namespace <namespace> -f values.yaml --set pxlicenseserver.enabled=true

    Replacing the following parameters:

    • <release-name>: the license server release to enable
    • <repo-name>: the Portworx Enterprise repository name
    • <namespace>: the namespace matching your environment
note

If you face any upgrade issues, refer to upgrades with license server