Skip to content

Commit

Permalink
Support platforms for pro-builder
Browse files Browse the repository at this point in the history
Multi-arch builds are now supported, see docs for more:

https://docs.openfaas.com/openfaas-pro/builder/

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Jul 25, 2024
1 parent 1453604 commit 305a26b
Show file tree
Hide file tree
Showing 15 changed files with 555 additions and 534 deletions.
2 changes: 1 addition & 1 deletion chart/pro-builder/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Build OpenFaaS functions via a REST API
name: pro-builder
version: 0.4.14
version: 0.4.15
sources:
- https://github.com/openfaas/faas-netes
home: https://www.openfaas.com
Expand Down
31 changes: 16 additions & 15 deletions chart/pro-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ The Pod for the builder contains two containers:

Pass either to the logs command:

```
```bash
# Check the logs of the pro-builder API
kubectl logs -n openfaas \
deploy/pro-builder -c pro-builder
Expand All @@ -188,20 +188,6 @@ kubectl get events -n openfaas

To test the builder head over to the [Function Builder API Documentation](https://docs.openfaas.com/openfaas-pro/builder/)

## Troubleshooting

### Errors due to permissions

If you see errors about permissions, then you may need to review the options for the securityContext.

See also: [rootless mode](https://github.com/moby/buildkit/blob/master/docs/rootless.md)

### Errors due to authentication

If you're having issues getting your registry authentication to work, then why not try out ttl.sh, a free, ephemeral container registry. [ttl.sh](https://ttl.sh) is a public service run by Replicated, which allows you to push and pull images without authentication.

Once you've seen the building work end to end, get in touch with us and we'll try to help you with your authentication.

## Push images to Amazon ECR

The pro-builder can be configured to push images to Amazon ECR.
Expand Down Expand Up @@ -267,6 +253,21 @@ Additional pro-builder options in `values.yaml`.

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. See `values.yaml` for the default configuration.


## Troubleshooting

### Errors due to permissions

If you see errors about permissions, then you may need to review the options for the securityContext.

See also: [rootless mode](https://github.com/moby/buildkit/blob/master/docs/rootless.md)

### Errors due to authentication

If you're having issues getting your registry authentication to work, then why not try out ttl.sh, a free, ephemeral container registry. [ttl.sh](https://ttl.sh) is a public service run by Replicated, which allows you to push and pull images without authentication.

Once you've seen the building work end to end, get in touch with us and we'll try to help you with your authentication.

## Removing the pro-builder

All control plane components can be cleaned up with helm:
Expand Down
6 changes: 3 additions & 3 deletions chart/pro-builder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# image is for the pro-builder API
proBuilder:
image: ghcr.io/openfaasltd/pro-builder:0.3.11
image: ghcr.io/openfaasltd/pro-builder:0.4.0

# Set to 0 for unlimited, or some non-zero value for a hard limit
# the builder will return a HTTP 429 status code, then the client
Expand Down Expand Up @@ -34,7 +34,7 @@ buildkit:
# nodepool for the function builder pods, which is recycled often
# through the use of spot instances or preemptive VMs.
#
# image: moby/buildkit:v0.13.2
# image: moby/buildkit:v0.15.1
# rootless: false
# securityContext:
# runAsUser: 0
Expand All @@ -44,7 +44,7 @@ buildkit:
# For a rootless configuration, preferred, if the configuration
# and Kernel version of your Kubernetes nodes supports it
#
image: moby/buildkit:v0.13.2-rootless
image: moby/buildkit:v0.15.1-rootless
rootless: true
securityContext:
# Needs Kubernetes >= 1.19
Expand Down
Binary file modified docs/cron-connector-0.6.10.tgz
Binary file not shown.
Binary file modified docs/federated-gateway-0.1.0.tgz
Binary file not shown.
Loading

0 comments on commit 305a26b

Please sign in to comment.