ARTIFACTORY: How to proxy Kubernetes Community-Owned Package Repository with Artifactory

ARTIFACTORY: How to proxy Kubernetes Community-Owned Package Repository with Artifactory

AuthorFullName__c
Krishna Valluri
articleNumber
000006351
ft:sourceType
Salesforce
FirstPublishedDate
2025-02-18T10:53:03Z
lastModifiedDate
2025-02-18
VersionNumber
2
Artifactory allows you to proxy Core Kubernetes Components of the RPM package type by setting an RPM remote repository with the https://pkgs.k8s.io endpoint. 
Below is the step by step guide on proxying and resolving RPM packages from Kubernetes Community-Owned Package Repository via Artifactory.

1. Create an RPM remote repository in Artifactory and point the URL to https://pkgs.k8s.io

User-added image 


2. Following Set Me Up instructions from Artifactory UI, configure the RPM remote repository with YUM client.
Below is the sample .repo file 
$ cat /etc/yum.repos.d/k8s-artifactory.repo
[Artifactory]
name=Artifactory
baseurl=http://admin:xxxxxxx@localhost:8081/artifactory/<remote-repo-name>/core:/stable:/<version>/rpm/
enabled=1
gpgcheck=0
#Optional - if you have GPG signing keys installed, use the below flags to verify the repository metadata signature:
#gpgkey=http://admin:xxxxxxxx@localhost:8081/artifactory/<remote-repo-name>/core:/stable:/<version>/rpm/repomd.xml.key
#repo_gpgcheck=1
$sudo yum makecache --refresh
Note: <version> should be as v1.32/v1.29/etc. For more details on the version visit here.

3. After configuring with Yum client, check for a list of all available packages in the repository by querying with the following command.
$ yum --disablerepo="*" --enablerepo="Artifactory"
Below is the sample command and its output 
List of available package in “core:/stable:/v.1.32/rpmUser-added image 

4. Resolving packages from upstream via Artifactory RPM remote repository
$ sudo yum install -y <package-name>
Screenshot from Artifactory UI tree view

User-added image 

For more details on Artifactory RPM package type repository visit here.