[etcd] Update etcd application (fix resources and headless services) (#1128)

ref to https://github.com/cozystack/cozystack/pull/1127,
https://github.com/clastix/kamaji/issues/856 and
https://github.com/aenix-io/etcd-operator/pull/291

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
  * Updated etcd chart to version 2.9.0.
* **Improvements**
* Simplified etcd endpoint configuration to use a single static
endpoint.
* Expanded TLS certificate DNS names to include additional service
addresses.
  * Streamlined resource configuration for etcd deployment.
* **Chores**
  * Updated version mapping for etcd package.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Andrei Kvapil
2025-07-02 10:45:37 +02:00
committed by GitHub
5 changed files with 12 additions and 13 deletions

View File

@@ -3,4 +3,4 @@ name: etcd
description: Storage for Kubernetes clusters
icon: /logos/etcd.svg
type: application
version: 2.8.0
version: 2.9.0

View File

@@ -6,9 +6,7 @@ metadata:
spec:
driver: etcd
endpoints:
{{- range $i := until (int $.Values.replicas) }}
- etcd-{{ $i }}.etcd-headless.{{ $.Release.Namespace }}.svc:2379
{{- end }}
- etcd.{{ $.Release.Namespace }}.svc:2379
tlsConfig:
certificateAuthority:
certificate:
@@ -47,4 +45,4 @@ metadata:
name: etcd-client-tls
annotations:
helm.sh/hook: pre-install
helm.sh/resource-policy: keep
helm.sh/resource-policy: keep

View File

@@ -47,7 +47,7 @@ spec:
containerPort: 2381
protocol: TCP
{{- with .Values.resources }}
resources: {{- toYaml . | nindent 10 }}
resources: {{- include "cozy-lib.resources.sanitize" (list . $) | nindent 10 }}
{{- end }}
topologySpreadConstraints:
- maxSkew: 1
@@ -152,6 +152,8 @@ spec:
- "signing"
- "key encipherment"
dnsNames:
- etcd
- etcd.{{ $.Release.Namespace }}.svc
{{- range $i := until (int $.Values.replicas) }}
- etcd-{{ $i }}
- etcd-{{ $i }}.etcd-headless
@@ -186,6 +188,8 @@ spec:
- "signing"
- "key encipherment"
dnsNames:
- etcd
- etcd.{{ $.Release.Namespace }}.svc
{{- range $i := until (int $.Values.replicas) }}
- etcd-{{ $i }}
- etcd-{{ $i }}.etcd-headless

View File

@@ -10,9 +10,5 @@ replicas: 3
## @param resources Resources
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
memory: 512Mi
cpu: 4
memory: 1Gi

View File

@@ -12,7 +12,8 @@ etcd 2.5.0 24fa7222
etcd 2.6.0 8c460528
etcd 2.6.1 45a7416c
etcd 2.7.0 632224a3
etcd 2.8.0 HEAD
etcd 2.8.0 4369b031
etcd 2.9.0 HEAD
info 1.0.0 93bdf411
info 1.0.1 632224a3
info 1.1.0 HEAD