-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
551 lines (485 loc) · 25.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
<!doctype html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-137858449-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-137858449-1');
</script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (m, e, t, r, i, k, a) {
m[i] = m[i] || function () {
(m[i].a = m[i].a || []).push(arguments)
};
m[i].l = 1 * new Date();
k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(62712055, "init", {
clickmap: true,
trackLinks: true,
accurateTrackBounce: true,
webvisor: true
});
</script>
<noscript>
<div><img src="https://mc.yandex.ru/watch/62712055" style="position:absolute; left:-9999px;" alt="" /></div>
</noscript>
<!-- /Yandex.Metrika counter -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta
content="microservice configuration, configuration, cloud native, cloud native configuration, kubernetes, helm, configuration management, external configuration, configuration processor, configuration management tools, application configuration"
name="keywords">
<meta name="Description"
content="Microconfig is a modern and simple way to manage microservice configuration. Especially in the Cloud.">
<link href="vendor/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="vendor/prism/prism.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet">
<link href="bloggersans/bloggersans.css" rel="stylesheet">
<link rel="icon" href="css/favicon.ico">
<meta name="google-site-verification" content="-vwHylVI8TRHCCK0lhgP67LeEMjlRRIXHuRKeCB_Vnc" />
<title>Microconfig.io - Microservice Configuration Made Easy</title>
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-light shadow-sm">
<div class="container">
<a href="./" class="navbar-brand">
<img style="height: 97px;" src="images/microconfig_logo_horizontal.svg" alt="Microconfig" />
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link text-dark" href="features.html">Features</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="quickstart.html">Quickstart</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="download.html">Download</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="plugin.html">IDE plugin</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="server.html">Server</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" href="documentation.html">Docs</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<a href="https://github.com/microconfig/microconfig" class="github-corner" aria-label="View source on GitHub">
<svg width="80" height="80" viewBox="0 0 250 250"
style="fill:#5fbb92; color:#fff; position: fixed; top: 0; border: 0; right: 0;z-index: 100"
aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor" class="octo-body"></path>
</svg>
</a>
<main role="main" id="quickstart">
<section class="jumbotron">
<div class="container">
<h1>Microservice configuration
<br><span style="font-weight: bold;">made easy</span>
</h1>
<p class="lead" style="margin-top: 2em">
Microservice architecture implies a lot of services with similar configuration. <br />
Each service has an application config, deployment config, a log template and so on.<br />
Multiply that by 50 services with 5 different environments and you have a mess.
</p>
</div>
</section>
<div class="py-5 bg-light">
<div class="container" style="padding: 0; margin-bottom: 2.5rem; text-align: center;">
<h2 class=""> How Microconfig can help </h2>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="features.html#layout">Simple
Configuration Layout</a>
</h4>
</div>
<div class="card-body">
You choose your configuration layout. You can group and organize your config the way it
makes sense to you.
</div>
</div>
</div>
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="features.html#include">Reuse Common Parts</a>
</h4>
</div>
<div class="card-body">
You can extract common parts of configuration to a dedicated component and reuse it with
#include.
</div>
</div>
</div>
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="features.html#placeholders">Reference Values</a>
</h4>
</div>
<div class="card-body">
You can reference a value from current or another service with ${placeholder}.
</div>
</div>
</div>
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="features.html#expressions">Dynamic Values</a>
</h4>
</div>
<div class="card-body">
You can use #{ 'expression' + 'language' } to generate your values. It supports math
operations and much more.
</div>
</div>
</div>
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="features.html#env">Environment Specific Config</a>
</h4>
</div>
<div class="card-body">
You can have specific values for each environment you need. They will be merged with
your base configuration.
</div>
</div>
</div>
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="features.html#templates">Static Files Templating</a>
</h4>
</div>
<div class="card-body">
You can use static templates and populate them with data unique for each service.
</div>
</div>
</div>
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="features.html#diff">Config Diff</a>
</h4>
</div>
<div class="card-body">
You can generate git style diff and compare different versions of your config.
</div>
</div>
</div>
<div class="col-md-6">
<div class="card mb-4">
<div class="card-header">
<h4 class="my-0 mc-color">
<a href="plugin.html">IDE Plugin</a>
</h4>
</div>
<div class="card-body">
You can use JetBrains IDE Microconfig plugin to navigate, preview and generate config
without leaving your IDE.
</div>
</div>
</div>
</div>
</div>
</div>
<section class="example jumbotron">
<div class="container">
<p class="lead">
Just to show the problem with microservice configuration more explicitly.
Below are typical configs that we have to support nowadays. <br /> 2 different microservices
with their <code>dev</code> and <code>prod</code> configs.
</p><br />
<!-- <div class="col"> -->
<div class="row-with-switch">
<p class="switch-title"><code>app config: </code></p>
<label for="toggle1">dev</label>
<input type="checkbox" id="toggle1" class="toggle">
<label for="toggle1">prod</label>
<div class="row equal-cols">
<div class="col-md-6 on">
<h3 class="code-title"><code>payment-backend</code></h3>
<pre class="code-block">
<code class="lang-yaml">
name: payment-backend
server:
port: 80
context: /api
payment-gateway: https://payment-gateway.com
database:
type: Postgres
min-pool-size: 10
max-pool-size: 50
url: jdbc:postgres://20.20.20.20:5432/payments
monitoring:
base-path: /monitoring
endpoints: info, health, ready, prometheus
</code>
</pre>
</div>
<div class="col-md-6 on">
<h3 class="code-title"><code>payment-frontend</code></h3>
<pre class="code-block">
<code class="lang-yaml">
name: payment-frontend
server:
port: 80
minThreads: 10
maxThreads: 100
payment-backend:
host: http://payment-backend.com
path: /api
timeoutMs: 180000
monitoring:
base-path: /monitoring
endpoints: info, health, ready, prometheus
</code>
</pre>
</div>
<div class="col-md-6 off">
<h3 class="code-title"><code>payment-backend</code></h3>
<pre class="code-block">
<code class="lang-yaml">
name: payment-backend
server:
port: 80
context: /api
payment-gateway: http://gateway-mock.local
database:
type: Postgres
max-pool-size: 10
url: jdbc:postgres://10.10.10.10:5432/payments
monitoring:
base-path: /monitoring
endpoints: info, health, ready, prometheus, threaddump
secure: false
</code>
</pre>
</div>
<div class="col-md-6 off">
<h3 class="code-title"><code>payment-frontend</code></h3>
<pre class="code-block">
<code class="lang-yaml">
name: payment-frontend
server:
port: 80
hotReload: true
maxThreads: 50
payment-backend:
host: https://payment-backend.local
path: /api
timeoutMs: 90000
monitoring:
base-path: /monitoring
endpoints: info, health, ready, prometheus, threaddump
secure: false
</code>
</pre>
</div>
</div>
</div>
<!--//////////////////////////////////////////////////////////////////////////-->
<div class="row-with-switch">
<p class="switch-title"><code>deploy config: </code></p>
<label for="toggle2">dev</label>
<input type="checkbox" id="toggle2" class="toggle">
<label for="toggle2">prod</label>
<div class="row equal-cols">
<div class="col-md-6 on">
<h3 class="code-title"><code>payment-backend</code></h3>
<pre class="code-block">
<code class="lang-yaml">
image: "payment-backend:1.5"
replicas: 2
ingress:
host: http://payment-backend.local
probes:
health: /monitoring/health
ready: /monitoring/ready
</code>
</pre>
</div>
<div class="col-md-6 on">
<h3 class="code-title"><code>payment-frontend</code></h3>
<pre class="code-block">
<code class="language-yaml">
image: "payment-frontend:2.1"
replicas: 3
ingress:
host: https://payments.example.com
probes:
health: /monitoring/health
ready: /monitoring/ready
</code>
</pre>
</div>
<div class="col-md-6 off">
<h3 class="code-title"><code>payment-backend</code></h3>
<pre class="code-block">
<code class="lang-yaml">
image: "payment-backend:latest"
replicas: 1
ingress:
host: http://payment-backend.local
probes:
health: /monitoring/health
ready: /monitoring/ready
</code>
</pre>
</div>
<div class="col-md-6 off">
<h3 class="code-title"><code>payment-frontend</code></h3>
<pre class="code-block">
<code class="lang-yaml">
image: "payment-frontend:latest"
replicas: 1
ingress:
host: http://payments.local
probes:
health: /monitoring/health
ready: /monitoring/ready
</code>
</pre>
</div>
</div>
</div>
<!--//////////////////////////////////////////////////////////////////////////-->
<div class="row-with-switch">
<p class="switch-title"><code>log config: </code></p>
<label for="toggle3">dev</label>
<input type="checkbox" id="toggle3" class="toggle">
<label for="toggle3">prod</label>
<div class="row equal-cols">
<div class="col-md-6 on">
<h3 class="code-title"><code>payment-backend</code></h3>
<pre class="code-block">
<code class="lang-xml">
<configuration>
<appender class="LogstashTcpSocketAppender">
<destination>30.30.30.30:9600</destination>
<encoder class="LogstashEncoder">
<customFields>{"servicename":"payment-backend"}</customFields>
</encoder>
</appender>
</configuration>
</code>
</pre>
</div>
<div class="col-md-6 on">
<h3 class="code-title"><code>payment-frontend</code></h3>
<pre class="code-block">
<code class="lang-xml">
<configuration>
<appender class="LogstashTcpSocketAppender">
<destination>30.30.30.30:9600</destination>
<encoder class="LogstashEncoder">
<customFields>{"servicename":"payment-frontend"}</customFields>
</encoder>
</appender>
</configuration>
</code>
</pre>
</div>
<div class="col-md-6 off">
<h3 class="code-title"><code>payment-frontend</code></h3>
<pre class="code-block">
<code class="lang-xml">
<configuration>
<appender class="FileAppender">
<file>logs/payment-frontend.log</file>
<encoder>
<pattern>%d{HH:mm:ss} %-5level %logger %msg %n</pattern>
</encoder>
</appender>
</configuration>
</code>
</pre>
</div>
<div class="col-md-6 off">
<h3 class="code-title"><code>payment-backend</code></h3>
<pre class="code-block">
<code class="lang-xml">
<configuration>
<appender class="FileAppender">
<file>logs/payment-backend.log</file>
<encoder>
<pattern>%d{HH:mm:ss} %-5level %logger %msg %n</pattern>
</encoder>
</appender>
</configuration>
</code>
</pre>
</div>
</div>
</div>
<!-- </div> -->
<br />
<p class="lead">
This might not look scary for only 2 services, but what if you have to manage 50 of them with
additional
<code>test</code> and <code>staging</code> environments? Check out <a
href="features.html">Features</a>
to see how Microconfig can help your project scale up or head over to <a
href="quickstart.html">Quickstart</a>
to see Microconfig applied to this example.
</p>
</div>
</section>
</main>
<footer class="text-muted bg-light">
<div class="container footer-container">
<p class="copyright">Microconfig.io © 2017-2023</p>
<div class="contacts">
<ul class="list-unstyled mb-0">
<li class="lead">Join our
<a
href="https://join.slack.com/t/microconfig/shared_invite/zt-dflf2m0n-wOPVfAmk5eiHPn_9Omff7Q">Slack!</a>
</li>
<li class="lead">Contribute on <a href="https://github.com/microconfig/microconfig">Github</a></li>
<li class="lead"><a href="mailto:hello@microconfig.io">hello@microconfig.io</a></li>
</ul>
</div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="vendor/bootstrap/bootstrap.bundle.min.js"></script>
<script src="vendor/prism/prism.js"></script>
<script async src="script/setCodeBlockHeight.js"></script>
</body>
</html>