get wrong server name of coredns (#8811)
Signed-off-by: weizhou.lan@daocloud.io <weizhou.lan@daocloud.io>
This commit is contained in:
parent
3eb0a4071a
commit
b289f533b3
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
- inventory_hostname == groups['kube_control_plane'][0]
|
||||
|
||||
- name: Kubernetes Apps | Register coredns service annotation `createdby`
|
||||
command: "{{ kubectl }} get svc -n kube-system kube-dns -o jsonpath='{ .metadata.annotations.createdby }'"
|
||||
command: "{{ kubectl }} get svc -n kube-system coredns -o jsonpath='{ .metadata.annotations.createdby }'"
|
||||
register: createdby_annotation_svc
|
||||
changed_when: false
|
||||
ignore_errors: true # noqa ignore-errors
|
||||
|
|
Loading…
Reference in a new issue