OpsMx
Search…
Google Cloud Storage

Steps to Configure GCS Artifacts

  • Validated data from artifacts can consume GCS objects as artifacts, in multiple Spinnaker Stages.

Prerequisites

  • To have GCS enabled on Spinnaker, it’s mandatory to have GCP (Google Cloud Project) created to host a bucket in.
  • To validate and confirm whether GCP is created or not, execute the following command
    1
    gcloud info
    Copied!
  • For Spinnaker to authenticate on GCP, it’s mandatory to have Google Credentials/JSON key downloaded. In case if the details are unavailable, click here to generate the same.

Enable GCS Artifact Settings:

  • Ensure to have the following values are enabled
    1
    # Same as in Prerequisites section above
    2
    SERVICE_ACCOUNT_DEST=~/.gcp/gcs-artifacts-account.json
    3
    ARTIFACT_ACCOUNT_NAME=my-gcs-artifact-account
    Copied!
  • Execute the following command to enable Artifact Support
    1
    hal config features edit --artifacts true
    Copied!
  • Execute, the following command to add Artifact account
    1
    hal config artifact gcs account add $ARTIFACT_ACCOUNT_NAME \
    2
    --json-path $SERVICE_ACCOUNT_DEST
    Copied!
  • Finally, execute the following command to enable GCS artifact Support
    1
    hal config artifact gcs enable
    Copied!
    Note: To Explore more options on this configuration, click here
Last modified 1yr ago