diff --git a/kubernetes/etcd/debian/deb_patches/0001-Update-config.patch b/kubernetes/etcd/debian/deb_patches/0001-Update-config.patch new file mode 100644 index 000000000..f371bc31f --- /dev/null +++ b/kubernetes/etcd/debian/deb_patches/0001-Update-config.patch @@ -0,0 +1,67 @@ +From 7ef071f8616c36bab74f4b367ef6405c20051f84 Mon Sep 17 00:00:00 2001 +From: Daniel Safta +Date: Mon, 4 Oct 2021 14:55:59 +0300 +Subject: [PATCH] Update config + +Updated .default and .service +files with the needed configs. +--- + debian/etcd-server.etcd.default | 8 ++++---- + debian/etcd-server.etcd.service | 4 ++-- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/debian/etcd-server.etcd.default b/debian/etcd-server.etcd.default +index cf1262c9..36255fbc 100644 +--- a/debian/etcd-server.etcd.default ++++ b/debian/etcd-server.etcd.default +@@ -11,12 +11,12 @@ + ## using discovery, each member must have a unique name. `Hostname` or + ## `machine-id` can be a good choice. + ## default: "default" +-# ETCD_NAME="default" ++ETCD_NAME="default" + + ##### --data-dir + ## Path to the data directory. + ## default: "${name}.etcd" +-# ETCD_DATA_DIR="/var/lib/etcd/default" ++ETCD_DATA_DIR="/var/lib/etcd/default" + + ##### --wal-dir + ## Path to the dedicated wal directory. If this flag is set, etcd will write +@@ -68,7 +68,7 @@ + ## default: "http://localhost:2379" + ## example: "http://10.0.0.1:2379" + ## invalid example: "http://example.com:2379" (domain name is invalid for binding) +-# ETCD_LISTEN_CLIENT_URLS="http://localhost:2379" ++ETCD_LISTEN_CLIENT_URLS="http://localhost:2379" + + ##### --max-snapshots + ## Maximum number of snapshot files to retain (0 is unlimited) +@@ -184,7 +184,7 @@ + ## file descriptors) are eventually depleted. + ## default: "http://localhost:2379" + ## example: "http://example.com:2379, http://10.0.0.1:2379" +-# ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379" ++ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379" + + ##### --discovery + ## Discovery URL used to bootstrap the cluster. +diff --git a/debian/etcd-server.etcd.service b/debian/etcd-server.etcd.service +index f4854bec..f7af53a5 100644 +--- a/debian/etcd-server.etcd.service ++++ b/debian/etcd-server.etcd.service +@@ -13,8 +13,8 @@ EnvironmentFile=-/etc/default/%p + Type=notify + User=etcd + PermissionsStartOnly=true +-#ExecStart=/bin/sh -c "GOMAXPROCS=$(nproc) /usr/bin/etcd $DAEMON_ARGS" +-ExecStart=/usr/bin/etcd $DAEMON_ARGS ++ExecStart=/bin/sh -c "GOMAXPROCS=$(nproc) /usr/bin/etcd --name=\"${ETCD_NAME}\" --data-dir=\"${ETCD_DATA_DIR}\" --listen-client-urls=\"${ETCD_LISTEN_CLIENT_URLS}\"" ++#ExecStart=/usr/bin/etcd $DAEMON_ARGS + Restart=on-abnormal + #RestartSec=10s + LimitNOFILE=65536 +-- +2.25.1 + diff --git a/kubernetes/etcd/debian/deb_patches/series b/kubernetes/etcd/debian/deb_patches/series new file mode 100644 index 000000000..cac1840ce --- /dev/null +++ b/kubernetes/etcd/debian/deb_patches/series @@ -0,0 +1 @@ +0001-Update-config.patch diff --git a/kubernetes/etcd/debian/meta_data.yaml b/kubernetes/etcd/debian/meta_data.yaml new file mode 100644 index 000000000..37d707f08 --- /dev/null +++ b/kubernetes/etcd/debian/meta_data.yaml @@ -0,0 +1,10 @@ +--- +debname: etcd +debver: 3.3.25+dfsg-6 +dl_path: + name: etcd-debian-3.3.25+dfsg-6.tar.gz + url: https://salsa.debian.org/go-team/packages/etcd/-/archive/debian/3.3.25+dfsg-6/etcd-debian-3.3.25+dfsg-6.tar.gz + md5sum: 91df267a20b0f34a1ad1ff48a8815706 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true