Questo argomento spiega come configurare l'account di servizio MART.
Aggiunta dell'account di servizio MART
MART e Apigee Connect richiedono un account di servizio Google Cloud per l'autenticazione.
- Individua il file della chiave per l'account di servizio
apigee-mart
. Il file deve avere un'estensione.json
.ls
$HYBRID_FILES /service-accounts- Installazioni PROD:
apigee-mart.json
- Installazioni NON-PROD:
apigee-non-prod.json
- Installazioni PROD:
- Se non vedi il file dell'account di servizio MART, creane e scaricane uno con l'utilità
create-service-account
:- Assicurati che la variabile di ambiente
PROJECT_ID
sia impostata:echo $PROJECT_ID
Definiscila se necessario:
export PROJECT_ID=
my-project-id - Crea l'account di servizio MART. Puoi trovare lo strumento
create-service-account
in:- Per le installazioni di Helm Charts:
APIGEE_HELM_CHARTS_HOME / └── apigee-operator/ └── etc/ └── tools/ └── create-service-account - Per installazioni di
apigeectl
:APIGEECTL_HOME / └── tools/ └── create-service-account
create-service-account \ --env prod \ --profile apigee-mart \ --dir
PATH_TO_SERVICE_ACCOUNTS_DIR $HYBRID_FILES/tools/create-service-account \ --env non-prod \ --profile apigee-mart \ --dir
PATH_TO_SERVICE_ACCOUNTS_DIR - Per le installazioni di Helm Charts:
- Assicurati che la variabile di ambiente
- Modifica il file
overrides.yaml
e aggiungi il percorso del file della chiave alle proprietàconnectAgent
emart.serviceAccountPath
:connectAgent: serviceAccountPath:
path_to_apigee-mart.json mart: serviceAccountPath:path_to_apigee-mart.json connectAgent: serviceAccountPath:
path_to_apigee-non-prod.json mart: serviceAccountPath:path_to_apigee-non-prod.json Ad esempio:
... connectAgent: serviceAccountPath: /apigee/hybrid/helm-charts/apigee-org/apigee-mart.json mart: serviceAccountPath: /apigee/hybrid/helm-charts/apigee-org/apigee-mart.json ...
... connectAgent: serviceAccountPath: /apigee/hybrid/hybrid-files/service-accounts/apigee-mart.json mart: serviceAccountPath: /apigee/hybrid/hybrid-files/service-accounts/apigee-mart.json ...
- Applica le modifiche:
helm upgrade
ORG_NAME apigee-org/ \ --namespaceapigee \ --atomic \ -fOVERRIDES_FILE .yaml$APIGEECTL_HOME/apigeectl apply -f
OVERRIDES_FILE .yaml --org