File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,9 +85,7 @@ coreos:
8585 Description=etcd debugging service
8686
8787 [Service]
88- ExecStartPre=/usr/bin/curl -sSL -o /opt/bin/jq http://stedolan.github.io/jq/download/linux64/jq
89- ExecStartPre=/usr/bin/chmod +x /opt/bin/jq
90- ExecStart=/usr/bin/bash -c "while true; do curl -sL http://127.0.0.1:4001/v2/stats/self | /opt/bin/jq . ; sleep 1 ; done"
88+ ExecStart=/usr/bin/bash -c "while true; do curl -sL http://127.0.0.1:4001/v2/stats/self | jq . ; sleep 1 ; done"
9189 - name: increase-nf_conntrack-connections.service
9290 command: start
9391 content: |
Original file line number Diff line number Diff line change 11#! /bin/env bash
22
3- if [ ! -f /opt/bin/jq ]; then
4- echo " /opt/bin/jq is missing. Downloading..."
5- curl -sSL -o /opt/bin/jq http://stedolan.github.io/jq/download/linux64/jq
6- chmod +x /opt/bin/jq
7- fi
8-
93# obtain the etcd node members and check that at least there is three
104ETCD_NODES=$( curl -s http://localhost:4001/v2/members | jq ' .[] | .[].peerURLs | length' | wc -l)
115if test $ETCD_NODES -lt 3; then
You can’t perform that action at this time.
0 commit comments