Spinnaker with Kubernetes

Detail Plan of Set Up
Configuring GitHub:

  1. Install git on (Master node).
  • sudo apt update
  • sudo apt install git
  • git –version
  • git config --global user.name "Your Name"
  • git config --global user.email "[email protected]"
  1. Setup up a git hub account using mail id.

Configuring Docker Hub:

  1. Install docker on (Worker Node).
  • sudo apt-get update
  • sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
  • curl -fsSL https//download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
  • sudo add-apt-repository "deb [arch=amd64] https//download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  • sudo apt-get update
  • sudo apt-get install docker-ce
  • sudo systemctl start docker
  • sudo systemctl enable docker
  • docker --version
  1. Set up a docker hub account.
  2. Create a new repository on docker hub.
  3. Hooking a GitHub repo to docker repo to build automatic docker images.

Configuring Kubernetes:

  1. Add the Docker gpg key.

curl -fsSL https//download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

  1. Add the Docker repository:**

sudo add-apt-repository "deb [arch=amd64] https//download.docker.com/linux/ubuntu \

$(lsb_release -cs) \ stable"

  1. Add the Kubernetes gpg key

curl -s https//packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

  1. Add the Kubernetes repository

cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list

deb https//apt.kubernetes.io/ kubernetes-xenial main


  1. Update your packages

sudo apt-get update

  1. Install Docker, kubelet, kubeadm, and kubectl:

sudo apt-get install -y docker-ce=18.06.1~ce~3-0~ubuntu kubelet=1.13.5-00 kubeadm=1.13.5-00 kubectl=1.13.5-00

  1. Hold Docker and kubernetes at the current version

sudo apt-mark hold docker-ce kubelet kubeadm kubectl

  1. Modify Bridge adaptor settings, add the iptables rule to sysctl.conf:

echo "net.bridge.bridge-nf-call-iptables=1" | sudo tee -a /etc/sysctl.conf

  1. Enable bridge adaptor settings iptables immediately:

sudo sysctl -p

Now run these below commands only on Master node.

  1. Initialize the K8s cluster

sudo kubeadm init --pod-network-cidr=

  1. Make Directory for K8s:

mkdir -p $HOME/.kube

  1. Copy the Kubeconfig:

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

  1. Change ownership of the config

sudo chown $(id -u):$(id -g) $HOME/.kube/config

  1. Apply Flannel CNI network overlay:

kubectl apply -f https//raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml

  1. Join the worker nodes to the cluster:

sudo kubeadm join [your unique string from the kubeadm init command]

  1. Verify the worker nodes have joined the cluster successfully:

kubectl get nodes

Installing Spinnaker:

  1. Installing of Halyard
    curl -O https//raw.githubusercontent.com/spinnaker/halyard/master/install/debian/InstallHalyard.sh
  • sudo bash InstallHalyard.sh
  • hal -v
  • . ~/.bashrc
  • sudo update-halyard
  1. Choose Cloud Providers (Kubernetes Legacy)
  2. Choose Environment (Distributed Installation on Kubernetes)
  3. Choose Storage (Please suggest us)
  4. Setting up of spinnaker.

Configuring Spinnaker:

  1. Creating a spinnaker application.
  2. Creating a load balancer.
  3. Creating a server group.
  4. Setting up of pipeline.
  5. Verification of pipeline.
  6. Promote to prod.
  7. Run the pipeline.