SlideShare une entreprise Scribd logo
1  sur  37
Télécharger pour lire hors ligne
Achieving CI/CD with Kubernetes
Ramit Surana @ramitsurana /in/ramitsurana
Agenda
• History of Kubernetes
• The evolution
• How google uses it ?
• About Jenkins
• How to configure it ?
• Fabric8
• How to configure it ?
• The Final Picture
• Other Tools
• Awesome Kubernetes
• Future of Kubernetes
About Me
• Open Source Guy
• Contributor to Kubernetes
community
• Author of awesome-kubernetes
• ramitsurana@gmail.com
History of kubernetes
• Earlier known as Borg
• Borg -> Omega -> Kubernetes
• Google used MPM (Midas
Package Manager) to build and
deploy container images.
How Google does it?
Evolution of Kubernetes
• Benefits of containerization go
beyond merely enabling
higher levels of utilization.
• Need for an orchestration
engine with capablities.
• Need of a stable model,to use
docker at large scale that could
run on several cloud platforms.
About Jenkins
• Earlier known as Hudson.
• Primarily a java-based program
• Leading open source CI server
• Used by leading companies such as
Github,Netflix,Linkedin etc.
Workflow with Docker
How to configure it ?
• Find the k8s-jenkins plugin at
https://github.com/jenkinsci/k
ubernetes-plugin
• Works using JNLP(Java Network
Launch Protocol)
How to configure it ?
• Running the Jenkins image
docker run –rm –name jenkins – p 8080:8080 – p 50000:50000 –v
/var/jenkins_home csanchez/jenkins-kubernetes
How to configure it ?
• Problem
• It works only one time
• Because of stateless containers the data gets erased after a restart.
• A better solution is to use a container to store and use data to run the
jenkins container
• Better Solution
docker create --name jenkins-k8s csanchez/jenkins-kubernetes
docker run --volumes-from jenkins-k8s -p 8080:8080 -p 50000:50000 -v
/var/jenkins_home csanchez/jenkins-kubernetes
How to configure it ?
• Checkout http://localhost:8080 in your browser
Behind the scenes
• Jenkins image is automatically connected to the Jenkins master
• Slaves are launched using JNLP
• Some of the environment variables that are automatically injected:
• JENKINS_URL: Jenkins web interface url
• JENKINS_JNLP_URL: url for the jnlp definition of the specific slave
• JENKINS_SECRET: the secret key for authentication
How to configure it?
• Go to Manage Jenkins -> Configure System -> Cloud -> Kubernetes
How to configure it?
• Sample Configuration file
How to configure it?
• Sample Configuration file for slave pod template
How to configure it with adding new jobs ?
• Sample configuration
while adding a new job
Continuous Delivery with Kubernetes
Rkt by CoreOS
• Container project by CoreOS
• Supports ACI and pods by
default
• Main focus is to build containers
keeping in mind the security
aspect for containers.
Workflow with rkt a.k.a. rktnetes
Practical example with Kubernetes
Fabric8
• Microservices platform by
RedHat Guys
• Uses openshift, Jenkins and
kubernetes
• Contains several different apps
for integrations.
Fabric8 workflow
Features
• CI/CD part of fabric8:
• Jenkins
• Gogs
• Fabric8 registry
• Nexus
• SonarQube
How to do it ?
• Install gofabric8 on your local $PATH
• Ensure that you have a running kubernetes cluster
How to do it ?
• Run $ gofabric8 deploy –y
How to do it ?
• Run $ gofabric8 secrets –y
How to do it ?
• $ Kubectl get pods
This will take a while.So try going out for a Coffee :)
• In case anything fails try using $ kubectl describe pods.
How to do it ?
• If everything works out fine, then you should see
• Try using Kubernetes dashboard for the same and fabric8 console to
see your results.
How to do it ?
• Kubernetes Dashboard • Fabric8 console
Behind deploying Fabric8
The Final Picture
Other Tools
• TeamCity
• Codeship
• Travis CI
• Circle CI
• Drone.io
• Semaphore
and many more
Awesome-Kubernetes
• Official list for the Kubernetes
Community
• Awesome collection of resources
of kubernetes.
• Find articles, blogs, videos,
conferences and much more.
• Find out more at:
http://github.com/ramitsurana/awe
some-kubernetes
Future of Kubernetes
• Helm
• Kubernetes Chart
• Minikube
• Kops
• Kubedash
• Persistent Storage
• Use of Stateful Containers
And many more...
Got any Questions ?
Thank You
Happy Birthday
Kubernetes !
May you live a thousand
years old !

Contenu connexe

Tendances

