Skip to content

Commit

Permalink
get wrong server name of coredns (kubernetes-sigs#8811)
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhoublue authored and LuckySB committed Oct 23, 2023
1 parent 61e4cc9 commit d3dedd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3dedd3

Please sign in to comment.