-
Notifications
You must be signed in to change notification settings - Fork 23
38 lines (36 loc) · 1.15 KB
/
single-cluster-registry.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
37
name: Single cluster on default network with registry
on:
[workflow_dispatch, push]
jobs:
k3d-single-cluster-demo:
name: Single cluster on default network with registry
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./
id: single-cluster
name: "Create single k3d Cluster with Registry"
with:
cluster-name: "test-cluster-1"
use-default-registry: true
registry-port: 5001
args: >-
--agents 1
--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
run: |
docker ps -a
kubectl config use-context k3d-test-cluster-1
kubectl get nodes -o wide
- name: Network
run: docker network inspect k3d-action-bridge-network
- name: Test registry
env:
REGISTRY_PORT: 5001
run: ./run.sh test-registry