summary refs log tree commit diff
path: root/nixos/tests/kubernetes
Commit message (Collapse)AuthorAge
* nixos/kubernetes: use kubectl from kuberneteszowoq2022-02-25
| | | | - also clarify kubectl wrapper naming
* nixos/kubernetes: actually set containerd to use systemd cgroupsThomas Dy2022-01-08
| | | | | | | The correct configuration is listed in the kubernetes documentation https://kubernetes.io/docs/setup/production-environment/container-runtimes/#containerd-systemd The correct option can also be seen in `containerd config default`
* nixos/kubernetes: remove dashboardzowoq2021-12-30
|
* nixos/kubernetes: don't import `<nixpkgs>`zowoq2021-12-16
|
* Revert "kubernetes: disable rbac tests"zowoq2021-12-14
| | | | This reverts commit 91c6a97243711446471fc8a576cb9d21f516641f.
* nixos/kubernetes: drop tty and stdin for execs in test podsJohan Thomsen2021-12-14
|
* kubernetes: disable rbac testszowoq2021-12-12
| | | | timed out on hydra
* kubernetes: fix flaky test and run tests as groupAlexandru Scvortov2021-08-16
|
* kubernetes: fix conntrack-tools package name, missing dir, and testsAlexandru Scvortov2021-06-28
|
* nixos/kubernetes: docker -> containerdJohan Thomsen2021-03-07
| | | | also, nixos/containerd: module init
* nixos/tests/kubernetes: Don't re-import <nixpkgs>Sarah Brofeldt2020-07-16
|
* nixosTests.kubernetes: port tests to pythonNikolaj Hey Hinnerskov2020-05-14
|
* tests/kubernetes: remove unreferenced variable and import from inexsisting filevolth2020-03-07
|
* nixos/kubernetes: Module and test compatibility with kubernetes 1.16Sascha Grunert2019-11-15
| | | | Signed-off-by: Sascha Grunert <sgrunert@suse.com>
* Merge branch 'master' into staging-nextJan Tojnar2019-09-06
|\ | | | | | | Fixed trivial conflicts caused by removing rec.
| * Revert "Merge pull request #56789 from mayflower/upstream-k8s-refactor"Johan Thomsen2019-09-04
| | | | | | | | | | | | | | This reverts commit 7dc6e77bc2a03e660cab2c4cbf52f235bc52683e, reversing changes made to bce47ea9d5fa962736ddd4a254a27a5fd2cdee9a. Motivation for the revert in #67563
* | treewide: remove redundant quotesvolth2019-08-26
|/
* nixos/kubernetes: Stabilize services startup across machinesChristian Albrecht2019-03-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by adding targets and curl wait loops to services to ensure services are not started before their depended services are reachable. Extra targets cfssl-online.target and kube-apiserver-online.target syncronize starts across machines and node-online.target ensures docker is restarted and ready to deploy containers on after flannel has discussed the network cidr with apiserver. Since flannel needs to be started before addon-manager to configure the docker interface, it has to have its own rbac bootstrap service. The curl wait loops within the other services exists to ensure that when starting the service it is able to do its work immediately without clobbering the log about failing conditions. By ensuring kubernetes.target is only reached after starting the cluster it can be used in the tests as a wait condition. In kube-certmgr-bootstrap mkdir is needed for it to not fail to start. The following is the relevant part of systemctl list-dependencies default.target ● ├─certmgr.service ● ├─cfssl.service ● ├─docker.service ● ├─etcd.service ● ├─flannel.service ● ├─kubernetes.target ● │ ├─kube-addon-manager.service ● │ ├─kube-proxy.service ● │ ├─kube-apiserver-online.target ● │ │ ├─flannel-rbac-bootstrap.service ● │ │ ├─kube-apiserver-online.service ● │ │ ├─kube-apiserver.service ● │ │ ├─kube-controller-manager.service ● │ │ └─kube-scheduler.service ● │ └─node-online.target ● │ ├─node-online.service ● │ ├─flannel.target ● │ │ ├─flannel.service ● │ │ └─mk-docker-opts.service ● │ └─kubelet.target ● │ └─kubelet.service ● ├─network-online.target ● │ └─cfssl-online.target ● │ ├─certmgr.service ● │ ├─cfssl-online.service ● │ └─kube-certmgr-bootstrap.service
* nixos/kubernetes: Add systemd path unitsChristian Albrecht2019-03-03
| | | | | | | | | | to protect services from crashing and clobbering the logs when certificates are not in place yet and make sure services are activated when certificates are ready. To prevent errors similar to "kube-controller-manager.path: Failed to enter waiting state: Too many open files" fs.inotify.max_user_instances has to be increased.
* nixos/kubernetes: (test) Fix race-condition in test cases. docker load might ↵Johan Thomsen2019-02-20
| | | | fail due to dockerd restarting
* nixos/kubernetes: let flannel use kubernetes as storage backendJohan Thomsen2019-02-20
| | | | | | | | | + isolate etcd on the master node by letting it listen only on loopback + enabling kubelet on master and taint master with NoSchedule The reason for the latter is that flannel requires all nodes to be "registered" in the cluster in order to setup the cluster network. This means that the kubelet is needed even at nodes on which we don't plan to schedule anything.
* nixos/kubernetes: major module refactorJohan Thomsen2019-02-20
| | | | | | | | - All kubernetes components have been seperated into different files - All TLS-enabled ports have been deprecated and disabled by default - EasyCert option added to support automatic cluster PKI-bootstrap - RBAC has been enforced for all cluster components by default - NixOS kubernetes test cases make use of easyCerts to setup PKI
* nixos/kubernetes: don't enable all alpha feature gates for the test casesJohan Thomsen2018-12-16
|
* nixos/kubernetes: fix import path of default nixpkgsJohan Thomsen2018-12-12
|
* tests: refactor to carry the package set as an argumentLéo Gaspard2018-11-11
| | | | | This way, the package set will be possible to pass without re-importing all the time
* nixos/kubernetes: Replace KubeDNS with CoreDNSJohan Thomsen2018-10-31
|
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* Kubernetes tests: increase the size of the VM from 700MB to 1.5GBAlberto Berti2018-05-25
| | | | | | | VMs were starving, many of the daemons were unable to complete their tasks resulting in tests failures. Turned off verbose output from k8s components as it consumes even more resources, and useful error messages actually drown in debug-clutter
* nixos: kubernetes fixesCharles Strahan2018-03-30
| | | | | | | | | | | | | | | | | | * Fix reference CNI plugins * The plugins were split out of the upstream cni repo around version 0.6.0 * Fix RBAC and DNS tests * Fix broken apiVersion fields * Change plugin linking to look in ${package}/bin rather than ${package.plugins} * Initial work towards a working e2e test * Test still fails, but at least the expression evaluates now Continues @srhb's work in #37199 Fixes #37199
* Merge pull request #33954 from kuznero/pr/kubernetesTim Steinbach2018-02-16
|\ | | | | kubernetes: 1.7.9 -> 1.9.1
| * nixos/k8s: Enable Node authorizer and NodeRestriction by defaultSarah Brofeldt2018-02-04
| |
* | nixos/tests: Drop unnecessary qemu-flags.nix includeTuomas Tynkkynen2018-01-30
|/ | | | None of these files are using anything from there.
* kubernetes: fix testsMatej Cotman2017-09-24
|
* kubernetes module: flannel support, minor fixesJaka Hudoklin2017-09-24
| | | | | | | | | | | | | | | - add flannel support - remove deprecated authorizationRBACSuperAdmin option - rename from deprecated poratalNet to serviceClusterIpRange - add nodeIp option for kubelet - kubelet, add br_netfilter to kernelModules - enable firewall by default - enable dns by default on node and on master - disable iptables for docker by default on nodes - dns, restart on failure - update tests and other minor changes
* kubernetes: fix minor issuesMatej Cotman2017-09-24
|
* kubernetes: add testsMatej Cotman2017-09-24