Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add external-dns image. #410

Merged
merged 1 commit into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
| [dotnet-sdk](./images/dotnet-sdk) | `cgr.dev/chainguard/dotnet-sdk` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/dotnet-sdk.build.status.latest-dev.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/dotnet-sdk:latest-dev)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/dotnet-sdk.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/dotnet-sdk:latest) |
| [envoy](./images/envoy) | `cgr.dev/chainguard/envoy` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/envoy.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/envoy:latest) |
| [etcd](./images/etcd) | `cgr.dev/chainguard/etcd` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/etcd.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/etcd:latest) |
| [external-dns](./images/external-dns) | `cgr.dev/chainguard/external-dns` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/external-dns.build.status.latest-dev.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/external-dns:latest-dev)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/external-dns.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/external-dns:latest) |
| [fluent-bit](./images/fluent-bit) | `cgr.dev/chainguard/fluent-bit` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/fluent-bit.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/fluent-bit:latest) |
| [fluentd](./images/fluentd) | `cgr.dev/chainguard/fluentd` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/fluentd.build.status.edge-dev.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/fluentd:edge-dev)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/fluentd.build.status.edge.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/fluentd:edge)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/fluentd.build.status.latest-dev.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/fluentd:latest-dev)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/fluentd.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/fluentd:latest) |
| [gcc-glibc](./images/gcc-glibc) | `cgr.dev/chainguard/gcc-glibc` | stable | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/gcc-glibc.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/gcc-glibc:latest) |
Expand Down
48 changes: 48 additions & 0 deletions images/external-dns/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--monopod:start-->
# external-dns
| | |
| - | - |
| **Status** | experimental |
| **OCI Reference** | `cgr.dev/chainguard/external-dns` |
| **Variants/Tags** | ![](https://storage.googleapis.com/chainguard-images-build-outputs/summary/external-dns.svg) |

*[Contact Chainguard](https://www.chainguard.dev/chainguard-images) for enterprise support, SLAs, and access to older tags.*

---
<!--monopod:end-->

Minimal image with Kubernetes External DNS. **EXPERIMENTAL**

## Get It!

The image is available on `cgr.dev`:

```
docker pull cgr.dev/chainguard/external-dns:latest
```

## Using External DNS

The Chainguard External DNS image is a drop-in replacement for the upstream image.
See the [upstream documentation](https://github.com/kubernetes-sigs/external-dns) for usage information specific to your environment.

```shell
$ docker run cgr.dev/chainguard/external-dns
usage: external-dns --source=source --provider=provider [<flags>]

ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with DNS
providers.

Note that all flags may be replaced with env vars - `--flag` ->
`EXTERNAL_DNS_FLAG=1` or `--flag value` -> `EXTERNAL_DNS_FLAG=value`

Flags:
--help Show context-sensitive help (also try
--help-long and --help-man).
--version Show application version.
--server="" The Kubernetes API server to connect to
(default: auto-detect)
--kubeconfig="" Retrieve target cluster configuration from
a Kubernetes configuration file (default:
auto-detect)
```
32 changes: 32 additions & 0 deletions images/external-dns/configs/latest.apko.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
contents:
repositories:
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
packages:
- ca-certificates-bundle
- wolfi-baselayout
- external-dns

accounts:
groups:
- groupname: external-dns
gid: 65532
users:
- username: external-dns
uid: 65532
run-as: external-dns
recursive: true

entrypoint:
command: /usr/bin/external-dns
cmd: --help

archs:
- x86_64
- aarch64

annotations:
"org.opencontainers.image.authors": "Chainguard Team https://www.chainguard.dev/"
"org.opencontainers.image.url": https://edu.chainguard.dev/chainguard/chainguard-images/reference/external-dns/
"org.opencontainers.image.source": https://github.com/chainguard-images/images/tree/main/images/external-dns
10 changes: 10 additions & 0 deletions images/external-dns/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
status: experimental
versions:
- apko:
config: configs/latest.apko.yaml
extractTagsFrom:
package: external-dns
subvariants:
- suffix: -dev
options:
- dev
8 changes: 8 additions & 0 deletions images/external-dns/tests/01-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -o errexit -o nounset -o errtrace -o pipefail -x

IMAGE_DIR="$(basename "$(cd "$(dirname ${BASH_SOURCE[0]})/.." && pwd )")"
IMAGE_NAME=${IMAGE_NAME:-"cgr.dev/chainguard/${IMAGE_DIR}:latest"}

docker run --rm "${IMAGE_NAME}" --version