Artifactory License Installation with Kubernetes Secrets

Install Artifactory licenses via Kubernetes secrets: reference an existing secret or create one during Helm release.

There are two ways to add licenses using secrets.

  • Using an existing Kubernetes secret
  • Creating the secret as part of the Helm release
📘

Note

These methods apply to initial deployment only. Once JFrog Artifactory is deployed, stop passing these parameters — the license is already persisted in Artifactory's storage and further values are ignored. Update the license via the Artifactory UI or REST API. To continue managing the license using the same method, use the copyOnEveryStartup example in the values.yaml file.

Create a License Using an Existing Kubernetes Secret

Deploy the Artifactory license as a Kubernetes secret: prepare a text file with the license, then create the secret from it.

# Create the Kubernetes secret (assuming the local license file is 'art.lic')
kubectl create secret generic -n artifactory artifactory-license --from-file=./art.lic

# Pass the license to helm
helm upgrade --install artifactory --set artifactory.license.secret=artifactory-license,artifactory.license.dataKey=art.lic --namespace artifactory jfrog/artifactory

Create a Secret as Part of the Helm Release

To create a secret as part of the Helm release, update values.yaml and run the installer.

artifactory:
  license:
    licenseKey: |-
      <LICENSE_KEY>

helm upgrade --install artifactory -f values.yaml --namespace artifactory jfrog/artifactory