Skip to main content

Posts

Showing posts with the label Spinnaker

Install Spinnaker as a Docker Container on Ubuntu using Ansible Playbook

Install Spinnaker as a Docker Container on Ubuntu using Ansible Playbook --- - hosts: localhost vars: environment: PYTHONPATH: "{{ lookup('env','PYTHONPATH') }}:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages" tasks: - name: Update all packages to the latest version apt: name: "*" state: latest when: ansible_facts['os_family'] == "Debian" become: true - name: Upgrade all packages to the latest version apt: upgrade: dist when: ansible_facts['os_family'] == "Debian" become: true - name: Install python2 pip package: name: python-pip when: ansible_facts['os_family'] == "Debian" become: true - name: Install python-requests module apt: name: python-requests...

Send Jenkins Parameters to Spinnaker

Prerequisite Jenkins Installation - Refer my blog for Jenkins installation on AWS EKS using Helm Spinnaker Installation - Refer their official website for installation document https://www.spinnaker.io/setup/ Jenkins-Spinnaker Integration - Refer my blog for integration setup between Jenkins and Spinnaker Use-case example Using Spinnaker we're deploying application to kubernetes cluster. For this, we've written kubernetes manifests file in spinnaker pipeline stages with namespace and version of the application as variables. These values we might want from Jenkins for, namespace will be replaced by branch name of jenkins running the build and version will be replaced by version populated while running the build. Example of such kubernetes manifest file apiVersion: apps/v1beta1 kind: Deployment metadata: name: petclinic n...

Jenkins-Spinnaker Integrations

How to trigger spinnaker CD pipeline from Jenkins CI pipeline For this setup all configurations we would do using spinnaker halyard CLI Enable Jenkins Master hal config ci jenkins enable Add Jenkins Master with any required name to Jenkins master list. Here I've used name "my-jenkins-master" While running this command keep jenkins admin user token handy which is required to authentication echo $APIKEY | hal config ci jenkins master add my-jenkins-master \ --address $BASEURL \ --username $USERNAME \ --password # api key will be read from STDIN to avoid appearing # in your .bash_history To app...