• facebook
  • twitter
  • in
  • Email

Kubernetes is simply an open source system that acts as a container orchestration system for applications. Kubernetes makes deployment and the scaling operations of applications easier and quicker. Kubernetes runs on premises or in Cloud providers such as Azure Kubernetes Service (AKS).

Kubernetes creates a set of primitives (building blocks) which provide methods for deploying, maintaining, and scaling applications based on memory, CPU, or custom metrics.

Kubernetes is loosely coupled, so it is easily extensible to meet different workloads. The Kubernetes platform defines resources as objects. The central objects are as follows:

  • Namespaces: Partitions managed resources to non-overlapping sets.
  • Services: Group of pods that work together as defined by a label selector.
  • Pods: One or more containers located on the host and can share resources.
  • Volumes: File systems in the Kubernetes Container provide short-term storage.

Installing Kubernetes

Installation of Kubernetes is quite easy. The following steps show you how to install it:

  1. Install Visual Studio 2019.
  2. Install the ASP.NET and Web development workload.
  3. Ensure Visual Studio Tools for Kubernetes is installed.
  4. Navigate to Visual Studio Online Tools.
  5. Click Install. The following screen should appear:

    Kubernetes

    Figure 1: Kubernetes

  6. Click Install at the bottom right-hand corner of the screen. Kubernetes will be installed.

To create a Kubernetes Container application, perform the following steps:

  1. Create a new Visual Studio 2019, C# project.
  2. Search for the Container Application for Kubernetes template.
  3. Once found, click Next.
  4. Then, enter the project details.
  5. Click Create.
  6. Select Web Application on the next screen.
  7. Click Create.
  8. The Solution Explorer window should resemble to the following screenshot:

    Solution Explorer

    Figure 2: Solution Explorer

A few of the added files to the solution are as follows:

  • Dockerfile: Collection of SaaS (Software-as-a-Service) and PaaS (Platform-as-a-Service) services that employ operating-system-level virtualization for the development and delivery of software.
  • Helm chart: Helm charts define, install, and upgrade Kubernetes applications.
  • azds.yaml: Contains the settings for Azure Dev Spaces. YAML (YAML Ain't Markup Language) is a simple, legible data-serialization language.

Conclusion

Although this is merely the tip of the iceberg, you're now ready to start playing around with Kubernetes.






IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD

Which topic are you interested in?

Mobile

Security

Networks/IoT

Cloud

Data Storage

Applications

Development

IT Management

Other

What is your company size?

What is your job title?

What is your job function?

Searching our resource database to find your matches...