When using Artifactory User Plugins, secrets are typically used to load plugin files onto the pod. This is because plugins usually do not exceed the maximum secret size, making it an easy way to transfer files.
However, if a file does exceed the maximum size with the error "error: failed to create secret Request entity too large: limit is 3145728", you can load it onto the pod using the "kubectl cp" command from your local environment.
From your local environment where the file exists, run "kubectl cp <path-to-file-locally> <path-to-file-pod>"
Once the file is in the pod,
However, if a file does exceed the maximum size with the error "error: failed to create secret Request entity too large: limit is 3145728", you can load it onto the pod using the "kubectl cp" command from your local environment.
From your local environment where the file exists, run "kubectl cp <path-to-file-locally> <path-to-file-pod>"
kubectl cp /tmp/foo <some-namespace>/<some-pod>:/tmp/bar
Once the file is in the pod,
- place it under $JFROG_HOME/artifactory/var/etc/artifactory/plugins directory
- run the Reload Plugins API call to apply the plugin to Artifactory.