mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-30 11:15:42 +02:00
Update to 2023-08-17 16:00
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
# List of plugins to install
|
||||
nomad_plugins:
|
||||
podman:
|
||||
archive_url: https://releases.hashicorp.com/nomad-driver-podman/0.5.0/nomad-driver-podman_0.5.0_linux_amd64.zip
|
||||
sha256: d5fd1a9e6a533c8a78b0f3c4f74f840c039a70a1e23cae216d1329016fd8b91a
|
||||
archive_url: https://releases.hashicorp.com/nomad-driver-podman/0.5.1/nomad-driver-podman_0.5.1_linux_amd64.zip
|
||||
sha256: cef60b0dfd708ab2b5b1e517991cf933bce509a27b087c482e6993f3784dd572
|
||||
containerd:
|
||||
archive_url: https://github.com/Roblox/nomad-driver-containerd/releases/download/v0.9.4/containerd-driver
|
||||
sha256: 337e1bab178071500bfbe46a59946e0e3bafc652906ed1b755d2aa4d35990982
|
||||
@@ -123,6 +123,8 @@ nomad_base_conf:
|
||||
- namespace
|
||||
- node_name
|
||||
- node_id
|
||||
gc:
|
||||
image_delay: 1h
|
||||
# Authentication for OCI registries
|
||||
# auths:
|
||||
# - registry: oci.example.org
|
||||
|
@@ -149,6 +149,14 @@ plugin "docker" {
|
||||
"{{ label }}",
|
||||
{% endfor %}
|
||||
]
|
||||
|
||||
gc {
|
||||
{% for gc in ['image_delay'] %}
|
||||
{% if nomad_conf.client.task_drivers.docker.gc[gc] is defined %}
|
||||
{{ gc }} = "{{ nomad_conf.client.task_drivers.docker.gc[gc] }}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -32,6 +32,10 @@ RestartSec=5
|
||||
StartLimitInterval=0
|
||||
TasksMax=infinity
|
||||
OOMScoreAdjust=-1000
|
||||
{% if nomad_conf.client.enabled %}
|
||||
# Give Nomad some time to drain the node
|
||||
TimeoutStopSec=3600
|
||||
{% endif %}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user