LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 01-31-2022, 07:22 PM   #1
mileto
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Naming resolution on Kubernetes


I have a Kubernetes cluster on 3 ubuntu 20.04 servers. Server and client kubernetes versions are v1.23.1
I deployed 2 kubernetes deployments with helm: backend and frontend apps. One app, called backend, has an headless service (with app selector for backend app).
I would like to use headless service name to let frontend to talk with backend.
I did some test but there is something wrong.
The only way to let frontend talk to backend is using such dns name: backend-service-hs.default.svc.cluster.local; if I use "backend-service-hs" (without the fully qualified name), it does not work.
Maybe a sort of DNS resolution problem.
How can I address this issue?

regards,
m.

Last edited by mileto; 02-01-2022 at 11:12 AM. Reason: syntax correction
 
Old 02-07-2022, 09:46 AM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Headless service generally used with statefulset deployment. Are you using the headless service with a normal deployment ?

Can you paste your manifest of headless service and deployment ?

Is your headless service metadata.name matching exactly to the deployment spec.servicename.

Last edited by divyashree; 02-07-2022 at 09:53 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to have grub translate its own naming to naming scheme under Linux zhjim Linux - Software 6 05-28-2006 08:09 AM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 02:08 PM
Devfs naming - quick question. JoeLinux Linux - General 3 04-03-2002 02:46 AM
Incorrect Partion Naming ProdicalFlame Linux - Software 1 06-30-2001 09:39 AM
Does not resolve naming ehsan Linux - Networking 6 03-29-2001 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration