forked from cncf/k8s-conformance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conformance testing for gravity 5.6 (cncf#575)
- Loading branch information
1 parent
0d95748
commit c6078a1
Showing
5 changed files
with
20,994 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
vendor: Gravitational | ||
name: Gravity | ||
version: 5.6.1 | ||
website_url: https://gravitational.com/gravity | ||
documentation_url: https://gravitational.com/gravity/docs/overview/ | ||
product_logo_url: https://gravitational.com/gravity/docs/img/logo.svg | ||
type: distribution | ||
description: Gravity is a Kubernetes packaging solution that takes the drama out of on-prem deployments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Running conformance tests against Gravity | ||
|
||
Get a node or VM which meets the following requirements: https://gravitational.com/telekube/docs/requirements/ | ||
|
||
|
||
Get Gravity | ||
```console | ||
$ curl https://get.gravitational.io/telekube/install | bash | ||
$ tele pull telekube:5.6.1 | ||
$ tar -xvf telekube-5.6.1.tar | ||
``` | ||
|
||
Install Gravity | ||
```console | ||
$ sudo ./gravity install | ||
``` | ||
|
||
Enter the gravity container, which holds our kubernetes installation | ||
```console | ||
$ sudo gravity enter | ||
``` | ||
|
||
Delete all the jobs used during installation so they don't conflict with the testing | ||
```console | ||
18:55:16 root@cncf-conformance-1:/# kubectl get jobs --all-namespaces | awk '{ print $2, "--namespace", $1 }' | while read line; do kubectl delete jobs $line; done | ||
``` | ||
|
||
sonobuoy currently require privileged containers | ||
https://github.com/heptio/sonobuoy/issues/559 | ||
```console | ||
18:55:16 root@cncf-conformance-1:/# sed -i 's/allow-privileged=false/allow-privileged=true/g' /lib/systemd/system/kube-* | ||
18:55:16 root@cncf-conformance-1:/# systemctl daemon-reload | ||
18:55:16 root@cncf-conformance-1:/# systemctl restart 'kube-*' | ||
``` | ||
|
||
|
||
Run the conformance tests | ||
``` | ||
gravity-conformance-2:/$ curl -L https://github.com/heptio/sonobuoy/releases/download/v0.14.2/sonobuoy_0.14.2_linux_amd64.tar.gz -o sonobuoy.tar.gz | ||
gravity-conformance-2:/$ tar -zxvf sonobuoy.tar.gz | ||
gravity-conformance-2:/$ ./sonobuoy run | ||
``` |
Oops, something went wrong.