• Julian Vassev's avatar
    Configure req timeout calling k8s APIs · e6cae22e
    Julian Vassev authored
    When running in a pod sometimes the request to get ingreses/services
    stalls indefinitely. A simple pod restart fixes this. Hard to reproduce
    but I got lucky and did thread dump which revealed a gorouting blocked
    on call to k8s.
    
    What's new is a `--request-timeout` flag that makes requests to k8s
    bounded in time. The default is 30s - this may cause some deployments
    with a slow api-server to timeout.
    e6cae22e