Prerequisites
- AWS account
- Red Hat account
- eksctl installed on your local machine
- kubectl installed on your local machine
- oc CLI installed on your local machine
- OpenShift cluster as Hub cluster
Install ACM on OpenShift Hub cluster
Login to the OpenShift Web Console as a Cluster administrator.
Install Red Hat Advanced Cluster Management (ACM) from the OperatorHub within OpenShift Web Console as shown here:
Note: ACM Operator gets installed in the open-cluster-management namespace/project
Download Pull Secret
Login to Red Hat Hybrid Cloud Console with your credentials.
Navigate to Downloads and scroll down to the Tokens section. Select Download to get a copy of your pull secret on your local machine.
Upload Pull Secret to ACM
Login to your OpenShift cluster using oc CLI.
Run the following command to switch to open-cluster-management namespace/project:
$ oc project open-cluster-management
Run the following command to upload the pull secret to open-cluster-management namespace/project:
$ oc create secret generic eks-secret \ --from-file=.dockerconfigjson=pull-secret.txt \
--type=kubernetes.io/dockerconfigjson
eks-secret is the name of the secrets object, and pull-secret.txt is the pull secret downloaded in the previous step.
Install MultiClusterHub
After the ACM Operator gets installed successfully, navigate to “Installed Operators” and select “Advanced Cluster Management for Kubernetes” as shown:
Click on “Create instance” for MultiClusterHub.
Expand “Advanced Configuration”. Scroll down to “Image Pull Secret” and search for the secret uploaded in the previous step (for example, eks-secret). Select this secret and hit “Create”.
Create an EKS cluster
Create a YAMIL file eks-cluster-1.21.yaml with the following information. Save it to your local machine.
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: eks-cluster # EKS Cluster name
region: us-east-2 # Region Code to place EKS Cluster
version: "1.21"
managedNodeGroups:
- name: primary # Name of node group in EKS Cluster
instanceType: t3.small # Instance type for node group
desiredCapacity: 3 # Number of worker nodes- default is 2
Change the config parameter values according to your desired setting. There are many more configuration parameters, which you can find if you type eksctl create cluster –help.
Run the following command, which was used to create an EKS cluster.
$ eksctl create cluster --config-file eks-cluster-1.21.yaml
The above command creates an EKS cluster with worker nodes (EC2 instance type t3.small) in the us-east-2 region using Kubernetes version 1.21
Import EKS cluster
Switch to the “Advanced Cluster Management” view from the OpenShift Web Console:
Select “Clusters” under the Infrastructure menu and select “Import cluster”:
Provide a name for the EKS cluster that will be imported and choose “Run import commands manually” option from the drop down for Import mode:
Select “Save import and generate code”.
Select “Copy command” and run the command from the command line against the EKS cluster.
Your EKS cluster will successfully get imported into ACM.
저자 소개
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.