Skip to content

Commit

Permalink
add troubleshooting guide (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
balchua authored Mar 26, 2023
1 parent 7cab104 commit 42c944a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This Github Actions enables one to test their applications on multiple Kubernete

### `channel`

**Required** This is the MicroK8s channel to choose. Example: `latest/stable` or `1.18/stable` or `latest/edge/ha-preview`
**Required** This is the MicroK8s channel to choose. Example: `latest/stable` or `1.26/stable`

Strict confinement is also available [see](#strict-confinement)

Expand Down Expand Up @@ -71,10 +71,10 @@ jobs:
runs-on: ubuntu-latest
name: A job to install MicroK8s
steps:
- uses: balchua/microk8s-actions@v0.3.0
- uses: balchua/microk8s-actions@v0.3.2
with:
channel: '1.26/stable'
addons: '["dns", "rbac", "hostpath-storage", "registry", "metrics-server"]'
addons: '["dns", "rbac", "hostpath-storage", "registry"]'
- name: Test MicroK8s
id: myactions
run: |
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
runs-on: ubuntu-latest
name: A job to install MicroK8s with strict confinement
steps:
- uses: balchua/microk8s-actions@v0.3.0
- uses: balchua/microk8s-actions@v0.3.2
with:
channel: '1.26-strict/stable'
devMode: 'true'
Expand All @@ -144,3 +144,6 @@ The main program is a Typescript, located in [src/index.ts](src/index.ts). Befo
$ npm run build
```

## Troubleshooting

See [Troubleshooting guide](troubleshooting.md)
18 changes: 18 additions & 0 deletions troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Troubleshooting Guide

## Pushing to local registry

If you are using `docker/setup-buildx-action@v2` and would like to use the internal registry,
you need to make sure that the docker network is bound to the host, otherwise you will not be able to push to the local registry.

Example:

``` yaml
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
network=host
```
Alternatively, you can use `sudo microk8s ctr image import myimage.tar`.

0 comments on commit 42c944a

Please # to comment.