Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log & Monitor
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

[Harbor] Configure the replications on Harbor

Posted on October 23, 2022October 23, 2022 By nim 1 Comment on [Harbor] Configure the replications on Harbor

Task này của chúng ta là backup image từ another Docker registry.
Và bạn cũng đang có sẵn Harbor.
Hoặc bạn muốn push image sang another Docker registry một cách tự động.

Giờ chúng ta cùng nhau bắt đầu Với Harbor thôi.

Contents

  • 1) Creating New Registry Endpoint
    • 1.1) AWS ECR
  • 2) Configure Replications.
    • 2.1) Pull-based
      • 2.1.1) AWS ECR
    • 2.2) Push-base
      • 2.2.1) ECR.

1) Creating New Registry Endpoint

Để thực hiện được tính năng này thì bạn cần Create “New Registry Endpoint”

1.1) AWS ECR

2) Configure Replications.

2.1) Pull-based

Bạn sẽ cấu hình để Harbor sẽ pull image từ another docker registy.

2.1.1) AWS ECR

Ở đây chúng ta sẽ configure harbor pull image từ ECR

Trên aws thì imge của bạn nhé nhu sau:
31336350XXX.dkr.ecr.us-west-2.amazonaws.com/nim_engines_result_handler:staging-e6f2831b-linux

Bạn cần tạo 1 project trên Harbor trước nhé.

Giờ bạn tạo Replication Rule nhé

Source resource filter: bạn điên tên image như là: nim_engines_result_handler
Destination:
—-> Namespace: bạn điện tên project mà bạn mới tạo trên harbor example: opswat
—-> Flattening: bạn chọn No Flatting

Sau khi bạn save lại thì bạn chạy replicate

show log detail
Đây là log khi harbor pull image.

2.2) Push-base

2.2.1) ECR.

Enabling Container Image Replication in a Harbor Registry

Phần này sẽ dễ hơn

Mình có 1 project trên harbor.
Phần configure the replication rule.

Các bạn có thể tham khảo thêm bài này:
https://vinothecloudone.medium.ninja/yet-another-harbor-registry-architecture-for-vsphere-with-tanzu-yaha-43395f6547e3

Harbor, Kubernetes & Container

Post navigation

Previous Post: [Ingress Nginx] Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”
Next Post: [AWS] Pull docker images from the other ECR

More Related Articles

[Udemy] Download khóa học Udemy giá rẻ chỉ với 55k/khóa Kubernetes & Container
[Spinnaker] Install Spinnaker on Kubernetes through Helm from OpsMx Kubernetes & Container
[Chartmuseum] Build yourself a Helm Chart Repository server Kubernetes & Container
[Helm-k8s] Researching to write a unit test for your helm chart – Kubernetes Helm Chart
[Sonarqube] Install Sonarqube on Kubernetes and integrate with GitHub Action. Kubernetes & Container
[issue/alpine] docker 20.10.2 -> golang:1-alpine3.14 error: make: go: Operation not permitted Docker

Comment (1) on “[Harbor] Configure the replications on Harbor”

  1. Working at Target says:
    November 19, 2022 at 11:08 am

    Nice post.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • Experiences for IP Addresses Shortage on EKS Clusters March 29, 2023
  • [Talisman] Discover the sensitive information in your code. March 28, 2023
  • [Prometheus/Grafana] Install Prometheus and Grafana on ubuntu. March 27, 2023
  • [Kong Gateway] WebSocket connection failed March 26, 2023
  • [Nextcloud] Can’t download files to have a size bigger than 2Gi on NextCloud – RaspBerry March 24, 2023

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • MetalLB
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2023 NimTechnology.