Let's perform the following steps to upload your configuration to Spinnaker:
- Replace the following email in the owner-email section with yours and create the provided application in Spinnaker using the following command:
$ spin application save
--application-name sample
--owner-email
[email protected]
--cloud-providers kubernetes
--gate-endpoint
http://localhost:8080/gate
- Upload the example pipeline to Spinnaker:
$ sed s/PROJECT/devopscookbook/g spinnaker/pipeline-deploy.json > pipeline.json
$ spin pipeline save --gate-endpoint http://localhost:8080/gate -f pipeline.json
The preceding command will export the configuration into a file called pipeline.json and upload it to Spinnaker.