Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Atlassian DevOps Toolchain Cookbook

You're reading from   Atlassian DevOps Toolchain Cookbook Recipes for building, automating, and managing applications with Jira, Bitbucket Pipelines, and more

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835463789
Length 504 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Authors (4):
Arrow left icon
Rodney Nissen Rodney Nissen
Author Profile Icon Rodney Nissen
Rodney Nissen
Robert Wen Robert Wen
Author Profile Icon Robert Wen
Robert Wen
Alex Ortiz Alex Ortiz
Author Profile Icon Alex Ortiz
Alex Ortiz
Edward Gaile Edward Gaile
Author Profile Icon Edward Gaile
Edward Gaile
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1:Beginning the Cycle FREE CHAPTER
2. Chapter 1: An Introduction to DevOps and the Atlassian Ecosystem 3. Chapter 2: Discovering Customer Needs with Jira Product Discovery 4. Chapter 3: Planning and Documentation with Confluence 5. Part 2: Development to Deployment
6. Chapter 4: Enabling Connections for Design, Source Control, and Continuous Integration 7. Chapter 5: Understanding Bitbucket and Bitbucket Pipelines 8. Chapter 6: Extending and Executing Bitbucket Pipelines 9. Chapter 7: Leveraging Test Case Management and Security Tools for DevSecOps 10. Chapter 8: Deploying with Bitbucket Pipelines 11. Chapter 9: Leveraging Docker and Kubernetes for Advanced Configurations 12. Part 3: Maintaining Operations
13. Chapter 10: Collaborating with Operations through Continuous Deployment and Observability 14. Chapter 11: Monitoring Component Activity and Metrics Through CheckOps in Compass 15. Chapter 12: Escalate Using Opsgenie Alerts 16. Part 4: Putting It into Practice
17. Chapter 13: Putting It All Together with a Real-World Example 18. Chapter 14: Appendix – Key Takeaways and the Future of Atlassian DevOps Tools 19. Index 20. Other Books You May Enjoy

Deploying a Docker image to Kubernetes using Bitbucket Pipelines

A potential next step after building the Docker image is to deploy it to a Kubernetes cluster. By taking advantage of the redundancy capabilities in a cluster, we can perform application upgrades without a service outage occurring.

Getting ready

The instructions in this recipe assume that you have an existing Kubernetes cluster or minikube environment that was created manually.

In addition, you must manually define a deployment that runs the application in Kubernetes. So, let’s learn how to create a deployment.

Ensure the application name and the Docker registry username are available for easy reference. Execute the kubectl command, including the necessary flags, as shown in the following code snippet. These will include the application name and Docker registry name as part of the image name:

kubectl run <my.app> --labels="app=<my.app>" --image=<my.dockerhub.username>...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image