Code Monkey home page Code Monkey logo

Comments (7)

demobox avatar demobox commented on August 14, 2024

Do you mean multiple GCP projects or multiple Spinnaker instances? The intended design is that the same spinnaker-for-gcp repo can be used to manage many Spinnaker instances - the pull_config.sh command will ensure the configuration of the targeted Spinnaker instance is retrieved and used.

from spinnaker-for-gcp.

wilddog64 avatar wilddog64 commented on August 14, 2024

from spinnaker-for-gcp.

duftler avatar duftler commented on August 14, 2024

The scripts should only be run from the $HOME/spinnaker-for-gcp directory, as designed.

If the instructions are followed, it can safely be used to manage multiple Spinnaker installations, across multiple GCP projects.

There are some details here on managing multiple installations. If you follow those steps, all that remains is to refresh the management console via ~/spinnaker-for-gcp/scripts/manage/update_console.sh.

We still recommend an admin/operator wishing to manage an installation start from the Kubernetes Engine->Applications view in the Cloud Console. The link in the application details view will open Cloud Shell and bring up the management console. Then you need to ensure you are corrected to the correct cluster, pull the config, and refresh the console. These are the exact commands that come up in the console by default when cloning the repo.

The workflow is basically:

  • Open Cloud Shell and the management console (that is, the documentation in the right-hand pane)
  • Ensure you are corrected to the correct cluster in the correct project
  • Pull the config from that Spinnaker installation
  • Refresh the management console so the various commands and links properly reflect the installation being managed

from spinnaker-for-gcp.

wilddog64 avatar wilddog64 commented on August 14, 2024

from spinnaker-for-gcp.

duftler avatar duftler commented on August 14, 2024

Yes, it works across multiple projects. This is why the first section of the management console guidance requires you to select a project.

from spinnaker-for-gcp.

wilddog64 avatar wilddog64 commented on August 14, 2024

from spinnaker-for-gcp.

duftler avatar duftler commented on August 14, 2024

If you switch to a different project, besides you have to switch
project, you also need to clean up properties file.

This is incorrect.

The pull_config.sh script replaces all of the relevant config files, including the properties file (you can see the actual command here: https://github.com/GoogleCloudPlatform/spinnaker-for-gcp/blob/master/scripts/manage/pull_config.sh#L55).

If you are switching projects and your properties file is not being updated, please open an issue with exact steps to reproduce.

from spinnaker-for-gcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.