メインコンテンツにスキップ

Try with Helm

This page describes how to deploy Casdoor on Kubernetes using Helm.

前提条件

  • 稼働中のKubernetesクラスター
  • Helm v3

Installation

Step 1: Install the Casdoor chart

Install the Casdoor Helm chart:

helm install casdoor oci://registry-1.docker.io/casbin/casdoor-helm-charts --version v1.702.0

Step 2: Access Casdoor

After installation, use the service URL provided by your cluster to access Casdoor.

Customization

Override values.yaml to customize the deployment. Key parameters:

パラメーター説明デフォルト値
replicaCountCasdoorアプリケーションを実行するレプリカの数。1
image.repositoryCasdoor Dockerイメージのリポジトリ。casbin
image.nameCasdoor Dockerイメージの名前。casdoor
image.pullPolicyCasdoor Dockerイメージのプルポリシー。IfNotPresent
image.tagCasdoor Dockerイメージのタグ。""
configCasdoorアプリケーションの設定。configフィールドを参照
database.driver使用するデータベースドライバー(mysql、postgres、cockroachdb、sqlite3をサポート)。sqlite3
database.userデータベースのユーザー名。""
database.passwordデータベースのパスワード。""
database.hostデータベースのホスト。""
database.portデータベースのポート。""
database.databaseNameCasdoorが使用するデータベースの名前。casdoor
database.sslModeデータベース接続のSSLモード。disable
service.typeCasdoor用に作成するKubernetesサービスのタイプ(ClusterIP、NodePort、LoadBalancerなど)。ClusterIP
service.portCasdoorサービスのポート番号。8000
ingress.enabledCasdoorのIngressを有効にするかどうか。false
ingress.annotationsIngressリソースのアノテーション。\{\}
ingress.hostsIngressリソースのホスト名。[]
resourcesCasdoorコンテナのリソースリクエストとリミット。\{\}
autoscaling.enabledCasdoorのHorizontal Pod Autoscalerを有効にするかどうか。false
autoscaling.minReplicasHorizontal Pod Autoscalerの最小レプリカ数。1
autoscaling.maxReplicasHorizontal Pod Autoscalerの最大レプリカ数。100
autoscaling.targetCPUUtilizationPercentageHorizontal Pod AutoscalerのターゲットCPU使用率パーセンテージ。80
nodeSelectorポッド割り当てのためのノードラベル。\{\}
tolerationsポッド割り当てのためのトレランスラベル。[]
affinityポッド割り当てのためのアフィニティ設定。\{\}
extraContainersEnabled追加のサイドカーコンテナを有効にするかどうか。false
extraContainers追加のサイドカーコンテナ。""
extraVolumeMountsCasdoorコンテナの追加のボリュームマウント。[]
extraVolumesCasdoorコンテナの追加のボリューム。[]
envFromSecretシークレットから環境変数を提供する。[\{name:"",secretName:"",key:""\}]
envFromConfigmapコンフィグマップから環境変数を提供する。[\{name:"",configmapName:"",key:""\}]
envFromシークレットまたはコンフィグマップ全体から環境変数を提供する。`[{name:"",type:"configmap \

Managing the deployment

Upgrade:

helm upgrade casdoor oci://registry-1.docker.io/casbin/casdoor-helm-charts --version <version>

Uninstall:

helm uninstall casdoor

For more options, see the Helm and Kubernetes documentation.