Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Владимир Карпов
DevOps
Commits
48f079b9
Commit
48f079b9
authored
Feb 08, 2021
by
Владимир Карпов
Browse files
Обновить readme.md, etcd/etcd.conf.yml файлов
parent
a5fc7fd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
etcd/etcd.conf.yml
0 → 100644
View file @
48f079b9
# This is the configuration file for the etcd server.
# Human-readable name for this member.
name
:
'
etcd0'
# Path to the data directory.
data-dir
:
# Path to the dedicated wal directory.
wal-dir
:
# Number of committed transactions to trigger a snapshot to disk.
snapshot-count
:
10000
# Time (in milliseconds) of a heartbeat interval.
heartbeat-interval
:
100
# Time (in milliseconds) for an election to timeout.
election-timeout
:
1000
# Raise alarms when backend size exceeds the given quota. 0 means use the
# default quota.
quota-backend-bytes
:
0
# List of comma separated URLs to listen on for peer traffic.
listen-peer-urls
:
https://37.9.13.235:2380
# List of comma separated URLs to listen on for client traffic.
listen-client-urls
:
https://37.9.13.235:2379, http://127.0.0.1:2379
# Maximum number of snapshot files to retain (0 is unlimited).
max-snapshots
:
5
# Maximum number of wal files to retain (0 is unlimited).
max-wals
:
5
# Comma-separated white list of origins for CORS (cross-origin resource sharing).
cors
:
# List of this member's peer URLs to advertise to the rest of the cluster.
# The URLs needed to be a comma-separated list.
initial-advertise-peer-urls
:
https://37.9.13.235:2380
# List of this member's client URLs to advertise to the public.
# The URLs needed to be a comma-separated list.
advertise-client-urls
:
https://37.9.13.235:2379
# Discovery URL used to bootstrap the cluster.
discovery
:
# Valid values include 'exit', 'proxy'
discovery-fallback
:
'
proxy'
# HTTP proxy to use for traffic to discovery service.
discovery-proxy
:
# DNS domain used to bootstrap initial cluster.
discovery-srv
:
# Initial cluster configuration for bootstrapping.
initial-cluster
:
etcd0=https://37.9.13.235:2380
# Initial cluster token for the etcd cluster during bootstrap.
initial-cluster-token
:
'
etcd-cluster'
# Initial cluster state ('new' or 'existing').
initial-cluster-state
:
'
new'
# Reject reconfiguration requests that would cause quorum loss.
strict-reconfig-check
:
false
# Accept etcd V2 client requests
enable-v2
:
true
# Enable runtime profiling data via HTTP server
enable-pprof
:
true
# Valid values include 'on', 'readonly', 'off'
proxy
:
'
off'
# Time (in milliseconds) an endpoint will be held in a failed state.
proxy-failure-wait
:
5000
# Time (in milliseconds) of the endpoints refresh interval.
proxy-refresh-interval
:
30000
# Time (in milliseconds) for a dial to timeout.
proxy-dial-timeout
:
1000
# Time (in milliseconds) for a write to timeout.
proxy-write-timeout
:
5000
# Time (in milliseconds) for a read to timeout.
proxy-read-timeout
:
0
client-transport-security
:
cert-file
:
/etc/ssl/etcd/ssl/member1.pem
key-file
:
/etc/ssl/etcd/ssl/member1-key.pem
client-cert-auth
:
true
trusted-ca-file
:
/etc/ssl/etcd/ssl/ca.pem
auto-tls
:
false
peer-transport-security
:
cert-file
:
/etc/ssl/etcd/ssl/server.pem
key-file
:
/etc/ssl/etcd/ssl/server-key.pem
client-cert-auth
:
true
trusted-ca-file
:
/etc/ssl/etcd/ssl/ca.pem
auto-tls
:
false
# Enable debug-level logging for etcd.
# debug: false
# logger: zap
# Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd.
# log-outputs: [stderr]
# Force to create a new one member cluster.
# force-new-cluster: false
# auto-compaction-mode: periodic
# auto-compaction-retention: "1"
readme.md
View file @
48f079b9
...
...
@@ -54,9 +54,14 @@ etcdctl version
nohup etcd --config-file etcd.conf.yml&
etcdctl member list
etcdctl --ca-file /etc/ssl/etcd/ssl/ca.pem --cert-file /etc/ssl/etcd/ssl/member1.pem --key-file /etc/ssl/etcd/ssl/member1-key.pem cluster-health
etcdctl --ca-file /etc/ssl/etcd/ssl/ca.pem --cert-file /etc/ssl/etcd/ssl/member1.pem --key-file /etc/ssl/etcd/ssl/member1-key.pem member list
## Generate peer certificate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment