...
Get up and running with a few clicks! To install SAMi application to a Google Kubernetes Engine cluster using Google Cloud Marketplace, click on - Deploy SAMi on GCP Marketplace.
The below SAMi page is loaded on clicking the above link or when the Configure button is clicked on SAMi listing in the GCP marketplace.
...
with Product details & purchase choice is displayed in the GCP marketplace.
...
Proceed by clicking on Purchase button, follow the rest of the steps as guided on UI to enter related & relevant valid information. Post completion of the previous steps, the product details page is loaded. To access the deployment page, click on the "Configure" button as seen below -
The image provided showcases the deployment page for the SAMi application, highlighting several key fields:
...
Info |
---|
The application fundamentally uses PostgreSQL as its underlying database and the EMBEDDED database . Should you opt to use your database, simply disable this toggle and fill in the fields numbered 9 to 12 with your database detailsshould be installed as a part of the deployment in the current version |
Postgres Database Hostname for Apigee Edge (OPTIONAL): The hostname of the PostgreSQL database for application connectivity.
Postgres Database Name for Apigee Edge (OPTIONAL): Database name used for application connectivity.
Postgres Username for Apigee Edge (OPTIONAL): Username for connecting the application to the PostgreSQL database.
Postgres Database Password for Apigee Edge (OPTIONAL): Password for the PostgreSQL database connection.
Info |
---|
The database configuration below can be same as the above database configurations. |
Postgres Database Hostname for Apigee X/Hybrid/PayG (OPTIONAL): The hostname of the PostgreSQL database for application connectivity.
Postgres Database Name for Apigee X/Hybrid/PayG (OPTIONAL): Database name used for application connectivity.
Postgres Username for Apigee X/Hybrid/PayG (OPTIONAL): Username for connecting the application to the PostgreSQL database.
Postgres Database Password for Apigee X/Hybrid/PayG (OPTIONAL): Password for the PostgreSQL database connection.
Reporting Service Account: This dropdown menu facilitates the selection of a service account for reporting purposes. It authenticates and accesses GCP services to generate reports.
Note: Hostname, and database name may contain only the ASCII letters a through z (in a case-insensitive manner), the digits 0 through 9, and the hyphen character ('-').
...
Configure gcloud
as a Docker credential helper:
Code Block | ||
---|---|---|
language bash | ||
|
Create a Google Kubernetes Engine cluster
Create a cluster from command-line. If you already have a cluster that you want to use, skip this step. Use region-appropriate zones for the deployment, below is an example. For more information on setting the right zone, please refer to https://cloud.google.com/compute/docs/gpus/gpu-regions-zones.
Code Block |
---|
export CLUSTER=sami-cluster export ZONE=us-west1-a |
...
Code Block |
---|
kubectl apply -f "https://raw.githubusercontent.com/GoogleCloudPlatform/marketplace-k8s-app-tools/master/crd/app-crd.yaml" |
You need to run this command The command has to be executed once for each cluster chosen for deployment.
The Application resource is defined by the Kubernetes SIG-apps community. The source code can be found on github.com/kubernetes-sigs/application.
...
Navigate to the SAMi
directory:
Code Block | ||
---|---|---|
languagebash | ||
|
Configure the app with environment variables
Choose an instance name and namespace for the app. In most cases, you can use the default
namespace.
Code Block | ||
---|---|---|
language bash | ||
|
Set up the image tag:
It is advised to use stable image reference which you can find on Marketplace Container Registry. Example:
Code Block | ||
---|---|---|
languagebash | ||
|
Configure the container images:
Code Block | ||
---|---|---|
languagebash | ||
|
Code Block | ||
---|---|---|
language bash | ||
|
...
Expand the manifest template
Code Block | ||
---|---|---|
language bash | ||
|
Apply the manifest to your Kubernetes cluster
...
Code Block |
---|
kubectl apply -f "${APP_INSTANCE_NAME}_manifest.yaml" --namespace "${NAMESPACE}" |
4. Configure SAMi post installation
...