Tendances (20)

Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
A brief study on Kubernetes and its components
A brief study on Kubernetes and its componentsA brief study on Kubernetes and its components
A brief study on Kubernetes and its components
 
CD using ArgoCD(KnolX).pdf
CD using ArgoCD(KnolX).pdfCD using ArgoCD(KnolX).pdf
CD using ArgoCD(KnolX).pdf
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes Introduction
 
Using GitLab CI
Using GitLab CIUsing GitLab CI
Using GitLab CI
 
Introduction to Tekton
Introduction to TektonIntroduction to Tekton
Introduction to Tekton
 
K8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals TrainingK8s in 3h - Kubernetes Fundamentals Training
K8s in 3h - Kubernetes Fundamentals Training
 
Kubernetes: A Short Introduction (2019)
Kubernetes: A Short Introduction (2019)Kubernetes: A Short Introduction (2019)
Kubernetes: A Short Introduction (2019)
 
How Kubernetes helps Devops
How Kubernetes helps DevopsHow Kubernetes helps Devops
How Kubernetes helps Devops
 
Docker
DockerDocker
Docker
 
Meetup 23 - 03 - Application Delivery on K8S with GitOps
Meetup 23 - 03 - Application Delivery on K8S with GitOpsMeetup 23 - 03 - Application Delivery on K8S with GitOps
Meetup 23 - 03 - Application Delivery on K8S with GitOps
 
Gitops: a new paradigm for software defined operations
Gitops: a new paradigm for software defined operationsGitops: a new paradigm for software defined operations
Gitops: a new paradigm for software defined operations
 
Gitops: the kubernetes way
Gitops: the kubernetes wayGitops: the kubernetes way
Gitops: the kubernetes way
 
CI/CD on Google Cloud Platform
CI/CD on Google Cloud PlatformCI/CD on Google Cloud Platform
CI/CD on Google Cloud Platform
 
GitOps - Operation By Pull Request
GitOps - Operation By Pull RequestGitOps - Operation By Pull Request
GitOps - Operation By Pull Request
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes Introduction
 
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
 

Similaire à Achieving CI/CD with Kubernetes

Why Kubernetes as a container orchestrator is a right choice for running spar...
Why Kubernetes as a container orchestrator is a right choice for running spar...Why Kubernetes as a container orchestrator is a right choice for running spar...
Why Kubernetes as a container orchestrator is a right choice for running spar...
DataWorks Summit
 

Similaire à Achieving CI/CD with Kubernetes (20)

A Million ways of Deploying a Kubernetes Cluster
A Million ways of Deploying a Kubernetes ClusterA Million ways of Deploying a Kubernetes Cluster
A Million ways of Deploying a Kubernetes Cluster
 
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
 
Kubernetes Security
Kubernetes SecurityKubernetes Security
Kubernetes Security
 
Going Serverless with Kubeless In Google Container Engine (GKE)
Going Serverless with Kubeless In Google Container Engine (GKE)Going Serverless with Kubeless In Google Container Engine (GKE)
Going Serverless with Kubeless In Google Container Engine (GKE)
 
Cluster Lifecycle Landscape
Cluster Lifecycle LandscapeCluster Lifecycle Landscape
Cluster Lifecycle Landscape
 
Operating FoundationDB on Kubernetes
Operating FoundationDB on KubernetesOperating FoundationDB on Kubernetes
Operating FoundationDB on Kubernetes
 
10 tips for Cloud Native Security
10 tips for Cloud Native Security10 tips for Cloud Native Security
10 tips for Cloud Native Security
 
Kube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 RaleighKube Overview and Kube Conformance Certification OpenSource101 Raleigh
Kube Overview and Kube Conformance Certification OpenSource101 Raleigh
 
Kubernetes-Presentation-Syed-Murtaza-Hassan
Kubernetes-Presentation-Syed-Murtaza-HassanKubernetes-Presentation-Syed-Murtaza-Hassan
Kubernetes-Presentation-Syed-Murtaza-Hassan
 
Continuous Delivery the Hard Way with Kubernetes
Continuous Delivery the Hard Way with Kubernetes Continuous Delivery the Hard Way with Kubernetes
Continuous Delivery the Hard Way with Kubernetes
 
Why Kubernetes as a container orchestrator is a right choice for running spar...
Why Kubernetes as a container orchestrator is a right choice for running spar...Why Kubernetes as a container orchestrator is a right choice for running spar...
Why Kubernetes as a container orchestrator is a right choice for running spar...
 
Automated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. AnsibleAutomated Deployment and Configuration Engines. Ansible
Automated Deployment and Configuration Engines. Ansible
 
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-stepSetting up CI/CD pipeline with Kubernetes and Kublr step-by-step
Setting up CI/CD pipeline with Kubernetes and Kublr step-by-step
 
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-step
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-stepSetting up CI/CD Pipeline with Kubernetes and Kublr step by-step
Setting up CI/CD Pipeline with Kubernetes and Kublr step by-step
 
