about summary refs log tree commit diff
path: root/nixos/tests/kubernetes
AgeCommit message (Collapse)AuthorFilesLines
2022-02-25nixos/kubernetes: use kubectl from kuberneteszowoq2-4/+4
- also clarify kubectl wrapper naming
2022-01-08nixos/kubernetes: actually set containerd to use systemd cgroupsThomas Dy1-7/+0
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`
2021-12-30nixos/kubernetes: remove dashboardzowoq1-1/+0
2021-12-16nixos/kubernetes: don't import `<nixpkgs>`zowoq4-4/+4
2021-12-14Revert "kubernetes: disable rbac tests"zowoq1-4/+2
This reverts commit 91c6a97243711446471fc8a576cb9d21f516641f.
2021-12-14nixos/kubernetes: drop tty and stdin for execs in test podsJohan Thomsen2-8/+8
2021-12-12kubernetes: disable rbac testszowoq1-2/+4
timed out on hydra
2021-08-16kubernetes: fix flaky test and run tests as groupAlexandru Scvortov1-5/+13
2021-06-28kubernetes: fix conntrack-tools package name, missing dir, and testsAlexandru Scvortov1-1/+8
2021-03-07nixos/kubernetes: docker -> containerdJohan Thomsen2-11/+10
also, nixos/containerd: module init
2020-07-16nixos/tests/kubernetes: Don't re-import <nixpkgs>Sarah Brofeldt1-1/+0
2020-05-14nixosTests.kubernetes: port tests to pythonNikolaj Hey Hinnerskov3-61/+107
2020-03-07tests/kubernetes: remove unreferenced variable and import from inexsisting filevolth1-2/+0
2019-11-15nixos/kubernetes: Module and test compatibility with kubernetes 1.16Sascha Grunert1-0/+1
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-09-06Merge branch 'master' into staging-nextJan Tojnar3-11/+1
Fixed trivial conflicts caused by removing rec.
2019-09-04Revert "Merge pull request #56789 from mayflower/upstream-k8s-refactor"Johan Thomsen3-11/+1
This reverts commit 7dc6e77bc2a03e660cab2c4cbf52f235bc52683e, reversing changes made to bce47ea9d5fa962736ddd4a254a27a5fd2cdee9a. Motivation for the revert in #67563
2019-08-26treewide: remove redundant quotesvolth1-1/+1
2019-03-03nixos/kubernetes: Stabilize services startup across machinesChristian Albrecht2-0/+7
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
2019-03-03nixos/kubernetes: Add systemd path unitsChristian Albrecht1-1/+4
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.
2019-02-20nixos/kubernetes: (test) Fix race-condition in test cases. docker load might ↵Johan Thomsen2-6/+6
fail due to dockerd restarting
2019-02-20nixos/kubernetes: let flannel use kubernetes as storage backendJohan Thomsen1-1/+0
+ 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.
2019-02-20nixos/kubernetes: major module refactorJohan Thomsen5-302/+28
- 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
2018-12-16nixos/kubernetes: don't enable all alpha feature gates for the test casesJohan Thomsen1-1/+0
2018-12-12nixos/kubernetes: fix import path of default nixpkgsJohan Thomsen1-1/+1
2018-11-11tests: refactor to carry the package set as an argumentLéo Gaspard1-2/+5
This way, the package set will be possible to pass without re-importing all the time
2018-10-31nixos/kubernetes: Replace KubeDNS with CoreDNSJohan Thomsen1-2/+2
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth2-3/+3
2018-05-25Kubernetes tests: increase the size of the VM from 700MB to 1.5GBAlberto Berti2-2/+1
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
2018-03-30nixos: kubernetes fixesCharles Strahan3-22/+55
* 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
2018-02-16Merge pull request #33954 from kuznero/pr/kubernetesTim Steinbach4-9/+10
kubernetes: 1.7.9 -> 1.9.1
2018-02-04nixos/k8s: Enable Node authorizer and NodeRestriction by defaultSarah Brofeldt4-9/+10
2018-01-30nixos/tests: Drop unnecessary qemu-flags.nix includeTuomas Tynkkynen1-1/+0
None of these files are using anything from there.
2017-09-24kubernetes: fix testsMatej Cotman10-688/+536
2017-09-24kubernetes module: flannel support, minor fixesJaka Hudoklin4-117/+31
- 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
2017-09-24kubernetes: fix minor issuesMatej Cotman5-259/+15
2017-09-24kubernetes: add testsMatej Cotman9-0/+1150