60
consul-templateモンコマンラインを介し行さファルが更され
プレート化されるたびにNGINXロードすために使できます
# consul-template -consul consul.example.internal -template
template:/etc/nginx/conf.d/upstream.conf:"nginx -s reload"
ンド consul-templateモンにconsul.example.internalConsulラス
タ に 続 し 、現 デ ィ ト リ template というのファイル使用し
ファイルテンート テン /etc/nginx/conf.d/upstream.conf
に出その後、ンプレト化ァイに変生じたびNGINXをリロ
ード す。-template 、テ イ ル
ーシンプレート化プロセの実後に実行すコマドを受け取
これらの3つのコロンで区切られていますのコマンドにスペ
ま れ て い る 、必 ず 二 さ い -consul 、ど Consul
ラス す。
解説
Consulサービス出ツールおよびですConsul 、ノ ー ド と キ
するディリのようなRestful APIインョン
にしす。ConsulライアントにDNSイ ン フ ェ 、ク ラ ス
るノードメインルックアッきるようにします。Consulラス
する別 ロジェクconsul-template す 。こ の Consul
ド、サービスまたはキーバリペア応じてフをテンプレート化
。こ NGINXするConsulフル
ってす。consul-template ート ンド
するようにデすることもきますり、NGINX をリード
し、NGINXとともすることきまConsulconsul-template
使ことで、NGINX じ く こ と 。イ ス ト
ラクチャおよプリケーシンのは一的に保存されconsul-template
応じベースのスクライブおよび再テンプきま
テクロジーによNGINXーバリケョンバジョン
などの加と削応じてできます
項目
NGINX Plus Consul インョン
NGINX Consul インョン
Consulーム
Consulート
ConsulレーGitHub
| 5ラマビリティと自
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.186.6