<p dir="auto">There are some constants in kubelet and kube-proxy that refers to the same thing. For example:<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/kubernetes/kubernetes/blob/a57561b84dd436d92ae43805b63ac7bb23ae188c/pkg/kubelet/kubelet_network.go#L38">kubernetes/pkg/kubelet/kubelet_network.go</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 38
      in
      <a data-pjax="true" class="commit-tease-sha" href="/kubernetes/kubernetes/commit/a57561b84dd436d92ae43805b63ac7bb23ae188c">a57561b</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L38" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="38"></td>
          <td id="LC38" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">KubeMarkMasqChain</span> utiliptables.<span class="pl-smi">Chain</span> <span class="pl-c1">=</span> <span class="pl-s">"KUBE-MARK-MASQ"</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<br>
<div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/kubernetes/kubernetes/blob/65f3fa9caf79a5cae49ff893695c58ca63863ad1/pkg/proxy/iptables/proxier.go#L71">kubernetes/pkg/proxy/iptables/proxier.go</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 71
      in
      <a data-pjax="true" class="commit-tease-sha" href="/kubernetes/kubernetes/commit/65f3fa9caf79a5cae49ff893695c58ca63863ad1">65f3fa9</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L71" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="71"></td>
          <td id="LC71" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">KubeMarkMasqChain</span> utiliptables.<span class="pl-smi">Chain</span> <span class="pl-c1">=</span> <span class="pl-s">"KUBE-MARK-MASQ"</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<br>
<div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/kubernetes/kubernetes/blob/57604d13cd7e9985e520511efc5b3b3b3dd62000/pkg/kubelet/network/hostport/hostport.go#L284">kubernetes/pkg/kubelet/network/hostport/hostport.go</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 284
      in
      <a data-pjax="true" class="commit-tease-sha" href="/kubernetes/kubernetes/commit/57604d13cd7e9985e520511efc5b3b3b3dd62000">57604d1</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L284" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="284"></td>
          <td id="LC284" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"-s"</span>, <span class="pl-s1">target</span>.<span class="pl-c1">podIP</span>, <span class="pl-s">"-j"</span>, <span class="pl-en">string</span>(<span class="pl-s1">iptablesproxy</span>.<span class="pl-c1">KubeMarkMasqChain</span>), </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">There must be other cases like this. Propose to have a package to store constants used by multiple components in one place.</p>
<p dir="auto">After setting up a few services, I noticed the following output in <code class="notranslate">get events</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Tue, 14 Jul 2015 18:04:43 -0700   Wed, 15 Jul 2015 11:26:22 -0700   3544      my-nginx                                     Service               creating loadbalancer failed   {service-controller }                                  failed to create external load balancer for service default/my-nginx: error listing AWS subnets: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 18:04:44 -0700   Wed, 15 Jul 2015 11:26:22 -0700   2679      my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: error listing AWS security groups: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 18:04:08 -0700   Wed, 15 Jul 2015 11:26:31 -0700   4926      my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: error listing AWS VPCs: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 18:01:05 -0700   Wed, 15 Jul 2015 11:26:39 -0700   67946     my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: error listing AWS instances: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 15:55:48 -0700   Wed, 15 Jul 2015 11:26:42 -0700   25049     my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: InvalidGroup.Duplicate: The security group 'k8s-elb-a744c2a772a7b11e593680276d36fbdd' already exists for VPC 'vpc-f661fa93'
                                  status code: 400, request id: []"><pre class="notranslate"><code class="notranslate">Tue, 14 Jul 2015 18:04:43 -0700   Wed, 15 Jul 2015 11:26:22 -0700   3544      my-nginx                                     Service               creating loadbalancer failed   {service-controller }                                  failed to create external load balancer for service default/my-nginx: error listing AWS subnets: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 18:04:44 -0700   Wed, 15 Jul 2015 11:26:22 -0700   2679      my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: error listing AWS security groups: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 18:04:08 -0700   Wed, 15 Jul 2015 11:26:31 -0700   4926      my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: error listing AWS VPCs: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 18:01:05 -0700   Wed, 15 Jul 2015 11:26:39 -0700   67946     my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: error listing AWS instances: RequestLimitExceeded: Request limit exceeded.
                                  status code: 503, request id: []
Tue, 14 Jul 2015 15:55:48 -0700   Wed, 15 Jul 2015 11:26:42 -0700   25049     my-nginx   Service             creating loadbalancer failed   {service-controller }   failed to create external load balancer for service default/my-nginx: InvalidGroup.Duplicate: The security group 'k8s-elb-a744c2a772a7b11e593680276d36fbdd' already exists for VPC 'vpc-f661fa93'
                                  status code: 400, request id: []
</code></pre></div>
<p dir="auto">I assume the service tried to configure an ELB in the past (not sure when or how or what details it tried to use) and has kept trying and now can't even use the AWS API.</p>
<p dir="auto">How can I either:</p>
<ol dir="auto">
<li>tell it to please stop so that I can use my AWS account again</li>
<li>fix it so that it does configure the ELB</li>
</ol>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/justinsb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/justinsb">@justinsb</a></p>