项目作者: guilhem

项目描述 :
Kubernetes End-to-End testing
高级语言:
项目地址: git://github.com/guilhem/champagne.git
创建时间: 2019-10-22T16:27:15Z
项目社区:https://github.com/guilhem/champagne

开源协议:

下载


Champagne 🍾

logo

Kubernetes End-to-End testing

Goal

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

christening

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

  1. $ 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:

  1. apiVersion: networking.k8s.io/v1beta1
  2. kind: Ingress
  3. metadata:
  4. name: test-ingress
  5. annotations:
  6. champagne.barpilot.io/error-codes: "5xx,404"
  7. champagne.barpilot.io/timeout: 100s
  8. spec:
  9. rules:
  10. - http:
  11. paths:
  12. - path: /testpath
  13. backend:
  14. serviceName: test
  15. servicePort: 80