Kazuhiro MUSASHI
|
885907310f
|
Deploy `/etc/nomad.d/client.hcl`.
|
2024-04-06 17:06:51 +09:00 |
Kazuhiro MUSASHI
|
4a1574a787
|
Deploy `vector`-related config files.
|
2024-04-06 16:28:55 +09:00 |
Kazuhiro MUSASHI
|
bef9a01bc1
|
Deploy `/lib/systemd/system/vector-nomad.service`.
|
2024-04-06 16:28:55 +09:00 |
Kazuhiro MUSASHI
|
b16ed09803
|
Deploy `vector` config for `nomad`.
|
2024-04-06 16:27:07 +09:00 |
Kazuhiro MUSASHI
|
6fb0e49198
|
Delete `promtail` config for `nomad`.
|
2024-04-06 16:26:48 +09:00 |
Kazuhiro MUSASHI
|
217c3f0dd6
|
Delete `/lib/systemd/system/promtail-nomad.service`.
|
2024-04-06 16:25:29 +09:00 |
Kazuhiro MUSASHI
|
173f4682fd
|
Change the word `promtail` to `vector`.
|
2024-04-06 16:25:07 +09:00 |
Kazuhiro MUSASHI
|
6f18eed04e
|
Change the public key of HashiCorp apt key.
|
2023-01-28 10:34:54 +09:00 |
Kazuhiro MUSASHI
|
bc2f8128ff
|
`apt update`コマンドの実行回数を減らす
|
2022-08-11 12:21:39 +09:00 |
Kazuhiro MUSASHI
|
4a57c21614
|
Deploy example `Consul Connect` job.
|
2022-03-14 23:19:25 +09:00 |
Kazuhiro MUSASHI
|
ef40d3dc01
|
Create /etc/nomad.d/jobs
|
2022-03-14 23:19:25 +09:00 |
Kazuhiro MUSASHI
|
9a5a78d657
|
Deploy `/etc/nomad.d/policies/anonymous.hcl`.
|
2022-03-14 23:19:25 +09:00 |
Kazuhiro MUSASHI
|
ce7a80db7a
|
Create `/etc/nomad.d/policies/` directory.
|
2022-03-14 23:17:44 +09:00 |
Kazuhiro MUSASHI
|
a882f52b3f
|
Delete `shared_dir.rb`.
|
2022-03-14 23:17:32 +09:00 |
Kazuhiro MUSASHI
|
64066ab78f
|
Add `consul` stanza.
|
2022-03-14 23:17:12 +09:00 |
Kazuhiro MUSASHI
|
2bec4d88f3
|
Do not deploy `docker-registry.hcl`.
|
2022-01-14 23:52:59 +09:00 |
Kazuhiro MUSASHI
|
8c712e6ffa
|
Delete `/etc/nomad.d/datadir.hcl`.
|
2022-01-14 23:52:59 +09:00 |
Kazuhiro MUSASHI
|
5e176ff230
|
Modify `/etc/nomad.d/client.hcl`:
```
--- a/cookbooks/nomad/files/etc/nomad.d/client.hcl
+++ b/cookbooks/nomad/files/etc/nomad.d/client.hcl
@@ -1,13 +1,3 @@
-# /etc/nomad.d/server.hcl
-
client {
- enabled = true
-}
-
-plugin "docker" {
- config {
- volumes {
- enabled = true
- }
- }
+ enabled = true
}
```
|
2022-01-14 23:52:58 +09:00 |
Kazuhiro MUSASHI
|
935f773bca
|
Deploy `csi` settings.
|
2022-01-14 23:52:58 +09:00 |
Kazuhiro MUSASHI
|
de06f5575c
|
Add `logrotated` config for `nomad` log files.
```
--- /dev/null
+++ b/cookbooks/nomad/files/etc/logrotate.d/nomad
@@ -0,0 +1,13 @@
+/var/log/nomad.log
+{
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+ sharedscripts
+ postrotate
+ /usr/lib/rsyslog/rsyslog-rotate
+ endscript
+}
```
|
2022-01-10 15:29:00 +09:00 |
Kazuhiro MUSASHI
|
dffb57e2fc
|
Add `rsyslog` config for `nomad`.
|
2022-01-10 15:29:00 +09:00 |
Kazuhiro MUSASHI
|
9e6b05fbab
|
Specify `Loki` endpoint.
```
--- a/cookbooks/nomad/attributes.rb
+++ b/cookbooks/nomad/attributes.rb
@@ -4,6 +4,7 @@
node.reverse_merge!({
'nomad' => {
'manager' => false,
- 'client' => false
+ 'client' => false,
+ 'lokiendpoint' => 'loki.service.consul:3100'
}
})
```
|
2022-01-10 15:29:00 +09:00 |
Kazuhiro MUSASHI
|
d824d6afc8
|
Add `systemd` config for `Promtail` monitoring `nomad`.
|
2022-01-10 15:29:00 +09:00 |
Kazuhiro MUSASHI
|
a7363ef7b1
|
Add `Promtail` setting for `nomad`.
|
2022-01-10 15:29:00 +09:00 |
Kazuhiro MUSASHI
|
96ba6e7757
|
Modify # of `nomad` servers:
```
--- a/cookbooks/nomad/files/etc/nomad.d/server.hcl
+++ b/cookbooks/nomad/files/etc/nomad.d/server.hcl
@@ -1,4 +1,4 @@
server {
enabled = true
- bootstrap_expect = 1
+ bootstrap_expect = 3
}
```
|
2021-11-03 12:39:44 +09:00 |
Kazuhiro MUSASHI
|
9eddfaf514
|
Execute `modprobe` for the necessary kernel parameer.
|
2021-11-03 12:36:33 +09:00 |
Kazuhiro MUSASHI
|
cb368a1445
|
Deploy `/etc/nomad.d/acl.hcl`.
|
2021-06-19 19:56:45 +09:00 |
Kazuhiro MUSASHI
|
531dde8bff
|
Deploy `/etc/nomad.d/server.hcl`.
|
2021-06-19 19:56:45 +09:00 |
Kazuhiro MUSASHI
|
bd4f65dcf5
|
Change the default config to install `nomad` only.
|
2021-06-19 19:56:45 +09:00 |
Kazuhiro MUSASHI
|
d5060f84f4
|
Install `nomad` even if the node is not `nomad` server/client.
|
2021-06-19 19:55:17 +09:00 |
Kazuhiro MUSASHI
|
010a53a58b
|
Deploy `nomad`.
|
2021-05-02 19:08:17 +09:00 |