Skip to content

Modified version of adnanh/webhook for Kubernetes CD demo purposes

Notifications You must be signed in to change notification settings

alekssaul/webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Based on webhook and Webhook contrib projects. GoogleCloudPlatform\continuous-deployment on-kubernetes and Kubernetes\contrib\scale-demo prjects

Webhook for Quay Enterprise & Kubernetes Demo

This repo contains Webhook code based on Adnanh's implementation. It is inteded to be used for Quay Enterprise to Kubernetes Continuous Delivery demos.

Setup

  • Setup Kubernetes
  • Deploy Jenkins
  • Deploy Webhook
  • Configure Quay.io trigger to issue hooks against webhook service

Folder Structure

  • Dockerfile : support building custom webhook container
  • Manifests: Manifests used for webhook (this) application on Kubernetes
  • Scripts: Bash scripts and manifests used for creating an application on Kubernetes
  • Scale-demo: Files intended to be used for autoscaling demo, which is not currently implemented

Quick Start

kubectl create namespace webhook
kubectl --namespace=webhook create -f manifests/replicationcontroller.yaml
kubectl --namespace=webhook create -f manifests/service.yaml

Test Examples

WEBHOOKTARGET=192.168.99.100:31168
curl -H "Content-Type: application/json" -X POST -d '
{
 "repository": "aleks_saul/hello_world",
 "namespace": "hello_world",
 "name": "hello_world",
 "docker_url": "quay.io/aleks_saul/hello_world",
 "homepage": "https://quay.io/aleks_saul/hello_world",
 "updated_tags": "production-11"
}
' http://$WEBHOOKTARGET/hooks/kubedeploy

About

Modified version of adnanh/webhook for Kubernetes CD demo purposes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages