Skip to content

Problem: Could not resolve host name #3315

@GD-Dal

Description

@GD-Dal

Issue

I'm trying to setup Semaphore UI in a kubernetes cluster, but the first test run I take runs into an error:

8:56:06 PM Task 7 added to queue 8:56:07 PM Started: 7 8:56:07 PM Run TaskRunner with template: ping-test 8:56:07 PM Preparing: 7 8:56:07 PM Cloning Repository ssh://[email protected]:ansible/ansible.git 8:56:07 PM Cloning into 'repository_3_template_3'... 8:56:07 PM ssh: Could not resolve hostname gitlab-ssh.domain.tld:ansible: Name does not resolve 8:56:07 PM fatal: Could not read from remote repository.

But when running:
kubectl exec -n semaphore deployment/semaphore -- nslookup gitlab-ssh.domain.tld Server: 10.96.0.10 Address: 10.96.0.10:53
It resolves the server just fine:

Name:   gitlab-ssh.domain.tld
Address: 10.10.10.10

Impact

Ansible (task execution)

Installation method

Package

Database

Postgres

Browser

No response

Semaphore Version

v2.16.18-80549f7-17557

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions