Skip to content

Commit

Permalink
Ignore "kube-lego" Ingress objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arik Kfir committed Dec 20, 2017
1 parent 849256c commit 2e692f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloudflared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ while true; do
# them to our Python script which will ensure their DNS records are correctly defined in Cloudflare
kubectl get ingress --all-namespaces --output=json | jq -r '
[.items[] |
select(.metadata.name | startswith( "kube-lego-" ) | not ) |
select(.status.loadBalancer) |
select(.status.loadBalancer.ingress) |
select(.status.loadBalancer.ingress[].ip) |
Expand Down

0 comments on commit 2e692f1

Please sign in to comment.