Install JFrog Artifactory using Helm Chart by adding the below ingress configuration to values.yaml file (we can add nginx.annotations as per the nginx-ingress standard. For more information about the Nginx ingress controller annotations please refer to Nginx annotation page here).
Warn: The following snippet is compatible with the "subdomain" access method of Docker. To use the "repository path" access methods please omit the following block in the config:
nginx.ingress.kubernetes.io/rewrite-target: "/"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^/(v2)/token /artifactory/api/docker/null/v2/token;
rewrite ^/(v2)/([^\/]*)/(.*) /artifactory/api/docker/$2/$1/$3;
Warn: The following snippet is compatible with the "subdomain" access method of Docker. To use the "repository path" access methods please omit the following block in the config:
nginx.ingress.kubernetes.io/rewrite-target: "/"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^/(v2)/token /artifactory/api/docker/null/v2/token;
rewrite ^/(v2)/([^\/]*)/(.*) /artifactory/api/docker/$2/$1/$3;