Continuous Delivery the hard way with Kubernetes
Continuous Delivery the hard way with KubernetesContinuous Delivery the hard way with Kubernetes
Continuous Delivery the hard way with Kubernetes
 
Continuous Delivery to Kubernetes with Jenkins and Helm
Continuous Delivery to Kubernetes with Jenkins and HelmContinuous Delivery to Kubernetes with Jenkins and Helm
Continuous Delivery to Kubernetes with Jenkins and Helm
 
Containers, Serverless and Functions in a nutshell
Containers, Serverless and Functions in a nutshellContainers, Serverless and Functions in a nutshell
Containers, Serverless and Functions in a nutshell
 
A Primer on Kubernetes and Google Container Engine
A Primer on Kubernetes and Google Container EngineA Primer on Kubernetes and Google Container Engine
A Primer on Kubernetes and Google Container Engine
 
Pro2516 10 things about oracle and k8s.pptx-final
Pro2516   10 things about oracle and k8s.pptx-finalPro2516   10 things about oracle and k8s.pptx-final
Pro2516 10 things about oracle and k8s.pptx-final
 
To Build My Own Cloud with Blackjack…
To Build My Own Cloud with Blackjack…To Build My Own Cloud with Blackjack…
To Build My Own Cloud with Blackjack…
 

Plus de Ramit Surana

Plus de Ramit Surana (17)

Using Serverless Architectures to build and provision modern infrastructures​
Using Serverless Architectures to build and provision modern infrastructures​Using Serverless Architectures to build and provision modern infrastructures​
Using Serverless Architectures to build and provision modern infrastructures​
 
DEPLOYING WORDPRESS BLOG USING DOCKER COMPOSE & ANSIBLE ON AWS​
DEPLOYING WORDPRESS BLOG USING DOCKER COMPOSE & ANSIBLE ON AWS​DEPLOYING WORDPRESS BLOG USING DOCKER COMPOSE & ANSIBLE ON AWS​
DEPLOYING WORDPRESS BLOG USING DOCKER COMPOSE & ANSIBLE ON AWS​
 
Introducing Vault
Introducing VaultIntroducing Vault
Introducing Vault
 
Getting Started with Consul
Getting Started with ConsulGetting Started with Consul
Getting Started with Consul
 
Building Digital Transaction Systems in the new Banking World
Building Digital Transaction Systems in the new Banking WorldBuilding Digital Transaction Systems in the new Banking World
Building Digital Transaction Systems in the new Banking World
 
Building Big Architectures XP Conference 2016
Building Big Architectures XP Conference 2016Building Big Architectures XP Conference 2016
Building Big Architectures XP Conference 2016
 
Dependency management in golang
Dependency management in golangDependency management in golang
Dependency management in golang
 
Building Big Architectures
Building Big ArchitecturesBuilding Big Architectures
Building Big Architectures
 
Docker for the new Era: Introducing Docker,its components and tools
Docker for the new Era: Introducing Docker,its components and toolsDocker for the new Era: Introducing Docker,its components and tools
Docker for the new Era: Introducing Docker,its components and tools
 
Hashicorp: Delivering the Tao of DevOps
Hashicorp: Delivering the Tao of DevOpsHashicorp: Delivering the Tao of DevOps
Hashicorp: Delivering the Tao of DevOps
 
CoreOS: The Inside and Outside of Linux Containers
CoreOS: The Inside and Outside of Linux ContainersCoreOS: The Inside and Outside of Linux Containers
CoreOS: The Inside and Outside of Linux Containers
 
Introducing Docker Swarm - the orchestration tool by Docker
Introducing Docker Swarm - the orchestration tool by DockerIntroducing Docker Swarm - the orchestration tool by Docker
Introducing Docker Swarm - the orchestration tool by Docker
 
Sysdig - Introducing a new definition of Monitoring
Sysdig - Introducing a new definition of MonitoringSysdig - Introducing a new definition of Monitoring
Sysdig - Introducing a new definition of Monitoring
 
Introducing Puppet - The faster speed of Automation
Introducing Puppet - The faster speed of AutomationIntroducing Puppet - The faster speed of Automation
Introducing Puppet - The faster speed of Automation
 
Introducing Chef | An IT automation for speed and awesomeness
Introducing Chef | An IT automation for speed and awesomenessIntroducing Chef | An IT automation for speed and awesomeness
Introducing Chef | An IT automation for speed and awesomeness
 
Canister
Canister Canister
Canister
 
