If you are a developer who uses containers, chances are you and your team have heard about Kubernetes. At its core, Kubernetes is a container operating system for the web, but has grown to be much more. Sure, Kubernetes can manage your containers, network traffic, and bring up a crashed ad, but it has also become a widely adopted platform with a growing community.
â€œWhen you see Kubernetes as a platform for building other platforms, it becomes more of an ecosystem tool,â€ said Kelsey Hightower, Staff Developer Advocate, Google Cloud Platform. â€œKubernetes reflects another checkpoint on how we deal with distributed systems and containersâ€”all backed by a community that will evolve on its own, independent of a specific vendor.â€
But where does one begin? In this Kubernetes tutorial, weâ€™ll break down how teams should think about implementing Kubernetes and share some insightful resources that can help your team solve specific challenges.
â€œThere is a big difference between installing Kubernetes and using Kubernetes as a developer,â€ Hightower explains.
â€œI like to use the car analogy. There are some people who can design a car from scratchâ€”from the motor to transmissionâ€”and put the whole thing together to mass produce it. But thatâ€™s different from the person who is expected to drive it.â€
Kubernetes is for both operators and developers. Teams looking to unpack Kubernetes and have it deploy your app can do so quickly. However, with more knowledge of the Kubernetes platform, your team can build out extensions as your business needs and application requirements gets more sophisticated.
â€œKubernetes should not get in your way no matter what you want to do above it,â€ Hightower states. â€œKubernetes supports you deploying when you want, where you want.â€
Kubernetes has a robust community and growing base of practitioners. Because Kubernetes is becoming a next-evel platform, itâ€™s a neutral space for developers to share, regardless of their level of expertise or industry.
Anyone looking for dynamic resources and advice should join any of these Kubernetes communities:
- The Official Kubernetes Community Page: Explore the page for more new developments in Kubernetes, as well as special interest groups using this tool.
- 2020 KubeCon: The Kubecon conferences, sponsored by the Cloud Native Computing Foundation (CNCF), is a meetup of core contributors and Kubernetes practitioners telling stories. The upcoming meeting is set for Amsterdam, The Netherlands.
- Social media: @Kubernetes
Developers dipping their toes in the Kubernetes water should first know that running an app with this tool is fairly straightforward.
â€œThe first Kubernetes best practice is not to run Kubernetes,â€ says John Arundel, principal consultant of Bitfield Consulting. â€œLet me clarify that. Don’t run Kubernetes yourself, use a managed Kubernetes service such as Google Kubernetes Engine.â€
â€œThe one book that every developer and sysadmin should read is ‘Kubernetes Up And Runningâ€™.â€ Arundel suggests. â€œIt explains what Kubernetes is and how it works, and shows you how to go from running your first container to reasonably complex, stateful multi-pod applications.â€
Alongside the Kubernete tutorials here at Stackify, YouTube has other great Kubernetes tutorials that provide an overview of container management. Googleâ€™s Aparna Sinha has a video on how to set up your clusters for scale and availability across zones and regions.
- Cloud Native DevOps Blog
- Google Cloud Platform
- Kubernetes Homepage
- Brave New Geek
- “Architecting Applications For Kubernetes” on Digital Ocean
- “Kubernetes Tutorial: An API Perspective on How Kubernetes Works” on Netsil
- “Using GPGPUs with Kubernetes” on the Ubuntu blog
- Kubernetes and Google Container Engine by Google
- Kubernetes The Easy Way by Coding Tech
- Kubernetes In Five Minutes by VMWare Cloud Native Apps
- What is Kubernetes by edureka
- Kubernetes Tutorials For Beginners by Level Up
â€œIt’s not that difficult to get a basic Kubernetes cluster up and running, but production-grade clusters are a little harder,â€ advises Arundel.
Developers should consider services that run on master nodes, a higher availability for worker nodes, security, authorization with Kubernetes RBAC roles, Pod Security Policies (PSP), and dependency management.
â€œAll this stuff is complicated and easy to get wrong, and if you get it wrong, your business could be hacked or suffer catastrophic failures,â€ Arundel states.
Intermediate teams should be customizing Kubernetes functionality to extend the basic components of the platform out to fit your needs.
â€œMaybe you want all your apps to have an SSL certificate and want your endpoint protected,â€ says Hightower. â€œKubernetes doesnâ€™t have that out of the box. Youâ€™ll see developers in the ecosystem understand the Kubernetes API and build out these extensions, or what we call operators.â€
Ultimately the goal for intermediate teams is to begin utilizing the simple Kubernetes API to add functionality.
- Kubernetes Tutorials
- Set Up a CI/CD Pipeline with Kubernetes
- Kubernetes on Azure Tutorial – Prepare App for Azure Kubernetes Service
- Securing Your Cluster
- How to build a CI/CD pipeline using Kubernetes, Gitlab CI, and Helm
- The Simplest Guide to Using Blue/Green Deployment in Kubernetes</a
By now, youâ€™ve built a Kubernetes system that should have massively reduced the time and effort it takes to deploy an application.
â€œIf you previously deployed every week, you should have no problem deploying every day on Kubernetes.â€ Arundel states. â€œContinuous infrastructure’ is the cloud native equivalent of ‘continuous deployment’: instead of doing manual actions such as a deploy, you simply push to a Git repo, and an automatic system will run tests and make your changes live.â€
Hightower suggests developers should look into Webhook controls and and admission controls as their needs grow.
â€œEvery developer needs access to a particular database. We could have them describe it outside the Kubernetes deployment object, or we can create an admission controller. There are a whole set of resources on the official Kubernetes websiteâ€”just search for admission controllers and youâ€™ll see how to make one of these things.â€
Kubernetes is a powerful DevOps tool with the potential to radically transform how your dev team operates, but it really comes down to how your business is moving and what youâ€™ll need your applications to do.
Developers have a wide spectrum of resources and education optionsâ€“ from Kubernetes conferences and niche online communities, to the wealth of advanced content hosted by the official Kubernetes homepage.
â€œKubernetes is a tool that was born in the cloud era,â€ Hightower states. â€œWe know that these tools need great APIs and they need to be open sourced so they can be trusted in the long term. We also know that these tools need to be backed by big communities so we can ask questions of our peers and not rely 100% on the vendor for support.â€