-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Adam Dyess <adam.dyess@canonical.com> Co-authored-by: cdkbot <cdkbot@juju.solutions>
- Loading branch information
Showing
4 changed files
with
55,792 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,10 @@ | ||
vendor: Canonical Ltd | ||
name: Charmed Kubernetes | ||
version: 1.28 | ||
website_url: https://www.ubuntu.com/kubernetes | ||
repo_url: https://github.com/charmed-kubernetes/bundle | ||
documentation_url: https://ubuntu.com/kubernetes/docs | ||
product_logo_url: https://assets.ubuntu.com/v1/e6cd15f7-Charmed+Kubernetes_RGB_2022.svg | ||
type: distribution | ||
description: Deploy, scale and upgrade Kubernetes clusters across multiple physical or virtual machines with Charmed Kubernetes. | ||
contact_email_address: kevin.monroe@canonical.com |
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,50 @@ | ||
# Reproducing the test results | ||
|
||
## Deploy Charmed Kubernetes on AWS | ||
|
||
On Ubuntu or any OS that supports Snap run the following: | ||
|
||
```console | ||
% sudo snap install juju --classic | ||
|
||
# With AWS credentials in a default location (ie ~/.aws/credentials) | ||
% juju autoload-credentials | ||
|
||
Looking for cloud and credential information on local client... | ||
|
||
1. aws credential "default" (new) | ||
Select a credential to save by number, or type Q to quit: 1 | ||
|
||
% juju bootstrap aws | ||
% juju deploy charmed-kubernetes | ||
% juju config kubernetes-control-plane allow-privileged=true | ||
``` | ||
|
||
Note that the tests require privileged containers so we needed to configure the | ||
control plane units appropriately. | ||
|
||
Monitor the progress of the deployment using: | ||
|
||
```console | ||
% juju status | ||
``` | ||
|
||
As soon as the deployment finalises you can fetch the kubeconfig: | ||
|
||
```console | ||
% juju scp kubernetes-control-plane/leader:config $HOME/.kube/ | ||
``` | ||
|
||
## Trigger the tests and retrieve the results | ||
|
||
We follow the [official instructions](https://github.com/cncf/k8s-conformance/blob/master/instructions.md) | ||
with one additional flag. Charmed Kubernetes control plane nodes have a NoSchedule taint by default. | ||
Configure sonobuoy so the tests are not blocked waiting for the tainted control plane nodes: | ||
|
||
```console | ||
% export RBAC_ENABLED=$(kubectl api-versions | grep "rbac.authorization.k8s.io/v1" -c) | ||
% sonobuoy run --mode=certified-conformance \ | ||
--plugin-env=e2e.E2E_EXTRA_ARGS=--non-blocking-taints=node-role.kubernetes.io/control-plane \ | ||
--wait | ||
% sonobuoy retrieve | ||
``` |
Oops, something went wrong.