Exploring Openstack Swift(Object Storage) and Swiftstack
Exploring Openstack Swift(Object Storage) and Swiftstack Exploring Openstack Swift(Object Storage) and Swiftstack
Exploring Openstack Swift(Object Storage) and Swiftstack
 

Dernier

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Dernier (20)

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 

Achieving CI/CD with Kubernetes

  • 1. Achieving CI/CD with Kubernetes Ramit Surana @ramitsurana /in/ramitsurana
  • 2. Agenda • History of Kubernetes • The evolution • How google uses it ? • About Jenkins • How to configure it ? • Fabric8 • How to configure it ? • The Final Picture • Other Tools • Awesome Kubernetes • Future of Kubernetes
  • 3. About Me • Open Source Guy • Contributor to Kubernetes community • Author of awesome-kubernetes • ramitsurana@gmail.com
  • 4. History of kubernetes • Earlier known as Borg • Borg -> Omega -> Kubernetes • Google used MPM (Midas Package Manager) to build and deploy container images.
  • 6. Evolution of Kubernetes • Benefits of containerization go beyond merely enabling higher levels of utilization. • Need for an orchestration engine with capablities. • Need of a stable model,to use docker at large scale that could run on several cloud platforms.
  • 7. About Jenkins • Earlier known as Hudson. • Primarily a java-based program • Leading open source CI server • Used by leading companies such as Github,Netflix,Linkedin etc.
  • 9. How to configure it ? • Find the k8s-jenkins plugin at https://github.com/jenkinsci/k ubernetes-plugin • Works using JNLP(Java Network Launch Protocol)
  • 10. How to configure it ? • Running the Jenkins image docker run –rm –name jenkins – p 8080:8080 – p 50000:50000 –v /var/jenkins_home csanchez/jenkins-kubernetes
  • 11. How to configure it ? • Problem • It works only one time • Because of stateless containers the data gets erased after a restart. • A better solution is to use a container to store and use data to run the jenkins container • Better Solution docker create --name jenkins-k8s csanchez/jenkins-kubernetes docker run --volumes-from jenkins-k8s -p 8080:8080 -p 50000:50000 -v /var/jenkins_home csanchez/jenkins-kubernetes
  • 12. How to configure it ? • Checkout http://localhost:8080 in your browser
  • 13. Behind the scenes • Jenkins image is automatically connected to the Jenkins master • Slaves are launched using JNLP • Some of the environment variables that are automatically injected: • JENKINS_URL: Jenkins web interface url • JENKINS_JNLP_URL: url for the jnlp definition of the specific slave • JENKINS_SECRET: the secret key for authentication
  • 14. How to configure it? • Go to Manage Jenkins -> Configure System -> Cloud -> Kubernetes
  • 15. How to configure it? • Sample Configuration file
  • 16. How to configure it? • Sample Configuration file for slave pod template
  • 17. How to configure it with adding new jobs ? • Sample configuration while adding a new job
  • 19. Rkt by CoreOS • Container project by CoreOS • Supports ACI and pods by default • Main focus is to build containers keeping in mind the security aspect for containers.
  • 20. Workflow with rkt a.k.a. rktnetes
  • 22. Fabric8 • Microservices platform by RedHat Guys • Uses openshift, Jenkins and kubernetes • Contains several different apps for integrations.
  • 24. Features • CI/CD part of fabric8: • Jenkins • Gogs • Fabric8 registry • Nexus • SonarQube
  • 25. How to do it ? • Install gofabric8 on your local $PATH • Ensure that you have a running kubernetes cluster
  • 26. How to do it ? • Run $ gofabric8 deploy –y
  • 27. How to do it ? • Run $ gofabric8 secrets –y
  • 28. How to do it ? • $ Kubectl get pods This will take a while.So try going out for a Coffee :) • In case anything fails try using $ kubectl describe pods.
  • 29. How to do it ? • If everything works out fine, then you should see • Try using Kubernetes dashboard for the same and fabric8 console to see your results.
  • 30. How to do it ? • Kubernetes Dashboard • Fabric8 console
  • 33. Other Tools • TeamCity • Codeship • Travis CI • Circle CI • Drone.io • Semaphore and many more
  • 34. Awesome-Kubernetes • Official list for the Kubernetes Community • Awesome collection of resources of kubernetes. • Find articles, blogs, videos, conferences and much more. • Find out more at: http://github.com/ramitsurana/awe some-kubernetes
  • 35. Future of Kubernetes • Helm • Kubernetes Chart • Minikube • Kops • Kubedash • Persistent Storage • Use of Stateful Containers And many more...
  • 37. Thank You Happy Birthday Kubernetes ! May you live a thousand years old !