coredns/middleware/kubernetes/test
Michael Richmond 6d90b745e0 Switch over to k8s notification API (#202)
* Merge notification code by @aledbf and update for recent changes.
* Fix travis environment to correctly build with k8s.io and forked repositories.
* Refactored kubernetes Corefile parser
* Added lots of Corefile parsing tests
2016-08-05 18:19:51 -07:00
..
00_run_k8s.sh Fix Travis IPv6 and add k8s integration testing to CI (#194) 2016-07-27 10:01:24 -07:00
10_setup_kubectl.sh Fix Travis IPv6 and add k8s integration testing to CI (#194) 2016-07-27 10:01:24 -07:00
15_run_skydns.sh Fix Travis IPv6 and add k8s integration testing to CI (#194) 2016-07-27 10:01:24 -07:00
20_setup_k8s_services.sh Switch over to k8s notification API (#202) 2016-08-05 18:19:51 -07:00
kill_all_containers.sh Adding wildcard support (#190) 2016-07-14 23:50:14 +02:00
README.md Adding wildcard support (#190) 2016-07-14 23:50:14 +02:00

Test scripts to automate kubernetes startup

Requirements: docker curl

The scripts in this directory startup kubernetes with docker as the container runtime. After starting kubernetes, a couple of kubernetes services are started to allow automatic testing of CoreDNS with kubernetes.

To use, run the scripts as:

$ ./00_run_k8s.sh && ./10_setup_kubectl.sh && ./20_setup_k8s_services.sh

After running the above scripts, kubernetes will be running on the localhost with the following services exposed:

~~ NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE default kubernetes 10.0.0.1 443/TCP 48m demo mynginx 10.0.0.168 80/TCP 9m demo webserver 10.0.0.28 80/TCP 2m test mynginx 10.0.0.4 80/TCP 2m test webserver 10.0.0.39 80/TCP 2m ~~

Kubernetes and all running containers can be uncerimoniously stopped by running the kill_all_containers.sh script.

$ ./kill_all_containers.sh