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:
-
Portworx Backup chart is deployed with all the components in running state.
-
Set
px/ls=truelabel on any of the two worker nodes.kubectl label node <NODE_NAME> px/ls=true -
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 -
For OpenShift cluster:
-
Edit privileged
sccusing command:oc edit scc privileged -
Add the following into
userssection:
system:serviceaccount:<px-backup-namespace>:pxcentral-license-serverpx-backup-namespace is the namespace where Portworx Backup is deployed
-
Enable
To enable the license server using Helm:
-
Update your Helm repository.
helm repo update -
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 -
Delete the post-install hook job.
kubectl delete job pxcentral-post-install-hook --namespace <namespace> -
Remove the
pxcentral-license-serverdeployment. Enter the followingkubectl delete deploymentcommand, replacing the<namespace>parameter to match your environment.kubectl delete deployment pxcentral-license-server -n <namespace> -
Run the following
helm upgradecommand to enable the license server, using the-fflag to pass the customvalues.yamlfile you generated above.helm upgrade <release-name> <repo-name>/px-central --namespace <namespace> -f values.yaml --set pxlicenseserver.enabled=trueReplacing the following parameters:
<release-name>: the license server release to enable<repo-name>: the Portworx Enterprise repository name<namespace>: the namespace matching your environment
If you face any upgrade issues, refer to upgrades with license server