Kubernetes provides several high level abstractions to manage and access containerized applications: deployments and services. The aim of this video is to demonstrate how these abstractions can be declared and used in Kubernetes to run a small Go microservice.
- [Instructor] So this video is all about implementing…the deployment and service descriptors…so we can run our Go microservice within Kubernetes.…So in this video we're going to take a look…at how to write simple YAML descriptors for a deployment.…I'm going to show you how to can assign CPU and RAM…resources to a container.…I'm going to show you how you write a simple YAML descriptor…for Kubernetes service.…We're going to add liveness and readiness probes…to our container,…and then finally, we're going to connect to our service…through a node port.…
So this is a lot of ground to cover,…so we better get started.…So as usual, we need a Consul…in an integrated development environment.…So let's create a YAML file for our deployment.…Now this is what the header looks like, OK?…So you need to make sure that the API version…currently is extensions/v1beta1…and the kind is deployment.…So this is the basic header.…The next is the spec, OK?…So this specifies what the deployment is.…
So, for example, we always want the two replicas…
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Implementing Go HTTP Server
- JSON marshalling and unmarshalling of Go structs
- Implementing a simple REST API
- Using Docker workflows and commands
- Building a naïve Docker image
- Running a containerized Go microservice
- Kubernetes architecture and concepts
- Deploying a Go microservice to Kubernetes
- Implementing service descriptors
- Performing rolling updates