2. Docker Hub
What Will You Do¶
You will deploy a publicly available container image from Docker Hub to a number of clusters managed by the Rafay Controller.
We will be using the built-in integration for DockerHub in the Rafay Controller.
Assumptions¶
-
You have already provisioned or imported one or more Kubernetes clusters using the Rafay Controller.
-
Your clusters have the ability to connect to Docker Hub and pull images.
Step 1: Create Workload¶
-
Sign into the Rafay Console.
-
Create a workload with Ingress enabled
- In the Ingress tab, provide a unique hostname under the Rafay Domain and create the Ingress
Step 2: Configure Container¶
We will be deploying "tag 0.2" of the "hello" container image from the "nginxdemos" public repository on Docker Hub.
- Create a new Container
- Select "Public Docker Hub" for the Registry
- Select "Public Docker Hub Registry"
- Type in "index.docker.io/nginxdemos/hello:0.2" for the repository and tag
- Save the configuration
Step 3: Publish Workload¶
- Select a cluster/location in Placement
- Publish workload to target cluster
Once the workload is published successfully, access the application's URL. You should see a screen similar to the screenshot below.
Step 4: Access Workload¶
Once the workload is published successfully, access the application's URL. You should see a screen similar to the screenshot below.
** Congratulations! **
You have successfully deployed a publicly available container image from Docker Hub.