[bitnami/etcd] Release 3.5.11-debian-11-r4 (#54969)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
parent
6614db442f
commit
2eb8d9dbb5
|
|
@ -7,10 +7,10 @@ ARG TARGETARCH
|
|||
|
||||
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
|
||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
|
||||
org.opencontainers.image.created="2024-01-10T09:38:57Z" \
|
||||
org.opencontainers.image.created="2024-01-19T18:41:09Z" \
|
||||
org.opencontainers.image.description="Application packaged by VMware, Inc" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.ref.name="3.5.11-debian-11-r3" \
|
||||
org.opencontainers.image.ref.name="3.5.11-debian-11-r4" \
|
||||
org.opencontainers.image.title="etcd" \
|
||||
org.opencontainers.image.vendor="VMware, Inc." \
|
||||
org.opencontainers.image.version="3.5.11"
|
||||
|
|
@ -26,7 +26,7 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
|
|||
RUN install_packages ca-certificates curl procps
|
||||
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
|
||||
COMPONENTS=( \
|
||||
"yq-4.40.5-0-linux-${OS_ARCH}-debian-11" \
|
||||
"yq-4.40.5-1-linux-${OS_ARCH}-debian-11" \
|
||||
"etcd-3.5.11-2-linux-${OS_ARCH}-debian-11" \
|
||||
) ; \
|
||||
for COMPONENT in "${COMPONENTS[@]}"; do \
|
||||
|
|
@ -42,6 +42,7 @@ RUN apt-get autoremove --purge -y ca-certificates curl && \
|
|||
apt-get update && apt-get upgrade -y && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||
RUN chmod g+rwX /opt/bitnami
|
||||
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
|
||||
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/etcd/postunpack.sh
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
"arch": "amd64",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "4.40.5-0"
|
||||
"version": "4.40.5-1"
|
||||
}
|
||||
}
|
||||
|
|
@ -10,14 +10,7 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
|
|||
## TL;DR
|
||||
|
||||
```console
|
||||
docker run -it --name Etcd bitnami/etcd
|
||||
```
|
||||
|
||||
### Docker Compose
|
||||
|
||||
```console
|
||||
curl -LO https://raw.githubusercontent.com/bitnami/containers/main/bitnami/etcd/docker-compose.yml
|
||||
docker-compose up
|
||||
docker run -it --name etcd bitnami/etcd:latest
|
||||
```
|
||||
|
||||
## Why use Bitnami Images?
|
||||
|
|
@ -181,13 +174,61 @@ Etcd:
|
|||
|
||||
You can find a sample configuration file on this [link](https://github.com/coreos/etcd/blob/master/etcd.conf.yml.sample)
|
||||
|
||||
Apart from providing your custom configuration file, you can also modify the server behavior via configuration flags exposed as environment variables.
|
||||
### Environment variables
|
||||
|
||||
For example if you want to modify the flag `--my-flag`, you will need to set the `ETCD_MY_FLAG` environment variable.
|
||||
Apart from providing your custom configuration file, you can also modify the server behavior via configuration as environment variables.
|
||||
|
||||
The previous rule applies to all [etcd flags](https://coreos.com/etcd/docs/latest/op-guide/configuration.html).
|
||||
#### Customizable environment variables
|
||||
|
||||
> Note: by default the environment variable `ETCDCTL_API` is set to `3`. Modify this environment variable to use a different API version.
|
||||
| Name | Description | Default Value |
|
||||
|----------------------------------------|----------------------------------------------------------------------------------------------|-------------------------------------|
|
||||
| `ETCD_CFG_DATA_DIR` | etcd member name. | `$ETCD_DATA_DIR` |
|
||||
| `ETCD_SNAPSHOTS_DIR` | etcd snaphots directory (used on "disaster recovery" feature). | `/snapshots` |
|
||||
| `ETCD_SNAPSHOT_HISTORY_LIMIT` | etcd snaphots history limit. | `1` |
|
||||
| `ETCD_INIT_SNAPSHOTS_DIR` | etcd init snaphots directory (used on "init from snapshot" feature). | `/init-snapshot` |
|
||||
| `ALLOW_NONE_AUTHENTICATION` | Allow accessing etcd without any password. | `no` |
|
||||
| `ETCD_START_FROM_SNAPSHOT` | Whether etcd should start from an existing snapshot or not. | `no` |
|
||||
| `ETCD_DISASTER_RECOVERY` | Whether etcd should try or not to recover from snapshots when the cluste disastrously fails. | `no` |
|
||||
| `ETCD_ON_K8S` | Whether etcd is running on a K8s environment or not. | `no` |
|
||||
| `ETCDCTL_API` | etcdctl API version. | `3` |
|
||||
| `ETCD_DISABLE_STORE_MEMBER_ID` | Disable writing the member id in a file. | `no` |
|
||||
| `ETCD_DISABLE_PRESTOP` | Disable running the pre-stop hook. | `no` |
|
||||
| `ETCD_CFG_NAME` | etcd member name. | `$ETCD_NAME` |
|
||||
| `ETCD_LOG_LEVEL` | etcd log level. | `info` |
|
||||
| `ETCD_CFG_LOG_LEVEL` | etcd log level. | `$ETCD_LOG_LEVEL` |
|
||||
| `ETCD_LISTEN_CLIENT_URLS` | List of URLs to listen on for client traffic. | `http://0.0.0.0:2379` |
|
||||
| `ETCD_CFG_LISTEN_CLIENT_URLS` | List of URLs to listen on for peer traffic. | `$ETCD_LISTEN_CLIENT_URLS` |
|
||||
| `ETCD_ADVERTISE_CLIENT_URLS` | List of this member client URLs to advertise to the rest of the cluster. | `http://127.0.0.1:2379` |
|
||||
| `ETCD_CFG_ADVERTISE_CLIENT_URLS` | List of this member client URLs to advertise to the rest of the cluster. | `$ETCD_ADVERTISE_CLIENT_URLS` |
|
||||
| `ETCD_CFG_INITIAL_CLUSTER` | Initial list of members to bootstrap a cluster. | `$ETCD_INITIAL_CLUSTER` |
|
||||
| `ETCD_CFG_INITIAL_CLUSTER_STATE` | Initial cluster state. Allowed values: "new" or "existing". | `$ETCD_INITIAL_CLUSTER_STATE` |
|
||||
| `ETCD_CFG_LISTEN_PEER_URLS` | List of URLs to listen on for peer traffic. | `$ETCD_LISTEN_PEER_URLS` |
|
||||
| `ETCD_CFG_INITIAL_ADVERTISE_PEER_URLS` | List of this member peer URLs to advertise to the rest of the cluster while bootstrapping. | `$ETCD_INITIAL_ADVERTISE_PEER_URLS` |
|
||||
| `ETCD_CFG_INITIAL_CLUSTER_TOKEN` | Unique initial cluster token used for bootstrapping. | `$ETCD_INITIAL_CLUSTER_TOKEN` |
|
||||
| `ETCD_AUTO_TLS` | Use generated certificates for TLS communications with clients. | `false` |
|
||||
| `ETCD_CFG_AUTO_TLS` | Use generated certificates for TLS communications with clients. | `$ETCD_AUTO_TLS` |
|
||||
| `ETCD_CLIENT_CERT_AUTH` | Enable client cert authentication | `false` |
|
||||
| `ETCD_PEER_AUTO_TLS` | Use generated certificates for TLS communications with peers. | `false` |
|
||||
| `ETCD_CFG_PEER_AUTO_TLS` | Use generated certificates for TLS communications with peers. | `$ETCD_PEER_AUTO_TLS` |
|
||||
|
||||
#### Read-only environment variables
|
||||
|
||||
| Name | Description | Value |
|
||||
|-----------------------------|----------------------------------------------------------------------|------------------------------------|
|
||||
| `ETCD_BASE_DIR` | etcd installation directory. | `/opt/bitnami/etcd` |
|
||||
| `ETCD_VOLUME_DIR` | Persistence base directory. | `/bitnami/etcd` |
|
||||
| `ETCD_BIN_DIR` | etcd executables directory. | `${ETCD_BASE_DIR}/bin` |
|
||||
| `ETCD_DATA_DIR` | etcd data directory. | `${ETCD_VOLUME_DIR}/data` |
|
||||
| `ETCD_CONF_DIR` | etcd configuration directory. | `${ETCD_BASE_DIR}/conf` |
|
||||
| `ETCD_LOGS_DIR` | Directory where ETCD logs are stored. | `${ETCD_BASE_DIR}/log` |
|
||||
| `ETCD_TMP_DIR` | Directory where ETCD temporary files are stored. | `${ETCD_BASE_DIR}/tmp` |
|
||||
| `ETCD_PID_FILE` | Path to the PID file for etcd. | `${ETCD_TMP_DIR}/etcd.pid` |
|
||||
| `ETCD_CONF_FILE` | Airflow configuration file. | `${ETCD_CONF_DIR}/etcd.yaml` |
|
||||
| `ETCD_NEW_MEMBERS_ENV_FILE` | File containining the etcd environment to use after adding a member. | `${ETCD_DATA_DIR}/new_member_envs` |
|
||||
| `ETCD_DAEMON_USER` | etcd system user name. | `etcd` |
|
||||
| `ETCD_DAEMON_GROUP` | etcd system user group. | `etcd` |
|
||||
|
||||
Additionally, you can configure etcd using the upstream env variables [here](https://etcd.io/docs/v3.4/op-guide/configuration/)
|
||||
|
||||
## Notable Changes
|
||||
|
||||
|
|
@ -207,6 +248,12 @@ The previous rule applies to all [etcd flags](https://coreos.com/etcd/docs/lates
|
|||
|
||||
For further documentation, please check [Etcd documentation](https://coreos.com/etcd/docs/latest/) or its [GitHub repository](https://github.com/coreos/etcd)
|
||||
|
||||
## Using `docker-compose.yaml`
|
||||
|
||||
Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated [Bitnami Helm chart](https://github.com/bitnami/charts/tree/main/bitnami/etcd).
|
||||
|
||||
If you detect any issue in the `docker-compose.yaml` file, feel free to report it or contribute with a fix by following our [Contributing Guidelines](https://github.com/bitnami/containers/blob/main/CONTRIBUTING.md).
|
||||
|
||||
## Contributing
|
||||
|
||||
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/containers/issues) or submitting a [pull request](https://github.com/bitnami/containers/pulls) with your contribution.
|
||||
|
|
|
|||
Loading…
Reference in New Issue