Infrastructure Customization

Configure Artifactory Helm resource requests and limits: memory, CPU, and JVM settings (xms, xmx) for all components.

Artifactory Memory and CPU Resources

The Artifactory Helm chart supports resource requests and limits for JFrog Artifactory, Nginx, and PostgreSQL. By default, these settings are commented out. Set them explicitly to control allocated resources and limits. Also set the Artifactory JVM memory parameters with artifactory.javaOpts.xms and artifactory.javaOpts.xmx to match the allocated resources.

Artifactory

# Example of setting resource requests and limits to all pods (including passing java memory settings to Artifactory)
artifactory:
 javaOpts:
   xms: "1g"
   xmx: "4g"
 resources:
   requests:
     memory: "1Gi"
     cpu: "500m"
   limits:
     memory: "4Gi"
     cpu: "2"
nginx:
 resources:
  requests:
    memory: "250Mi"
    cpu: "100m"
  limits:
    memory: "500Mi"
    cpu: "250m"

Artifactory HA

# Example of setting resource requests and limits to all pods (including passing java memory settings to Artifactory)
artifactory:
 primary:
   resources:
    requests:
      memory: "1Gi"
      cpu: "500m"
    limits:
      memory: "4Gi"
      cpu: "2"
initContainers:
 resources:
  requests:
    memory: "64Mi"
    cpu: "10m"
  limits:
    memory: "128Mi"
    cpu: "250m"
postgresql:
 resources:
  requests:
    memory: "512Mi"
    cpu: "200m"
  limits:
    memory: "1Gi"
    cpu: "1"
nginx:
 resources:
  requests:
    memory: "250Mi"
    cpu: "100m"
  limits:
    memory: "500Mi"
    cpu: "250m"
📘

Note

Although you can set resource limits and requests this way, we recommend using the pre-built values files for small, medium, and large installations and adjusting them to your needs.

Custom Docker Registry

To pull Docker images from a private registry, create a Kubernetes Docker registry secret and pass it to Helm during installation or upgrade.

# Create a Docker registry secret called 'regsecret'
kubectl create secret docker-registry regsecret --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email>

helm upgrade --install artifactory --set imagePullSecrets=regsecret --namespace artifactory jfrog/artifactory