Skip to content

Orphaned Resources After Cluster Delete #136

@danehans

Description

@danehans

After running the following commands, I see orphaned resources that were created by the gce ingress controller:

$ kubectl delete ing $ING -n $ING_NAMESPACE
$ gcloud container clusters delete $CLUSTER_NAME

List of orphaned resources:

$ gcloud compute instance-groups list
NAME                      LOCATION    SCOPE  NETWORK  MANAGED  INSTANCES
k8s-ig--6c90c323237f439e  us-west1-a  zone   default  No       0
k8s-ig--71cb3990c3cf10a6  us-west1-a  zone   default  No       0

$ gcloud compute backend-services list
NAME                            BACKENDS                                            PROTOCOL
k8s-be-30286--71cb3990c3cf10a6  us-west1-a/instanceGroups/k8s-ig--71cb3990c3cf10a6  HTTP
k8s-be-31225--6c90c323237f439e  us-west1-a/instanceGroups/k8s-ig--6c90c323237f439e  HTTP
k8s-be-31253--6c90c323237f439e  us-west1-a/instanceGroups/k8s-ig--6c90c323237f439e  HTTP
k8s-be-31345--71cb3990c3cf10a6  us-west1-a/instanceGroups/k8s-ig--71cb3990c3cf10a6  HTTP
k8s-be-31823--6c90c323237f439e  us-west1-a/instanceGroups/k8s-ig--6c90c323237f439e  HTTP
k8s-be-32421--71cb3990c3cf10a6  us-west1-a/instanceGroups/k8s-ig--71cb3990c3cf10a6  HTTP

$ gcloud compute url-maps list
NAME                                             DEFAULT_SERVICE
k8s-um-fortio-fortio-ingress--6c90c323237f439e   backendServices/k8s-be-31253--6c90c323237f439e
k8s-um-fortio-fortio-ingress--71cb3990c3cf10a6   backendServices/k8s-be-30286--71cb3990c3cf10a6
k8s-um-fortio-fortio-ingress2--6c90c323237f439e  backendServices/k8s-be-31823--6c90c323237f439e

$ gcloud compute target-http-proxies list
NAME                                             URL_MAP
k8s-tp-fortio-fortio-ingress--71cb3990c3cf10a6   k8s-um-fortio-fortio-ingress--71cb3990c3cf10a6
k8s-tp-fortio-fortio-ingress2--6c90c323237f439e  k8s-um-fortio-fortio-ingress2--6c90c323237f439e

$ gcloud compute forwarding-rules list
NAME                                             REGION    IP_ADDRESS      IP_PROTOCOL  TARGET
a38f1bb8811e511e89c5b42010a8a013                 us-west1  35.197.65.23    TCP          us-west1/targetPools/a38f1bb8811e511e89c5b42010a8a013
a5f61b2bd126f11e89c5b42010a8a013                 us-west1  35.203.177.233  TCP          us-west1/targetPools/a5f61b2bd126f11e89c5b42010a8a013
ac78780fb11e111e8858442010a8a020                 us-west1  35.230.48.211   TCP          us-west1/targetPools/ac78780fb11e111e8858442010a8a020
k8s-fw-fortio-fortio-ingress--71cb3990c3cf10a6             35.227.193.162  TCP          k8s-tp-fortio-fortio-ingress--71cb3990c3cf10a6
k8s-fw-fortio-fortio-ingress2--6c90c323237f439e            35.190.69.114   TCP          k8s-tp-fortio-fortio-ingress2--6c90c323237f439e

I would expect the gce ingress controller to remove these resources when the ingress or cluster is deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions