Last active
September 17, 2017 13:53
-
-
Save flah00/a45d492bb5a880486a86a41b8d6ea1ec to your computer and use it in GitHub Desktop.
Save etcd from itself
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
etcd: | |
version: 3.2.7 | |
snapshot: | |
automated: true | |
disasterRecovery: | |
automated: true | |
count: 3 | |
customFiles: | |
- path: /etc/sumologic-environment | |
permissions: 0600 | |
owner: root:root | |
content: | | |
COLLECTOR_URL=SUMO_URL | |
SOURCE_CATEGORY_PREFIX=dev/ | |
LOG_FORMAT=text | |
KUBERNETES_META=true | |
FLUENTD_SOURCE=systemd | |
customSystemdUnits: | |
- name: sumologic.service | |
command: start | |
runtime: true | |
content: | | |
[Unit] | |
Description=Send logs to central server | |
AssertFileNotEmpty=/etc/sumologic-environment | |
Wants=docker.service | |
After=docker.service | |
[Service] | |
ExecStart=/usr/bin/docker run --rm -l sumo=true -m 256m --cpu-quota=25000 --env-file /etc/sumologic-environment -v /var/lib/docker -v /var/lib/rkt -v /var/log:/mnt/log fluentd-kubernetes-sumologic:v1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/production/userdata/cloud-config-etcd b/production/userdata/cloud-config-etcd | |
index 2d25d48..6a79bec 100644 | |
--- a/production/userdata/cloud-config-etcd | |
+++ b/production/userdata/cloud-config-etcd | |
@@ -228,7 +228,7 @@ coreos: | |
[Timer] | |
OnBootSec=120sec | |
- # Actual interval would be 60+0~5 sec | |
- OnUnitInactiveSec=60sec | |
+ # Actual interval would be 300+0~5 sec | |
+ OnUnitInactiveSec=300sec | |
AccuracySec=5sec | |
[Install] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment