forked from AbsaOSS/k3d-action
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.1 KB
/
single-cluster-import-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
name: Single cluster on default network with imported registry
on:
[workflow_dispatch, push]
jobs:
k3d-single-cluster-demo:
name: Single cluster on default network with imported registry
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./
name: "Create single k3d Cluster with imported Registry"
with:
cluster-name: test-cluster-1
args: >-
--agents 3
--no-lb
--k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*"
- name: "Docker repo demo"
run: |
docker build .github/workflows/assets/. -t myproj/demo:v1.0.0
k3d image import myproj/demo:v1.0.0 -c test-cluster-1 --verbose
kubectl apply -f .github/workflows/assets/pod.yaml
- name: Cluster info
run: |
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-test-cluster-1