Skip to content

Commit

Permalink
Bump etcdbrctl to v0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jknipper committed Sep 11, 2023
1 parent 36551b8 commit 985394b
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3199,10 +3199,10 @@ imagesForVersion:
tag: 38f4f8ea8d487470a1dd5b83d66b428d8b502f81
etcd:
repository: keppel.global.cloud.sap/ccloud/etcd
tag: v3.4.13-bootstrap-3
tag: v3.4.13-bootstrap-13
etcdBackup:
repository: keppel.global.cloud.sap/ccloud/etcdbrctl
tag: v0.15.4
tag: v0.25.1
flannel:
repository: keppel.global.cloud.sap/ccloud-dockerhub-mirror/flannelcni/flannel
tag: v0.19.1
Expand Down
54 changes: 53 additions & 1 deletion charts/kube-master/charts/etcd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ data:
--listen-client-urls=http://0.0.0.0:2379 \
--listen-metrics-urls=http://0.0.0.0:8081
{{- end }}
{{- if (semverCompare ">= 1.27-0" .Values.version.kubernetes) }}
etcd.conf.yaml: |-
name: kubernikus
initial-cluster: default=http://127.0.0.1:2380
{{- end }}
---
{{- if .Capabilities.APIVersions.Has "apps/v1" }}
apiVersion: "apps/v1"
Expand Down Expand Up @@ -101,6 +106,27 @@ spec:
configMap:
name: {{ include "fullname" . }}
defaultMode: 0700
{{- if (semverCompare ">= 1.27-0" .Values.version.kubernetes) }}
- name: etcd-config-file
configMap:
name: {{ include "fullname" . }}
defaultMode: 0644
items:
- key: etcd.conf.yaml
path: etcd.conf.yaml
{{- if eq .Values.backup.storageProvider "S3" }}
- name: credentials-aws
secret:
secretName: {{ include "fullname" . }}-aws
items:
- key: access-key-id
path: accessKeyID
- key: region
path: region
- key: secret-access-key
path: secretAccessKey
{{- end }}
{{- end }}
{{- if .Values.secure.enabled }}
- name: certs-etcd
secret:
Expand Down Expand Up @@ -186,7 +212,7 @@ spec:
{{- if .Values.backup.enabled }}
- name: backup
command:
- etcdbrctl
- {{ if (semverCompare ">= 1.27-0" .Values.version.kubernetes) }}/{{ end }}etcdbrctl
- server
- --schedule={{ .Values.backup.schedule }}
{{- if .Values.backup.maxBackups }}
Expand All @@ -211,6 +237,10 @@ spec:
- --insecure-transport=true
{{- end }}
image: "{{ include "etcdBackup.image" . }}"
{{- if (semverCompare ">= 1.27-0" .Values.version.kubernetes) }}
securityContext:
runAsUser: 0
{{- end }}
ports:
- containerPort: 8080
# the name is important here, so that we get metrics
Expand All @@ -223,6 +253,10 @@ spec:
secretKeyRef:
name: {{ include "fullname" . }}-aws
key: bucket-name
{{- if (semverCompare ">= 1.27-0" .Values.version.kubernetes) }}
- name: AWS_APPLICATION_CREDENTIALS
value: /etc/aws/credentials
{{- else }}
- name: AWS_REGION
valueFrom:
secretKeyRef:
Expand All @@ -238,6 +272,7 @@ spec:
secretKeyRef:
name: {{ include "fullname" . }}-aws
key: access-key-id
{{- end }}
{{- else if eq .Values.backup.storageProvider "Swift" }}
- name: STORAGE_CONTAINER
value: {{ .Values.storageContainer }}
Expand All @@ -263,6 +298,14 @@ spec:
secretKeyRef:
name: {{ include "fullname" . }}
key: openstack-project-id
{{- end }}
{{- if (semverCompare ">= 1.27-0" .Values.version.kubernetes) }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
value: {{ include "fullname" . }}
{{- end }}
volumeMounts:
- mountPath: /var/lib/etcd
Expand All @@ -271,6 +314,15 @@ spec:
- mountPath: /etc/kubernetes/certs
name: certs-backup
readOnly: true
{{- end }}
{{- if (semverCompare ">= 1.27-0" .Values.version.kubernetes) }}
- name: etcd-config-file
mountPath: /var/etcd/config
{{- if eq .Values.backup.storageProvider "S3" }}
- name: credentials-aws
mountPath: "/etc/aws/credentials"
readOnly: true
{{- end }}
{{- end }}
resources:
{{ toYaml .Values.backup.resources | indent 12 }}
Expand Down

0 comments on commit 985394b

Please sign in to comment.