Merge pull request #1220 from juan131/etcd-max-procs

[bitnami/etcd] Provide a way to set 'GOMAXPROCS'
This commit is contained in:
Juan Ariza Toledano
2019-06-06 16:36:35 +02:00
committed by GitHub
5 changed files with 18 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: etcd
version: 2.2.6
version: 2.3.0
appVersion: 3.3.13
description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines
keywords:

View File

@@ -62,6 +62,7 @@ The following tables lists the configurable parameters of the etcd chart and the
| `configFileConfigMap` | ConfigMap that contains a etcd.conf.yaml to be mounted | `nil` |
| `envVarsConfigMap` | ConfigMap that contains environment variables to be set in the container | `nil` |
| `allowNoneAuthentication` | Allow to use etcd without configuring RBAC authentication | `true` |
| `maxProcs` | Set GOMAXPROCS environment variable to limit the number of CPUs | `nil` |
| `auth.rbac.enabled` | Switch to enable the etcd authentication. | `true` |
| `auth.rbac.rootPassword` | Password for the root user | `nil` |
| `auth.rbac.existingSecret` | Name of the existing secret containing the root password | `nil` |

View File

@@ -156,6 +156,8 @@ spec:
- name: NAMI_LOG_LEVEL
value: "trace8"
{{- end }}
## Basic configuration
- name: MY_POD_IP
valueFrom:
fieldRef:
@@ -164,8 +166,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
## Basic configuration
- name: ETCD_NAME
value: "$(MY_POD_NAME)"
- name: ETCD_DATA_DIR
@@ -178,6 +178,10 @@ spec:
value: "{{ $etcdPeerProtocol }}://$(MY_POD_NAME).{{ $etcdHeadlessServiceName }}.{{ .Release.Namespace }}.{{ $dnsBase }}:{{ .Values.service.peerPort }}"
- name: ETCD_LISTEN_PEER_URLS
value: "{{ $etcdPeerProtocol }}://0.0.0.0:{{ .Values.service.peerPort }}"
{{- if .Values.maxProcs }}
- name: GOMAXPROCS
value: {{ .Values.maxProcs }}
{{- end }}
## Clustering configuration
{{- if gt $replicaCount 1 }}

View File

@@ -62,6 +62,11 @@ statefulset:
## Allow to use etcd without configuring RBAC authentication
allowNoneAuthentication: true
## Limits the number of operating system threads that can execute user-level
## Go code simultaneously by setting GOMAXPROCS environment variable
## ref: https://golang.org/pkg/runtime
##
# maxProcs
## Authentication parameteres
## https://github.com/bitnami/bitnami-docker-etcd#security

View File

@@ -62,6 +62,11 @@ statefulset:
## Allow to use etcd without configuring RBAC authentication
allowNoneAuthentication: true
## Limits the number of operating system threads that can execute user-level
## Go code simultaneously by setting GOMAXPROCS environment variable
## ref: https://golang.org/pkg/runtime
##
# maxProcs
## Authentication parameteres
## https://github.com/bitnami/bitnami-docker-etcd#security