kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.47k stars 14.39k forks source link

kube-apiserver #28395

Closed singhjatinder122885 closed 3 years ago

singhjatinder122885 commented 3 years ago

Hi Team,

Can we not use --advertise address as DNS entry instead of actual IP address? While Initializing the cluster using kube-adm, here is the error I'm getting while using DNS Entry.

ubuntu@ac1poc-20210407164708-dbvault-master1:~$ sudo docker ps -a
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS                     PORTS               NAMES
6dadb094ef45        4d217480042e             "kube-apiserver --ad…"   8 seconds ago       Exited (1) 7 seconds ago                       k8s_kube-apiserver_kube-apiserver-ac1poc-20210407164708-dbvault-master1_kube-system_d178ca26dd6ecb571ee1d795bf05d13c_0
9800cd1306ca        k8s.gcr.io/pause:3.4.1   "/pause"                 8 seconds ago       Up 7 seconds                                   k8s_POD_kube-apiserver-ac1poc-20210407164708-dbvault-master1_kube-system_d178ca26dd6ecb571ee1d795bf05d13c_0
447ca3b7c4e5        0369cf4303ff             "etcd --advertise-cl…"   18 seconds ago      Up 17 seconds                                  k8s_etcd_etcd-ac1poc-20210407164708-dbvault-master1_kube-system_aeecb86186a97a57d7b33389c398d994_0
f10dee583a73        k8s.gcr.io/pause:3.4.1   "/pause"                 18 seconds ago      Up 17 seconds                                  k8s_POD_etcd-ac1poc-20210407164708-dbvault-master1_kube-system_aeecb86186a97a57d7b33389c398d994_0
ff24fb98ffc4        62ad3129eca8             "kube-scheduler --au…"   28 seconds ago      Up 27 seconds                                  k8s_kube-scheduler_kube-scheduler-ac1poc-20210407164708-dbvault-master1_kube-system_043da16f3c9ebc5b6dc6a04761c2f844_0
3fb783c0d8c7        k8s.gcr.io/pause:3.4.1   "/pause"                 28 seconds ago      Up 27 seconds                                  k8s_POD_kube-scheduler-ac1poc-20210407164708-dbvault-master1_kube-system_043da16f3c9ebc5b6dc6a04761c2f844_0
ubuntu@ac1poc-20210407164708-dbvault-master1:~$ sudo docker logs 6dadb094ef45
Error: invalid argument "ac1poc-20210407164708-kube-api-f5082ea18c7584ad.elb.us-east-1.amazonaws.com" for "--advertise-address" flag: failed to parse IP: "ac1poc-20210407164708-kube-api-f5082ea18c7584ad.elb.us-east-1.amazonaws.com"
k8s-ci-robot commented 3 years ago

@singhjatinder122885: This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
sftim commented 3 years ago

I'm not sure if this is a feature request for Kubernetes (or perhaps for kubeadm), or a request for support.

However, this list of issues is specifically intended to report defects in https://kubernetes.io/docs/ and related pages. You can also file feature requests if you have an idea about improving that website.

neolit123 commented 3 years ago

Can we not use --advertise address as DNS entry instead of actual IP address? While Initializing the cluster using kube-adm, here is the error I'm getting while using DNS Entry.

hi, --advertise-address is a kube-apiserver flag that only accepts IP addresses. https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/ if you want to ask why, you can in a new kubernetes/kubernetes ticket.

/close /kind support

k8s-ci-robot commented 3 years ago

@neolit123: Closing this issue.

In response to [this](https://github.com/kubernetes/website/issues/28395#issuecomment-860883737): >> Can we not use --advertise address as DNS entry instead of actual IP address? While Initializing the cluster using kube-adm, here is the error I'm getting while using DNS Entry. > >hi, --advertise-address is a kube-apiserver flag that only accepts IP addresses. >https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/ >if you want to ask why, you can in a new kubernetes/kuberentes ticket. > >/close >/kind support > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.