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=true
label 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
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:
-
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-server
deployment. Enter the followingkubectl delete deployment
command, replacing the<namespace>
parameter to match your environment.kubectl delete deployment pxcentral-license-server -n <namespace>
-
Run the following
helm upgrade
command to enable the license server, using the-f
flag to pass the customvalues.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