How to install Spinnaker on CentOS 7
Spinnaker doesn’t support installation on CentOS machine, this article introduces how to use Docker to install Spinnaker components on CentOS directly.
As we know, according to the spinnaker’s official documentation, spinnaker provides a tool for installing the spinnaker cluster in Kubernetes cluster or debian/ubuntu bare metal machine, but there’s not an option to install it on CentOS or other common operating systems. Althogh the spinnaker provides a way to start Spinnaker with Docker Compose, but it’s out of date. So I created a new docker-compose project to quickstart a spinnaker cluster on any kind of os.
Quickstart
Provision a machine with at least 16GB memory and 4 cores, it may need more than this since my macbook pro(4cores, 16GB) was stuck when I started spinnaker.
1 | sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |
To access the spinnaker
Visit http://localhost:9000
in browser if you run spinnaker on local machine.
Otherwise you can use ssh to create tunnel on local machine. Spinnaker exposes two ports, 9000 for web, 8084 for api gateway.
1 | ssh -L 8084:localhost:8084 <remote-host> |
Add clouddriver
You need to edit config/clouddriver.yml
to open multiple clouddrivers, it’s not easy to integrate since we don’t have the halyard
to do this stuff, but if you already have the clouddriver.yml, it’s easier to make it work.
Since clouddriver will need credentials, you need to modify the docker-compose.yml
to mount the credential files on the docker containers.