インタラクティブエンドポイントでカスタムポッドテンプレートを指定する
ドライバーとエグゼキュター用のカスタムポッドテンプレートを指定するインタラクティブエンドポイントを作成できます。ポッドテンプレートは、各ポッドの実行方法を決定する仕様です。ポッドテンプレートファイルを使用して、Spark 構成でサポートされていないドライバーまたはエグゼキュターポッドの設定を定義できます。ポッドテンプレートは現在、Amazon EMR リリース 6.3.0 以降でサポートされています。
ポッドテンプレートの詳細については、「Amazon EMR on EKS Development Guide」の「Using pod templates」を参照してください。
次の例は、ポッドテンプレートを使用してインタラクティブエンドポイントを作成する方法を示しています。
aws emr-containers create-managed-endpoint \ --type JUPYTER_ENTERPRISE_GATEWAY \ --virtual-cluster-idvirtual-cluster-id\ --nameexample-endpoint-name\ --execution-role-arn arn:aws:iam::aws-account-id:role/EKSClusterRole\ --release-labelemr-6.9.0-latest\ --configuration-overrides '{ "applicationConfiguration": [ { "classification": "spark-defaults", "properties": { "spark.kubernetes.driver.podTemplateFile": "path/to/driver/template.yaml", "spark.kubernetes.executor.podTemplateFile": "path/to/executor/template.yaml" } }] }'