Kubernetes 및 Docker 배포

NCache 다음을 포함하여 다양한 Kubernetes 버전을 완벽하게 지원합니다. Azure Kubernetes Service (AKS), AWS Elastic Kubernetes Server(EKS), Google Kubernetes Engine(GKE), Red Hat OpenShift Kubernetes 등. NCache Docker도 완벽하게 지원합니다.

Kubernetes
도커
Azure Kubernetes 서비스
Elastic Kubernetes 서비스
Red Hat OpenShift
구글 쿠버네티스 엔진
 

배포 NCache Kubernetes 클러스터에서

배포할 수 있습니다. NCache Kubernetes 클러스터 내부에서 이에 액세스 NCache Kubernetes 내부에서 실행되는 애플리케이션과 외부 모두에서 배포할 수 있습니다. 또한 이를 관리하고 모니터링할 수도 있습니다. NCache Kubernetes 외부에서 Kubernetes를 실행하는 클러스터. 다음 다이어그램은 배포를 보여줍니다. NCache Kubernetes 클러스터에서. 이 그림은 Azure Kubernetes Service, Amazon Elastic Kubernetes Service, Google Kubernetes Engine(GKE), Red Hat OpenShift Kubernetes 및 기타 Kubernetes 환경에서 동일합니다.

NCache Kubernetes 클러스터 개념

다음은 위의 배포에서 이해해야 할 몇 가지 개념입니다. NCache 쿠버네티스에서.

  1. NCache 검색 서비스: 이는 Kubernetes 클러스터 내에서 실행되는 애플리케이션이 액세스할 수 있도록 해주는 헤드리스 서비스입니다. NCache DNS 이름을 사용하여 서버 포드. NCache 서버 포드에는 포드가 시작되거나 다시 시작될 때마다 할당되므로 고정된 IP 주소가 없습니다. 이것이 바로 Discovery Service가 고객과의 대화를 돕는 데 중요한 역할을 하는 이유입니다. NCache 서버 포드.
  2. NCache 관리/모니터링 게이트웨이: 관리하고 모니터링하려면 게이트웨이 서비스가 필요합니다. NCache 외부에서 Kubernetes 클러스터 내부에서 실행되는 것입니다. 모든 관리/모니터링 작업은 이 게이트웨이를 통해 라우팅됩니다. NCache 서버 포드. 항상 특정 주소로 트래픽을 보내도록 게이트웨이를 구성할 수 있습니다. NCache 서버 포드 so NCache Management Center는 외부에서 접속이 가능합니다.
  3. NCache Kubernetes 운영자(오는): NCache 내부의 모든 포드에 대한 라이선스 활성화 및 비활성화를 처리하는 운영자를 제공합니다. NCache 전개. 운영자님이 알고 계시네요 NCache 특정 수의 배포 및 활성화 NCache 서버 전용 라이선스를 미리 확보하여 다음과 같은 용도로 활용할 수 있습니다. NCache 서버 포드가 시작되거나 다시 시작됩니다.

Kubernetes 버전 지원

  1. Azure Kubernetes Service (AKS): NCache AKS 배포를 지원합니다.
    - YAML 받기
    - AKS 비디오
    - AKS 문서
  2. AWS 탄력적 Kubernetes 서비스(EKS): NCache EKS 배포를 지원합니다.
    - YAML 받기
    - EKS 비디오
    - EKS 문서
  3. 레드햇 오픈시프트 쿠버네티스: NCache OpenShift 배포를 지원합니다.
    - YAML 받기
    - 오픈시프트 비디오
    - 오픈시프트 문서
  4. Google Kubernetes Engine(GKE): NCache GKE 배포를 지원합니다.
    - YAML 받기
    - GKE 동영상
    - GKE 문서

도커 지원

NCache 다음과 같은 방식으로 Docker를 완벽하게 지원합니다.

1. Docker Hub의 Docker 이미지

  • - NCache Enterprise
    • .NET 에디션
    • 도커 풀 alachisoft/ncache:최신
    • 운영체제: 리눅스(데비안), 윈도우 서버 코어 2019
    • 자바 에디션
    • 도커 풀 alachisoft/ncache:최신-자바
    • 운영 체제: Linux(Ubuntu), Windows Server Core 2019
  • - NCache Professional
    • 도커 풀 alachisoft/ncache:최신-전문가
    • 운영체제: 리눅스(데비안), 윈도우 서버 코어 2019
  • - NCache Open Source
    • 도커 풀 alachisoft/ncache: 오픈 소스 서버-5.0.4

2. 사용자 정의 Docker 이미지용 Docker 파일

