Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etcd election timout 설정 추가 #21

Merged
merged 2 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cluster-api-openstack/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helm-toolkit 은 어떤 library 때문에 사용되는 건가요?

Copy link
Contributor Author

@zugwan zugwan Mar 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- name: helm-toolkit
repository: https://openinfradev.github.io/hanu-helm-repo
version: 0.2.5
digest: sha256:b0bfd1169b053c135e5ee67551c16307208359f193ef0c539a0ca9373e64f326
generated: "2021-03-22T04:33:10.744264867Z"
Binary file not shown.
4 changes: 4 additions & 0 deletions cluster-api-openstack/templates/kubeadm-control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
mountPath: /etc/certs/cacert
name: cacerts
readOnly: true
etcd:
local:
extraArgs:
election-timeout: {{ .Values.etcd.election_timeout | quote }}
imageRepository: k8s.gcr.io
files:
- content: {{ include "helm-toolkit.utils.to_ini" .Values.openstack.cloud.conf | b64enc }}
Expand Down
4 changes: 4 additions & 0 deletions cluster-api-openstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ kube:
- 10.233.64.0/18
serviceDomain: cluster.local

etcd:
# https://etcd.io/docs/current/tuning/
election_timeout: 1000

openstack:
cloud: # This is from the clouds.yaml
name: capi
Expand Down