diff options
| author | Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com> | 2019-12-26 22:51:38 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-26 22:51:38 -0800 |
| commit | bdff0489119d55af2ad1d7dbc435b7c299d7883e (patch) | |
| tree | 269186515b5f7c3519eaa1aaa87baa63e14836b1 | |
| parent | f5e83eb5115306e16c57a4435d742b0811acb56f (diff) | |
| parent | 4da83c8017cc02fb89cdbbbdd0b469ef13f18d41 (diff) | |
Merge pull request #4342 from markyjackson-taulia/master
unconference notes from ben the elder kind presentation
| -rw-r--r-- | events/2019/11-contributor-summit/unconference-notes/kind-ben-the-elder.md | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/events/2019/11-contributor-summit/unconference-notes/kind-ben-the-elder.md b/events/2019/11-contributor-summit/unconference-notes/kind-ben-the-elder.md new file mode 100644 index 00000000..c853d18e --- /dev/null +++ b/events/2019/11-contributor-summit/unconference-notes/kind-ben-the-elder.md @@ -0,0 +1,88 @@ +## Presenter: Ben the Elder + + +#### Topic: Kind + +#### Date & time: 11/18/2019 2:00PM + +#### Notes + +Kind allows you to start a docker image with all the Kubernetes binaries +The basic workflow is a command that builds Kubernetes and puts it in a docker image. +After that it's a Kubernetes cluster you just run tests because what's running is a full kubernetes cluster. + +Generally speaking you want to run the upstream kubernetes tests. +You probably want to set a regex focus on tests for your areas. + +This runs on pre-submit and release blocking signal. +Take the pr code build into an image, create cluster from image and run battery of test + +kind = automated kubernetes building for testing strategies. + +Does not test block device and it doesn't isolate the block device. + +Ignore privileged containers. + +Not everything in Kubernetes can be namespaced because of linux. + +kind does not + + * Test block devices + * Test the ingress + +Kubernetes uses klog package which is a port from google + +kind build node-image + +Plan is to build a pre-submit test suite to run a single command and pass a single test. + +Kind only builds specific things it needs versus all of the binaries. + +Default is kind create cluster --image=/kindtest/default --name cluster_name + +Writes to default kube config and you can change this by specifying --kubeconfig=config name + +kubectl cluster-info --context kube-kubectl + +kind delete cluster --name cluster_name + +Some parts of the builds are cached so after the initial build it will use cached items unless things have changed. + +There is a config where you can specify how you want your cluster to be set up. + +Storage class to handle multiple kind nodes but its not available yet. + +Current options only put all workloads on the daemon doing the work + +Not true multi-node yet + +With sig-storage they are hoping there is a local storage driver that comes with it. The problem is the deployment mechanism for CSI, PR pending. + +Docker with mac containers aren't access via ip. + + + +Questions: + +Has anyone tried to launch kind cluster in pod for testing? + + * You should not do this. + +Kubernetes does do this but you shouldn't do this. + + * secrets don't nest well + * you have to make sure you clean up + * you have to run a privileged container. + +Is there any way to use it for training for spinning up multiple clusters. + + * no, and yes. possible with magic. + + +#### Key Learning/Takeaways + +Kind can be used to create cluster for testing and a project is in the works to do automated testing build into kind for release to check if prs that are merged are valid and will deploy fine. + + +#### Action items +- N/A
\ No newline at end of file |
