TerraTest: Test a Kubernetes deployment and service

In this story, we will see how to test a Kubernetes deployment and service. For that, we will use TerraTest.

Create the deployment and service manifests

Now, we will create the deployment and the service that we want to test. In first, let’s create a deployment manifest deploy.yaml:

apiVersion: apps/v1
kind: Deployment
name: nginx-deploy
app: nginx
replicas: 1




The Open DevOps Academy shares practices, experiences, and ideas about many domains of DevOps.

Recommended from Medium

How to deploy Rails Application to Kubernetes?

Learn how to use webhooks with Mattermost slash commands 🦄

Let’s Adopt a Habit to Keep Our Code Clean!

Scrape Google Play Search Apps in Python

Change Data Capture — Convert your database into a stream with Debezium

You Can Use This 5 Git-Hub Alternatives 2020

Handling polymorphism with Gson

Building an Envoy.com clone

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.

More from Medium

GitOps with Kubernetes: Managing Application using GitLab and Argo CD

Kubernetes in AWS: Create Cluster in EKS in your own VPC

ArgoCD -GitOps tool

Terraform: for vs for_each