<p>When creating various Kubernetes objects in GKE, associated GCP resources are automatically created. I'm specifically referring to:</p>

<ul>
<li><code>forwarding-rules</code></li>
<li><code>target-http-proxies</code></li>
<li><code>url-maps</code></li>
<li><code>backend-services</code></li>
<li><code>health-checks</code></li>
</ul>

<p>These have names such as <code>k8s-fw-service-name-tls-ingress--8473ea5ff858586b</code>.</p>

<p>After deleting a cluster, these resources remain. How can I identify which of these are still in use (by other Kubernetes objects, or another cluster) and which are not?</p>

mkingston
<p>There is no easy way to identify which added GCP resources (LB, backend, etc.) are linked to which cluster. You need to manually go into these resources to see what they are linked to.</p>

<p>If you delete a cluster with additional resources attached, you have to also manually delete these resources as well. At this time, I would suggest taking note of which added GCP resources are related to which cluster, so that you will know which resources to delete when the time comes to deleting the GKE cluster.</p>

<p>I would also suggest to create a feature request <a href="http://issuetracker.google.com" rel="nofollow noreferrer">here</a> to request for either a more defined naming convention for additional GCP resources being created linked to a specific cluster and/or having the ability to automatically delete all additonal resources linked to a cluster when deleting said cluster.</p>
