---
title: "Use JFrog Artifactory to Deliver Software with Confidence to Amazon EKS"
url: "https://jfrog.com/blog/use-jfrog-artifactory-to-deliver-software-with-confidence-to-eks-aws-2/"
canonical: "https://jfrog.com/blog/use-jfrog-artifactory-to-deliver-software-with-confidence-to-eks-aws-2/"
lang: "en-US"
type: "article"
description: "Using AWS EKS? Creating a safe and effective way to run cloud-native applications has never been safer or easier than before using Artifactory as your Kubernetes registry for clusters managed by AWS using EKS."
date: "2018-06-05T08:51:00"
modified: "2026-09-09T09:33:35"
---
# Use JFrog Artifactory to Deliver Software with Confidence to Amazon EKS

[Blog Home](https://jfrog.com/blog/)

![JFrog Artifactory on AWS EKS](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/AWS_EKS_863x300.jpg.optimal.jpg)

AWS is launching the [Amazon Elastic Container Service for Kubernetes (Amazon EKS)](https://aws.amazon.com/eks/) and is announcing JFrog as a proud integration partner. Over the past year, it seems that even companies that weren’t in the first phase of Kubernetes adoption are now joining the party. JFrog has been a key part of the [container movement](https://jfrog.com/container-registry), launching [an enterprise-grade Docker registry](https://jfrog.com/integration/docker-registry/) back in 2015. Now, nearly three years later, we offer a robust [Kubernetes Registry](https://jfrog.com/integration/kubernetes-docker-registry/) that is compatible with a growing list of Kubernetes cluster providers.

Based on our experience with customers and the community adopting Kubernetes, you need to combine these 3 Kubernetes essentials to create the new infrastructure abstraction smoothly:

*   A k8s cluster (which EKS has incredibly simplified).
*   A pipeline (which you can get from many sources including our partners, and soon to be available on AWS CodeStar).
*   JFrog Artifactory serving as your Kubernetes registry.

In this blog post, we’ll show you how to quickly and easily configure Artifactory as your Kubernetes registry for EKS.

## Provisioning and configuring Artifactory as your Kubernetes Registry

#### Choices for deploying Artifactory

Artifactory can run from a number of possible locations. Our example is based on subscribing to [JFrog through the AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-g67cv5omo2v7w?sr=0-1&ref_=beagle&applicationId=AWSMPContessa).  
Additional available options are:  

*   Subscribing to [Artifactory on AWS through JFrog](https://jfrog.com/artifactory/artifactory-on-aws/).
*   Deploying Artifactory to the EKS cluster ([HA](https://github.com/kubernetes/charts/tree/master/stable/artifactory-ha) or [single node](https://github.com/kubernetes/charts/tree/master/stable/artifactory)) using a Helm chart.
*   Using an existing Artifactory instance.

#### Let’s get started!

1.  1.  Subscribe to [JFrog through the AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-g67cv5omo2v7w?sr=0-1&ref_=beagle&applicationId=AWSMPContessa).
    2.  Following your subscription to AWS Marketplace, JFrog generates and sends you an email with your account details and user credentials. Use your assigned credentials to log in to the JFrog Artifactory **Account Management Dashboard** to view and control your account information.  
        ******![Artifactory Account Mgt Dashboard](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/1-ArtifactoryAccountMgtDashboard.png?speedsize=w_1024)  
        ******                                                               _Figure 1 – JFrog Account Management Dashboard_
    3.  Click **GO TO MY SERVER** to launch the Artifactory onboarding wizard.                                                              _Figure 2 – JFrog Artifactory onboarding wizard_
    4.  Select the [software repositories](https://jfrog.com/integration/) you want to manage. In this example, we have only selected a handful of repositories including Docker, [Helm](https://jfrog.com/knowledge-base/what-is-helm-in-kubernetes/), Maven, NPM, and NuGet.  
        **![Universal Repositories in Artifactory](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/3-CreateRepositories.png)  
        **                                                             _Figure 3 – Supported package types in Artifactory_A configuration summary is displayed when you complete the wizard displaying all the handy things that were configured to make your life easier including [local, remote, and virtual repositories](https://www.jfrog.com/confluence/display/RTF/Configuring+Repositories)_.  
        ____![Artiactory Onboarding Wizard](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/4-OnboardingComplete.png)___
        
        _Figure 4 – Artifactory configuration settings summary_
        
        To learn more about how to plan for production, see [Best Practices for Structuring and Naming Artifactory Repositories](https://jfrog.com/whitepaper/best-practices-structuring-naming-artifactory-repositories/).
        

### Creating an Artifactory private Docker registry

Now let’s [configure Docker](https://jfrog.com/article/best-practices-for-configuring-a-docker-registry/) to use [Artifactory as your private Docker registry](https://jfrog.com/integration/docker-registry/private-docker-registry/).  

1.  From the Artifactory **Home** page, click the Docker virtual repository in the **Set Me Up** panel.  
    The command to log in to your Docker registry is displayed.  
    ![Set up Your Docker Registry](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/11-DockerSetMeUp.png)  
                                                                 _Figure 5 – Docker Set Me Up in Artifactory_
2.  Copy the _docker login_ command to log in to the Docker client. Use your Admin username and password, as we have not enabled anonymous access.
3.  Proceed to use the Docker client.  
    
    ```
    docker pull partneraws-docker.jfrog.io/nginx
    Using default tag: latest
    Latest: Pulling from nginx
    Digest:sha256:e4f-47a75c510f40b37b6b7dc6b7dc2516241ffa8vde5a442vde3d3372c9519c84d90
    Status: Downloaded newer image for partneraws-docker.jfrog.io/nginx:latest
    ```
    
4.  In the Artifactory **Package Viewer** search for **nginx** to view it in Artifactory.
5.  Click the image to view the tag details.  
    ![Arifactory Package Viewer](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/15-NginxTags.png?speedsize=w_1024)  
                                                                 _Figure 6 – Artifactory Package Viewer_

## Provisioning EKS

Provisioning a Kubernetes cluster using EKS is just as easy.  

1.  Access the **AWS Amazon EKS** console and click **Create Cluster**.  
    _![Create K8s Cluster in EKS AWS](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/21-new-CreateK8sCluster.png?speedsize=w_1024)  
    _                                                             _Figure 7 – Creating a cluster in the AWS Amazon EKS console_
2.  Configure your master cluster.  
    The settings in our example are the default settings used for the EKS trials. Your settings may vary.  
    _![AWS EKS Cluster Configuration](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/22-ClusterConfiguration.png?speedsize=w_1024)_
    
    _Figure 8 – Configure the master cluster in AWS Amazon EKS console_  
    As the cluster is provisioned, the EKS progress is displayed.  
    ![Cluster Creation Initiated](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/23-ClusterCreationInitiated.png?speedsize=w_1024)  
    ![Cluster Setting in Progress](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/24-ClusterSettingInProgress.png?speedsize=w_1024)
    

                                                             _Figure 9 – The cluster is provisioned in EKS  
_The endpoint is displayed when the process ends.  
![Cluster Details](https://speedmedia2.jfrog.com/08612fe1-9391-4cf3-ac1a-6dd49c36b276/jfrog.com/wp-content/uploads/2018/06/25-ClusterDetails.png?speedsize=w_1024)                                                             _Figure 10 – The endpoint is created_

1.  Configure the worker nodes as described in the [AWS EKS documentation](https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html).
2.  Make sure that kubectl is setup as per the [AWS EKS documentation](https://docs.aws.amazon.com/eks/latest/userguide/what-is-eks.html).
3.  Verify that the pods are not deployed.  
    
    ```
    kubectl get pods
    No resources found.
    ```
    

## Running a simple nginx deployment on the EKS cluster

Now let’s run a simple nginx deployment on the EKS cluster using the Docker image from Artifactory.

1.  Create a Kubernetes secret to authenticate with your private Artifactory hosted Docker registry.
    
    ```
    kubectl create secret docker-registry regcred 
    ```
    
    ```
    --docker-server=parneraws-docker.jfrog.io 
    ```
    
    ```
    --docker-username=admin
    --docker-password=[your_password] --docker-email=[your_email]
    ```
    
2.  Create a simple Kubernetes .yaml file to run two pods of nginx. Referenced from the [Kubernetes Deployment Example](https://kubernetes.io/docs/tasks/run-application/run-stateless-application-deployment/#creating-and-exploring-an-nginx-deployment).
    
    ```
    craigp-mac:~ craiggp$ cat run-nginx.yaml
    apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
    kind: Deployment
    metadata:
       name: nginx-deployment
    spec:
     selector:
        matchLabels:
           app: nginx
      replicas: 2 # tells deployment to run 2 pods matching the template
      template: # create pods using pod definition in this template
        metadata:
           # unlike pod-nginx.yaml, the name is not included in the metadata as a unique
           name is 
           # generated from the deployment name
           labels:
              app: nginx
        spec:
           containers:
           - name: nginx
           - image: partneraws-docker.jfrog.io/nginx:1.7.9
           ports:
          - containerPort: 80
       imagePullSecrets:
          - name: regcred  
    ```
    
3.  Create the deployment using kubectl.  
    
    ```
    kubectl apply -f run-nginx.yaml 
    deployment.apps “nginx-deployment” created
    ```
    
    And now you can view two pods running the images pulled from your private Docker  
    registry.
    
    ```
    kubectl get pods
     
    NAME                               READY STATUS   RESTARTS AGE
    Nginx-deployment-74d975fb86-4vtxt  1/1   Running  0        51s
    Nginx-deployment-74d975fb86-T771n  1/1   Running  0        36s
    ```
    

## Try it and let us know what you think!

Creating a safe and effective way to run cloud-native applications has never been safer or easier than before using Artifactory as your Kubernetes registry for clusters managed by AWS using EKS.

We’d appreciate your feedback. Please provide me your feedback at [https://www.twitter.com/peterscraig](https://www.twitter.com/peterscraig).