An open API service indexing awesome lists of open source software.

https://github.com/guilhem/champagne

Kubernetes End-to-End testing
https://github.com/guilhem/champagne

e2e-tests kubernetes testing

Last synced: about 1 year ago
JSON representation

Kubernetes End-to-End testing

Awesome Lists containing this project

README

          

# Champagne 🍾

![logo](img/logo_small.png)

Kubernetes End-to-End testing

## Goal

Before going into production, you may want to validate all your deployment (services, pods, ingress…)

![christening](img/christening.jpg)

## Features

Detect errors for:

- pod
- imagePullError
- too long pending
- restarting too quickly
- Connectivity
- Services
- Ingresses

## Getting started

Follow these instructions to get _champagne_ up and running.

### Prerequisites

- a Kubernetes cluster
- _kubeconfig_ configured

### Example

```
$ champagne test
```

## Configuration

### Services

By default, _champagne_ do a basic TCP check on service exposed port.

### Ingress

By default, _champagne_ check HTTP code return by exposed Ingresses

You can customized it with annotations:

```yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: test-ingress
annotations:
champagne.barpilot.io/error-codes: "5xx,404"
champagne.barpilot.io/timeout: 100s
spec:
rules:
- http:
paths:
- path: /testpath
backend:
serviceName: test
servicePort: 80
```