Book Image

DevSecOps in Practice with VMware Tanzu

By : Parth Pandit, Robert Hardt
Book Image

DevSecOps in Practice with VMware Tanzu

By: Parth Pandit, Robert Hardt

Overview of this book

As Kubernetes (or K8s) becomes more prolific, managing large clusters at scale in a multi-cloud environment becomes more challenging – especially from a developer productivity and operational efficiency point of view. DevSecOps in Practice with VMware Tanzu addresses these challenges by automating the delivery of containerized workloads and controlling multi-cloud Kubernetes operations using Tanzu tools. This comprehensive guide begins with an overview of the VMWare Tanzu platform and discusses its tools for building useful and secure applications using the App Accelerator, Build Service, Catalog service, and API portal. Next, you’ll delve into running those applications efficiently at scale with Tanzu Kubernetes Grid and Tanzu Application Platform. As you advance, you’ll find out how to manage these applications, and control, observe, and connect them using Tanzu Mission Control, Tanzu Observability, and Tanzu Service Mesh. Finally, you’ll explore the architecture, capabilities, features, installation, configuration, implementation, and benefits of these services with the help of examples. By the end of this VMware book, you’ll have gained a thorough understanding of the VMWare Tanzu platform and be able to efficiently articulate and solve real-world business problems.
Table of Contents (19 chapters)
Part 1 – Building Cloud-Native Applications on the Tanzu Platform
Part 2 – Running Cloud-Native Applications on Tanzu
Part 3 – Managing Modern Applications on the Tanzu Platform

Common day-2 operations with Tanzu Kubernetes Grid

Now that we have a fully configured and running TKG foundation on AWS, let’s learn how to perform some of the day-2 operations on it. TKG makes these operations very trivial as they do all the heavy lifting behind the scenes:

  • Scale a cluster to add or remove nodes
  • Upgrade a cluster to bump up the Kubernetes version
  • Delete a cluster
  • Delete the entire TKG foundation

Let’s start by scaling the workload cluster so that it has three worker nodes instead of just one.

Scaling a Tanzu Kubernetes Grid cluster

Run the following commands to scale the workload cluster we created:

  1. Switch the kubectl context so that it’s pointing to the management cluster that we previously created, which we used to create the workload cluster:
    $ kubectl config use-context tkg-aws-mgmt-cluster-admin@tkg-aws-mgmt-cluster
  2. Ensure that the workload cluster has only one worker node by running the following...