Skip to content

Commit

Permalink
K8S-637 coredns check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dfateyev committed Aug 31, 2021
1 parent 4321933 commit d64a1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/upgrade.jps
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ onInstall:
actions:
check-cluster-status:
- cmd[${nodes.k8sm.master.id}]: |-
for cluster_comp in "Kubernetes control plane" "KubeDNS"; do
echo "$(TERM=dumb kubectl cluster-info 2>/dev/null)" | grep -q "${cluster_comp} is running" || echo "false";
for cluster_comp in "^Kubernetes control plane" "^(KubeDNS|CoreDNS)"; do
echo "$(TERM=dumb kubectl cluster-info 2>/dev/null)" | grep -Eq "${cluster_comp} is running" || echo "false";
done
- set:
k8s_cluster_status: ${response.out}
Expand Down

0 comments on commit d64a1dd

Please sign in to comment.