Add Artifact Servers
Harness integrates with many different types of repositories and artifact providers. We call these Artifact Servers, and they help you pull your artifacts into your Harness Application.
In this topic:
- Before You Begin
- Review: Artifact Sizes and Limitations
- Review: Add AWS S3 and Google Cloud Storage Artifact Servers
- Review: Anonymous Access
- Add Platform-Specific Artifact Servers
Before You Begin
- See Harness Key Concepts.
Review: Artifact Sizes and Limitations
Harness has a limit of a 1GB file upload. However, Harness directly streams from the artifact server if the file size is larger (even larger than 25GB).
For artifacts larger than 1GB, use the Metadata-Only option in the Harness Service Artifact Source settings.
Review: Add AWS S3 and Google Cloud Storage Artifact Servers
Amazon AWS and Google Cloud Platform are added to Harness as Cloud Providers, but they may also be used as artifact servers in a Harness Service.
You simply add them as Cloud Providers, and then when you are adding an artifact in a Harness Service, the AWS S3 and Google Cloud Storage options will be available.
Here is what the Artifact Source list looks like in a Harness service when AWS S3 and Google Cloud Storage have been as added as Cloud Providers:
For information on how to add AWS and GCP as Cloud Providers, see Add Cloud Providers.
Review: Anonymous Access
The following Artifact Servers support anonymous access for Docker images:
- Docker Registry
If you are using anonymous access to obtain the artifact for your Service, you should ensure that host running the Harness Delegate has view and read permissions and that the container specification for the deployment platform you are using is set up for anonymous access. For example:
- Kubernetes - Ensure that
imagePullSecretsis removed from the container specification. For more information, see Pull an Image from a Private Registry for Kubernetes. For Harness version 1 implementation of Kubernetes,
imagePullSecretsis added by default. For version 2,
imagePullSecretsis not added by default.
- ECS - By default, ECS uses anonymous access. To use a private registry, you must use the RepositoryCredentials property type in the Container Specification. For more information, see Using Private Docker Registry Authentication.
Add Platform-Specific Artifact Servers
See the following topics for platform-specific Artifact Servers:
- Add Azure DevOps Artifact Servers
- Add Jenkins Artifact Servers
- Add Bamboo Artifact Servers
- Add Docker Registry Artifact Servers
- Add Nexus Artifact Servers
- Add Artifactory Artifact Servers
- Add Samba Server Artifact Servers
- Add SFTP Artifact Servers
- Add Helm Repository Artifact Servers
You can also use a custom artifact source in a Harness Service that queries your artifact server via its API. See Using Custom Artifact Sources.