fix: use scaler resolved dns for docker daemon
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing

This commit is contained in:
Robert Kaussow 2023-04-10 00:03:44 +02:00
parent c390dd82cf
commit 2b613ce0f8
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 5 additions and 4 deletions

View File

@ -50,7 +50,7 @@ droneci_autoscaler_agent_architecture: amd64
droneci_autoscaler_agent_distro: ubuntu
droneci_autoscaler_agent_volumes: []
droneci_autoscaler_agent_package_upgrade: False
droneci_autoscaler_agent_resolved_dns: []
droneci_autoscaler_agent_dns: []
droneci_autoscaler_agent_runcmd: []
# @var droneci_autoscaler_agent_packages:description: >

View File

@ -48,7 +48,8 @@ write_files:
"tlsverify": true,
"tlscacert": "/etc/docker/ca.pem",
"tlscert": "/etc/docker/server-cert.pem",
"tlskey": "/etc/docker/server-key.pem"
"tlskey": "/etc/docker/server-key.pem",
"dns": {{ droneci_autoscaler_agent_dns | to_json }}
}
{% if inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) is defined %}
@ -74,12 +75,12 @@ write_files:
- path: /etc/docker/server-key.pem
encoding: b64
content: {% raw %}{{ .TLSKey | base64 }}{% endraw %}
{% if droneci_autoscaler_agent_resolved_dns | length > 0 %}
{% if droneci_autoscaler_agent_dns | length > 0 %}
- path: /etc/systemd/resolved.conf
content: |
[Resolve]
DNS={{ droneci_autoscaler_agent_resolved_dns | join(" ") }}
DNS={{ droneci_autoscaler_agent_dns | join(" ") }}
{% endif %}
{% if droneci_autoscaler_agent_runcmd | length > 0 %}