대부분의 경우 다음의 표준 Docker 이미지를 사용하면 됩니다. NCache 도커 허브에서. 그러나 경우에 따라 자체 소프트웨어 또는 표준 OS 소프트웨어의 기타 변형을 포함하는 사용자 지정 Docker 이미지를 생성할 수 있습니다.

이것의 한 예는 Linux의 특징입니다. NCache Docker Hub의 Docker 이미지는 Debian Linux를 사용하지만 다른 Linux 버전을 원할 수 있습니다. NCache 서버; NCache 여러 Linux 버전에서 잘 작동합니다. 또는 애플리케이션 서버(NCache Client) 자신의 애플리케이션뿐만 아니라 NCache 클라이언트 소프트웨어.

그러한 모든 경우에, Alachisoft 필요에 맞게 편집하고 사용자 정의할 수 있는 다양한 Dockerfile을 제공합니다.

도커파일 NCache
다음은 사용자 지정 Docker 이미지를 생성하기 위해 편집할 수 있는 이러한 Dockerfile의 몇 가지 예입니다.

Dockerfile 예
일반적인 Dockerfile의 방법은 다음과 같습니다.NCache Enterprise Windows Server Core용 서버"는 다음과 같습니다.

# Setting base image for NCache.
FROM microsoft/dotnet-framework:4.7.2-runtime

# Setting work directory to copy setups and resources for configuring NCache.
WORKDIR /app

# Make sure that the 2 folders ("resources" and "setup") exist in the same directory as the Dockerfile.
# Make sure that "IPBinding.ps1" script resides in the "resources" folder.
# Make sure that Microsoft Visual C++ 2010 x64 Redistributable setup is placed in the "setup" folder. It can be downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=14632.
# Make sure that NCache setup resides in the "setup" folder. It can be downloaded from http://www.alachisoft.com/download-ncache.html.
# Copying resources and setups into the work directory of the container.
COPY resources .
COPY setup .

# Exposing ports used by NCache for communication.
# Exposing the port at which NCache service will listen for incoming client connection requests.
EXPOSE 9800
# Exposing the port at which NCache service will listen for incoming management connection requests (NCache Manager, Monitor and Tools).
EXPOSE 8250
# Exposing the port at which Bridge service will listen for incoming connection requests from cache processes.
EXPOSE 9900
# Exposing the port at which Bridge service will listen for incoming Management connection requests (NCache Manager and Tools).
EXPOSE 8260

# Installing Microsoft Visual C++ 2010 x64 Redistributable (Prerequisite of NCache).
RUN vcredist_x64.exe /norestart /q

# Installing NCache setup.
# The parameter "INSTALLMODE" represents the NCache installation mode and has the following values:
# Rename this parameter to "EDITION" if you are building image for NCache version 4.8 or older.
#		Enterprise Server Install mode = "0"
#		Enterprise Remote Client Install mode = "3"
# The parameter "KEY" is the install key and is sent to user through e-mail once they download NCache setup. In case if user does not get a key, contact us at http://www.alachisoft.com/company/contact-us.html.
# The parameter "USERFIRSTNAME" represents the first name of the user.
# The parameter "USERLASTNAME" represents the last name of the user.
# The parameter "COMPANYNAME" represents the company the user works for.
# The parameter "EMAILADDRESS" represents the e-mail address of the user.
# The parameter "INSTALLDIR" represents the installation directory where NCache will be installed.
# the parameter "/qn" specifies that NCache will be installed silently without user interaction and will not prompt the user for anything.
RUN msiexec /i ncache.ent.x64.msi INSTALLMODE="0" KEY="XXXXXXXXXX" USERFIRSTNAME="John" USERLASTNAME="Smith" COMPANYNAME="Alachisoft" EMAILADDRESS="john@alachisoft.com" INSTALLDIR="C:\Program Files\NCache" /qn

# Currently, the IP during NCache installation is stored in the configuration files and it can not be made static at that point.
# However, the IP can be made static once the container is started.
# An IP Binding change task is scheduled to run when the container instance is started. This task replaces the IP with the actual IP assigned to the container.
# Creating one time executing IP Binding task that will change the IP in NCache Configuration files on the first time the container is started.
RUN schtasks /Create /TN IPBinding /SC ONSTART /TR "c:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe C:\app\IPBinding.ps1" /ru SYSTEM

# Entry point for the container, once all the required configurations have been made.
CMD start -Verbose

다음에 무엇을할지?

© 저작권 Alachisoft 2002 - . 판권 소유. NCache 는 Diyatech Corp.의 등록상표입니다.