@@ -11,21 +11,24 @@ This project contains test sources for various languages, frameworks and tools:
11
11
12
12
## Bootstrapping
13
13
14
- For a simple local setup use the following instructions:
15
- ```
16
- $ kubectl testkube init
17
- $ kubectl testkube dashboard
14
+ ``` bash
15
+ # For a simple local setup use the following instructions
16
+ kubectl testkube init
17
+
18
+ # to use Testkube Pro setup and connect an agent
19
+ # look at the UI for command with correct tokens
20
+ testkube pro init --agent-token=tkcagnt_etc.pp --org-id=tkcorg_etc.pp --env-id=tkcenv_etc.pp
18
21
```
19
22
20
23
For a GKE based setup using Flux as GitOps tool, use the following instructions:
21
24
``` bash
22
25
# define required ENV variables for the next steps to work
23
- $ export GITHUB_USER=lreimer
24
- $ export GITHUB_TOKEN=< your-token>
26
+ export GITHUB_USER=lreimer
27
+ export GITHUB_TOKEN=< your-token>
25
28
26
29
# setup a GKE cluster with Flux2
27
- $ make create-gke-cluster
28
- $ make bootstrap-flux2
30
+ make create-gke-cluster
31
+ make bootstrap-flux2
29
32
30
33
# modify Flux kustomization and add
31
34
# - infrastructure-sync.yaml
@@ -36,16 +39,16 @@ $ make bootstrap-flux2
36
39
# - image-update-automation.yaml
37
40
38
41
# if the TestKube Helm release fails to reconciliate
39
- $ flux suspend hr testkube
40
- $ flux resume hr testkube
42
+ flux suspend hr testkube
43
+ flux resume hr testkube
41
44
42
45
# you also need to create the webhook for the Git Repository
43
46
# Payload URL: http://<LoadBalancerAddress>/<ReceiverURL>
44
47
# Secret: the webhook-token value
45
- # $ kubectl -n flux-system get svc/receiver
46
- # $ kubectl -n flux-system get receiver/webapp
48
+ # kubectl -n flux-system get svc/receiver
49
+ # kubectl -n flux-system get receiver/webapp
47
50
48
- $ make delete-gke-cluster
51
+ make delete-gke-cluster
49
52
```
50
53
51
54
## TestKube UI and CLI
@@ -161,6 +164,7 @@ kubectl testkube run testsuite hands-on-testkube
161
164
162
165
# alternatively, create test suite via GitOps
163
166
# see k8s/applications/testsuite.yaml
167
+ # this uses the new test workflow CRD
164
168
```
165
169
166
170
## GitHub Actions Example
0 commit comments