-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (35 loc) · 1.1 KB
/
single-cluster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Single cluster on default network
on:
[workflow_dispatch, push]
jobs:
k3d-single-cluster-demo:
name: Single cluster on default network
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./
id: single-cluster
name: "Create single k3d Cluster"
with:
cluster-name: "test-cluster-1"
args: >-
-p "80:80@agent[0]"
-p "443:443@agent[0]"
-p "5053:53/udp@agent[0]"
--agents 3
--no-lb
--k3s-server-arg "--no-deploy=traefik,servicelb,metrics-server"
- name: Cluster info
run: |
echo ${{ steps.single-cluster.outputs.network }} ${{ steps.single-cluster.outputs.subnet-CIDR }}
echo
kubectl cluster-info --context k3d-test-cluster-1
- name: Nodes
# hack, wait until agents are ready...
run: |
docker ps -a
sleep 10
kubectl config use-context k3d-test-cluster-1
kubectl get nodes -o wide
- name: Network
run: docker network inspect k3d-action-bridge-network