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サービス
ElasticKubernetesサービス
Red Hat OpenShift
Google Kubernetes エンジン
 

配備します 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 Kubernetesで。

  1. NCache ディスカバリーサービス: これは、Kubernetes クラスター内で実行されているアプリケーションがアクセスできるようにするヘッドレス サービスです。 NCache DNS 名を使用して Pod をサーバーに送信します。 NCache サーバー ポッドには固定の IP アドレスがありません。ポッドが起動または再起動されるたびに割り当てられるためです。 そのため、ディスカバリー サービスは、クライアントとの対話を支援する上で重要な役割を果たします。 NCache サーバーポッド。
  2. NCache 管理/監視ゲートウェイ: 管理と監視にはゲートウェイ サービスが必要です NCache これは、外部から Kubernetes クラスター内で実行されています。 すべての管理/監視操作は、このゲートウェイを介してルーティングされます。 NCache サーバーポッド。 ゲートウェイは、トラフィックを常に特定のアドレスに送信するように構成できます。 NCache サーバーポッドなので NCache Management Center は外部から接続できます。
  3. NCache Kubernetes オペレーター (到来): NCache 内部のすべてのポッドのライセンスのアクティブ化と非アクティブ化を処理するオペレーターを提供します。 NCache 展開。 オペレーターは承知しています NCache 導入し、特定の数のをアクティブ化します NCache サーバー専用ライセンスを事前に利用できるようにするため、 NCache サーバーポッドが起動または再起動されます。

サポートされる Kubernetes フレーバー

  1. Azure Kubernetes Service (AKS): NCache AKS デプロイをサポートします。
    - YAMLを取得する
    - AKS ビデオ
    - AKSドキュメント
  2. AWS Elastic Kubernetes Service (EKS): NCache EKS の展開をサポートします。
    - YAMLを取得する
    - EKSビデオ
    - EKSドキュメント
  3. Red Hat OpenShift Kubernetes: NCache OpenShift デプロイメントをサポートします。
    - YAMLを取得する
    - OpenShift ビデオ
    - OpenShiftDocs
  4. Google Kubernetes Engine (GKE): NCache GKE のデプロイをサポートします。
    - YAMLを取得する
    - GKE ビデオ
    - GKE ドキュメント

Dockerサポート

NCache は、次の方法で Docker を完全にサポートします。

1. Docker Hub 上の Docker イメージ

  • - NCache Enterprise
    • .NET版
    • ドッカープル alachisoft/ncache:最新
    • OS:Linux(Debian)、Windows Server Core 2019
    • Java版
    • ドッカープル alachisoft/ncache:最新-java
    • OS:Linux(Ubuntu)、Windows Server Core 2019
  • - NCache Professional
    • ドッカープル alachisoft/ncache:最新のプロフェッショナル
    • OS:Linux(Debian)、Windows Server Core 2019
  • - NCache Open Source
    • ドッカープル alachisoft/ncache:オープンソースサーバー-5.0.4

2. カスタム Docker イメージの Docker ファイル

ほとんどの場合、標準の Docker イメージを使用するだけで問題ありません。 NCache Docker Hub から。 ただし、場合によっては、独自のソフトウェアまたは標準 OS ソフトウェアの他のバリエーションを含むカスタム Docker イメージを作成したい場合があります。

この一例は、Linuxのフレーバーです。 NCache Docker Hub の Docker イメージは Debian Linux を使用していますが、別の種類の Linux が必要になる場合があります。 NCache サーバー; NCache Linuxの複数のフレーバーで正常に動作します。 または、アプリケーションサーバー用のカスタムDockerイメージを作成することもできます(NCache クライアント)独自のアプリケーションだけでなく、 NCache クライアントソフトウェア。

そのようなすべての場合、 Alachisoft は、ニーズに合わせて編集およびカスタマイズできるさまざまな Dockerfile を提供します。

のDockerfiles 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 - . All rights reserved. NCache はダイヤテック株式会社の登録商標です。