Skip to content

openknowledge/workshop-consumer-driven-contract-testing

Repository files navigation

Workshop Consumer-Driven Contract Testing

This repository contains samples for the workshop Consumer-Driven Contract Testing.

Setting up a Cluster with KinD

We use KinD to create a local Kubernetes Cluster.

First install KinD.

Create a cluster by executing the following command:

kind create cluster --config=./deployment/cluster-config/kind-config.yml --name=workshop-cdc-cluster

Store kube config of cluster

Store the internal kube config of the cluster in jenkins to enable deployment from jenkins by executing the following command:

kind -n workshop-cdc-cluster get kubeconfig --internal > jenkins/kube-config

Build the images and push to cluster

docker compose build
kind load docker-image host.docker.internal:5000/gogs:local -n workshop-cdc-cluster
kind load docker-image host.docker.internal:5000/jenkins:local -n workshop-cdc-cluster
kind load docker-image host.docker.internal:5000/setup:local -n workshop-cdc-cluster
kind load docker-image host.docker.internal:5000/delivery-db:local -n workshop-cdc-cluster

Initialize the cluster with Kustomize

kubectl apply -k ./deployment/

Accessing the cluster

Once the cluster and the services are established (this will take a while), you can access the services with the following urls:

Removing the cluster

To remove the cluster, execute the following command:

kind delete cluster -n workshop-cdc-cluster

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published