Commit Graph

18 Commits

Author SHA1 Message Date
Ruslan Aliev 12f448963f ETCD improvements
* remove healthcheck sidecar, perform probes in etcd
   container itself, failing liveness probes in sidecar
   do not restart problematic etcd container;
 * verify that etcdctl member list cmd in anchor is
   always successfull;
 * adjust ETCDCTL_ENDPOINTS env in etcd container to
   POD_IP variable instead of localhost (127.0.0.1);
 * add liveness/readiness probes to auxiliary etcd as
   well as properly passing etcd configuration variables
   as strings;
 * monitor current leader in initial etcd cluster, in case
   if aux member is current leader pass it to permenant
   member, same check applies for aux suicide process;
 * etcd aux pod will be alive unless all permanent nodes
   come up and join the cluster plus apiserver no longer
   relies on aux members;
 * add 5 seconds sleep between aux member remove for more
   smooth transition process.

Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Change-Id: I7918072a6ba5a6b22b359d1616def8c31425462d
2024-04-25 01:01:06 -05:00
SPEARS, DUSTIN (ds443n) 12fdf402f6 Add resource allocation setting for etcd sidecar
Change-Id: I4c284d9bbf2da91a6a0e43758d92bf007be25f9c
2024-02-12 11:58:18 -05:00
SPEARS, DUSTIN (ds443n) c3aac9628d Add liveness and readiness probe
This adds liveness/readiness probes to sidecar for etcd

Change-Id: If942de8b7c1a59e7da887e1bdc2626daf699aeab
2024-02-08 16:35:48 -05:00
SPEARS, DUSTIN (ds443n) 7ce7301476 Update ETCD to v3.5.11
Since after v3.5.6 etcd-io switched to a
distroless base image. Etcd anchor pods
are now using etcd-utility and etcd is
running a sidecar for health checks.

Change-Id: I198dca1209097de4d60a53a7568f0c4790679599
2024-02-08 10:35:33 -05:00
Rick Bartra 0ffde4162e Run etcd with shareProcessNamespace: true to reap zombie processes
The kubernetes-etcd pods are leaving behind zombie processes and
setting 'shareProcessNamespace: true' eliminates that problem.

When you enable process namespace sharing for a Pod, Kubernetes uses a
single process namespace for all the containers in that Pod. The
Kubernetes Pod infrastructure container becomes PID 1 and automatically
reaps orphaned processes. [0]

[0]https://cloud.google.com/solutions/best-practices-for-building-containers#solution_2_enable_process_namespace_sharing_in_kubernetes


Change-Id: I61566fb71258baafa709b0e5367c71f13e980f6f
2020-07-24 17:40:31 +00:00
KHIYANI, RAHUL (rk0850) b51eb9802d Add apparmor profile to apiserver and etcd jobs
Change-Id: I8bed3213868b45a438e5ae5929bca8bef699a503
2020-05-28 13:04:12 -05:00
Phil Sphicas 7c6043772b etcd chart: additional env vars for etcd pods
Allows extra environment variables to be applied to the etcd pods. Can
be used to apply tuning parameters, enable experimental flags, etc.

Change-Id: I9d82514b6e3a292edc472d885c0a61d5c81199f5
2020-02-07 16:06:43 -08:00
Doug Aaser 4cd75e26a0 Uplift etcd to v3.4.2
Uplift etcd to v3.4.2
Also uplifts calico in the gate so that it works with etcd v3

Change-Id: Iac93cadfad813223f9364e513fae00afa178113e
2019-11-25 17:12:00 +00:00
Luna Das d3501bc006 Add facility to configure log levels in kubernetes-etcd
Change-Id: Iefaa48b9eb3403cf6955374d5ea460f676e0806b
2019-09-10 19:42:03 +05:30
rajesh.kudaka 490dd63c2c Enable probes config for etcd
This commit enables configuration of probes
for etcd pod by manipulating/overriding values in
values.yaml or through manifests.

Change-Id: I69eabd13f8ea8b97a33281ad993ec2e88b9280bc
2019-08-09 09:28:47 +00:00
RAHUL KHIYANI f50a0c8d78 ETCD: Add pod/container security context
This updates the etcd chart to include the pod
security context on the pod template.

This also adds the container security context to set
readOnlyRootFilesystem flag to false

Change-Id: I34a8ab3e850779192491b9b127a82b82f05fa00b
2019-06-13 02:01:16 +00:00
Alexander Vlasov 1f5c57d1de Apply docker-default AppArmorProfile for etcd pod
Change-Id: Ia086ca3d28f1a1e4ac013d0f29018faf027b914e
2019-05-30 16:10:56 +00:00
Matt McEuen 42b72da391 Revert "Add Liveness/Readiness probe to calico-etcd."
The probe script is not being mounted into this pod, causing failures at runtime.

This reverts commit a2e452ae42.

Change-Id: If005ff4244159262c88bfcd85bf2c48caf4b279b
2019-05-16 14:17:41 +00:00
Goutham Pratapa a2e452ae42 Add Liveness/Readiness probe to calico-etcd.
This commit is to add liveness probe to calico-etcd-anchor pod
and both liveness/readiness probe to calico-etcd pod.

Change-Id: I2f856fa9d73152073accd753e715558457ff59e2
2019-04-30 13:24:57 +05:30
Matt McEuen eae60aba15 Add release uuid to pods and rc objects (prom)
This PS adds the ability to attach a release uuid to pods and rc
objects as desired.  This can be used, for example, to force an
artificial manifest change in CICD scenarios, for upgradability
testing purposes.

Change-Id: I8d0ffac306258f940c63799e86e7e26b5c2c5add
2018-10-16 12:43:32 -05:00
anthony.lin 6e81ed7b40 Update Labels - Application/Component
1) Kubernetes Template (Bootstrap)
2) Other charts within Promenade Repo

Change-Id: I872802112587bdff84d3630a5b2542dc4b3f77f8
2018-05-30 22:56:15 +08:00
Scott Hussey ccd372a974 Resource limits on Promenade charts
- Update Makefile to more closely match UCP standards
- Add resource limits to any Pods missing them

Change-Id: Ia791a6b207c2baca7dd3141be71aef513c916661
2018-03-29 08:52:56 -04:00
Anthony Lin 3b4b4661a4 Refactor etcd Chart
Refactor etcd chart to align with OSH standards

Change-Id: Ie71fcf045b3ec896dcdd03bb3455fb85af8f2e7a
2017-11-29 17:33:41 +00:00