Skip to content
Snippets Groups Projects
Unverified Commit b289f533 authored by weizhoublue's avatar weizhoublue Committed by GitHub
Browse files

get wrong server name of coredns (#8811)

parent 3eb0a407
Branches
Tags
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
- inventory_hostname == groups['kube_control_plane'][0] - inventory_hostname == groups['kube_control_plane'][0]
- name: Kubernetes Apps | Register coredns service annotation `createdby` - 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 register: createdby_annotation_svc
changed_when: false changed_when: false
ignore_errors: true # noqa ignore-errors ignore_errors: true # noqa ignore-errors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment