|
9 | 9 | steps: |
10 | 10 | - uses: actions/checkout@v2 |
11 | 11 | - uses: ./ |
12 | | - id: test-cluster-1-a |
13 | | - name: "Create 1st k3d Cluster in 172.20.0.0/24" |
| 12 | + name: "Create 1st Cluster in 172.18.0.0/16" |
14 | 13 | with: |
15 | | - cluster-name: "test-cluster-1-a" |
16 | | - network: "nw01" |
17 | | - subnet-CIDR: "172.20.0.0/24" |
| 14 | + cluster-name: "test-cluster-1" |
18 | 15 | args: >- |
| 16 | + -p "80:80@agent:0:direct" |
| 17 | + -p "443:443@agent:0:direct" |
| 18 | + -p "5053:53/udp@agent:0:direct" |
19 | 19 | --agents 3 |
20 | 20 | --no-lb |
21 | 21 | --k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*" |
| 22 | + --network "nw01" |
22 | 23 |
|
23 | 24 | - uses: ./ |
24 | | - id: test-cluster-1-b |
25 | | - name: "Create 2nd k3d Cluster in 172.20.0.0/24" |
| 25 | + name: "Create 2nd Cluster in 172.18.0.0/16" |
26 | 26 | with: |
27 | | - cluster-name: "test-cluster-2-a" |
28 | | - network: "nw01" |
| 27 | + cluster-name: "test-cluster-2" |
29 | 28 | args: >- |
| 29 | + -p "81:80@agent:0:direct" |
| 30 | + -p "444:443@agent:0:direct" |
| 31 | + -p "5054:53/udp@agent:0:direct" |
30 | 32 | --agents 3 |
31 | 33 | --no-lb |
32 | 34 | --k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*" |
| 35 | + --network "nw01" |
33 | 36 |
|
34 | 37 | - uses: ./ |
35 | | - id: test-cluster-2-a |
36 | | - name: "Create 1st k3d Cluster in 172.20.1.0/24" |
| 38 | + name: "Create 1st Cluster in 172.19.0.0/16" |
37 | 39 | with: |
38 | | - cluster-name: "test-cluster-1-b" |
39 | | - network: "nw02" |
40 | | - subnet-CIDR: "172.20.1.0/24" |
| 40 | + cluster-name: "test-cluster-3" |
41 | 41 | args: >- |
| 42 | + -p "82:80@agent:0:direct" |
| 43 | + -p "445:443@agent:0:direct" |
| 44 | + -p "5055:53/udp@agent:0:direct" |
42 | 45 | --agents 3 |
43 | 46 | --no-lb |
44 | 47 | --k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*" |
| 48 | + --network "nw02" |
45 | 49 |
|
46 | 50 | - uses: ./ |
47 | | - id: test-cluster-2-b |
48 | | - name: "Create 2nd k3d Cluster in 172.20.1.0/24" |
| 51 | + name: "Create 2nd Cluster in 172.19.0.0/16" |
49 | 52 | with: |
50 | | - cluster-name: "test-cluster-2-b" |
51 | | - network: "nw02" |
| 53 | + cluster-name: "test-cluster-4" |
52 | 54 | args: >- |
| 55 | + -p "83:80@agent:0:direct" |
| 56 | + -p "446:443@agent:0:direct" |
| 57 | + -p "5056:53/udp@agent:0:direct" |
53 | 58 | --agents 3 |
54 | 59 | --no-lb |
55 | 60 | --k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*" |
| 61 | + --network "nw02" |
56 | 62 |
|
57 | 63 | - name: Cluster info |
58 | 64 | run: | |
59 | | - echo |
60 | | - echo test-cluster-1-a: ${{ steps.test-cluster-1-a.outputs.network }} ${{ steps.test-cluster-1-a.outputs.subnet-CIDR }} |
61 | | - echo test-cluster-1-b: ${{ steps.test-cluster-1-b.outputs.network }} ${{ steps.test-cluster-1-b.outputs.subnet-CIDR }} |
62 | | - echo test-cluster-2-a: ${{ steps.test-cluster-2-a.outputs.network }} ${{ steps.test-cluster-2-a.outputs.subnet-CIDR }} |
63 | | - echo test-cluster-2-b: ${{ steps.test-cluster-2-b.outputs.network }} ${{ steps.test-cluster-2-b.outputs.subnet-CIDR }} |
64 | | - echo |
65 | | - kubectl cluster-info --context k3d-test-cluster-1-a |
66 | | - kubectl cluster-info --context k3d-test-cluster-2-a |
67 | | - kubectl cluster-info --context k3d-test-cluster-1-b |
68 | | - kubectl cluster-info --context k3d-test-cluster-2-b |
| 65 | + kubectl cluster-info --context k3d-test-cluster-1 |
| 66 | + kubectl cluster-info --context k3d-test-cluster-2 |
| 67 | + kubectl cluster-info --context k3d-test-cluster-3 |
| 68 | + kubectl cluster-info --context k3d-test-cluster-4 |
69 | 69 |
|
70 | 70 | - name: Nodes |
71 | 71 | run: | |
72 | 72 | docker ps -a |
73 | | - kubectl config use-context k3d-test-cluster-1-a |
| 73 | + kubectl config use-context k3d-test-cluster-1 |
74 | 74 | kubectl get nodes -o wide |
75 | | - kubectl config use-context k3d-test-cluster-1-b |
| 75 | + kubectl config use-context k3d-test-cluster-2 |
76 | 76 | kubectl get nodes -o wide |
77 | | - kubectl config use-context k3d-test-cluster-2-a |
| 77 | + kubectl config use-context k3d-test-cluster-3 |
78 | 78 | kubectl get nodes -o wide |
79 | | - kubectl config use-context k3d-test-cluster-2-b |
| 79 | + kubectl config use-context k3d-test-cluster-4 |
80 | 80 | kubectl get nodes -o wide |
81 | 81 |
|
82 | 82 | - name: Network |
|
0 commit comments