In diesem Thema wird erläutert, wie Sie das MART-Dienstkonto konfigurieren.
MART-Dienstkonto hinzufügen
MART und Apigee Connect erfordern ein Google Cloud-Dienstkonto zur Authentifizierung.
Laden Sie die Schlüsseldatei für das apigee-mart-Dienstkonto herunter:
Die Datei sollte die Erweiterung .json haben. Sie sollte sich im Verzeichnis apigee-org oder in einem Unterverzeichnis befinden.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-21 (UTC)."],[],[],null,["# Configure the MART service account\n\nThis topic explains how to configure the MART service account.\n\nAdding the MART service account\n-------------------------------\n\n\nMART and Apigee Connect require a Google Cloud service account for authentication.\n| **Note:** Installations on AKS, EKS, or GKE using workload identity do not require a Google Cloud service account key file (`.json`). See [Enabling Workload Identity on GKE](/apigee/docs/hybrid/v1.15/enable-workload-identity-gke) and [Enabling Workload Identity Federation on AKS and EKS](/apigee/docs/hybrid/v1.15/enable-workload-identity-federated).\n\n1. Locate the key file for the `apigee-mart` service account. The file should have a `.json` extension. It should reside in the `apigee-org` directory or a subdirectory.\n - **PROD** installations: `apigee-mart.json`\n - **NON-PROD** installations: `apigee-non-prod.json`\n2. If you do not see the MART service account file, create and download it with the `create-service-account` utility:\n 1. Make sure your `PROJECT_ID` environment variable is set: \n\n ```\n echo $PROJECT_ID\n ```\n\n Define it if needed: \n\n ```\n export PROJECT_ID=my-project-id\n ```\n 2. Create the MART service account. You can find the `create-service-account` tool in: \n\n ```\n APIGEE_HELM_CHARTS_HOME/\n └── apigee-operator/\n └── etc/\n └── tools/\n └── create-service-account\n\n\n ```\n | **Note:** See [`create-service-account`](/apigee/docs/hybrid/v1.15/create-service-account).\n\n ### PROD\n\n ```\n create-service-account \\\n --env prod \\\n --profile apigee-mart \\\n --dir PATH_TO_apigee-org_CHART_DIR\n ```\n\n ### NON-PROD\n\n ```\n $HYBRID_FILES/tools/create-service-account \\\n --env non-prod \\\n --profile apigee-mart \\\n --dir PATH_TO_apigee-org_CHART_DIR/\n ```\n3. Edit your `overrides.yaml` file and add the key file path to the `connectAgent` and `mart.serviceAccountPath` properties:\n\n ### PROD\n\n ```actionscript-3\n connectAgent:\n serviceAccountPath: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003epath_to_apigee\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e-\u003c/span\u003e\u003cspan class=\"devsite-syntax-n\"\u003emart\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e.\u003c/span\u003e\u003cspan class=\"devsite-syntax-na\"\u003ejson\u003c/span\u003e\u003c/var\u003e\n\n mart:\n serviceAccountPath: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003epath_to_apigee\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e-\u003c/span\u003e\u003cspan class=\"devsite-syntax-n\"\u003emart\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e.\u003c/span\u003e\u003cspan class=\"devsite-syntax-na\"\u003ejson\u003c/span\u003e\u003c/var\u003e\n ```\n\n ### NON-PROD\n\n ```actionscript-3\n connectAgent:\n serviceAccountPath: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003epath_to_apigee\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e-\u003c/span\u003e\u003cspan class=\"devsite-syntax-n\"\u003enon\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e-\u003c/span\u003e\u003cspan class=\"devsite-syntax-n\"\u003eprod\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e.\u003c/span\u003e\u003cspan class=\"devsite-syntax-na\"\u003ejson\u003c/span\u003e\u003c/var\u003e\n\n mart:\n serviceAccountPath: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-n\"\u003epath_to_apigee\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e-\u003c/span\u003e\u003cspan class=\"devsite-syntax-n\"\u003enon\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e-\u003c/span\u003e\u003cspan class=\"devsite-syntax-n\"\u003eprod\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e.\u003c/span\u003e\u003cspan class=\"devsite-syntax-na\"\u003ejson\u003c/span\u003e\u003c/var\u003e\n ```\n\n\n For example: \n\n ```\n ...\n connectAgent:\n serviceAccountPath: /apigee/hybrid/helm-charts/apigee-org/apigee-mart.json\n\n mart:\n serviceAccountPath: /apigee/hybrid/helm-charts/apigee-org/apigee-mart.json\n ...\n ```\n4. Apply your changes: \n\n ```\n helm upgrade ORG_NAME apigee-org/ \\\n --namespace apigee \\\n --atomic \\\n -f OVERRIDES_FILE.yaml\n ```\n | **Note:** If you see an error saying `Error: UPGRADE FAILED: \"`*ORG_NAME*`\" has no deployed releases`, replace `upgrade` with `install` and try the command again."]]