Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm uninstall leaves chi pod, sts, svc around #305

Open
4 tasks done
tiina303 opened this issue Feb 23, 2022 · 1 comment
Open
4 tasks done

Helm uninstall leaves chi pod, sts, svc around #305

tiina303 opened this issue Feb 23, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tiina303
Copy link
Contributor

tiina303 commented Feb 23, 2022

Bug description

Helm uninstall leaves chi around

Expected behavior

Everything is deleted

Actual behavior

Clickhouse pod, sts, svc don't get deleted.

$ helm uninstall posthog
$ kubectl get all
NAME                            READY   STATUS    RESTARTS   AGE
pod/chi-posthog-posthog-0-0-0   1/1     Running   0          19m

NAME                              TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                         AGE
service/chi-posthog-posthog-0-0   ClusterIP   None             <none>        8123/TCP,9000/TCP,9009/TCP      18m
service/clickhouse-posthog        NodePort    10.245.199.230   <none>        8123:31175/TCP,9000:32642/TCP   19m

NAME                                       READY   AGE
statefulset.apps/chi-posthog-posthog-0-0   1/1     19m

How to reproduce

  1. install posthog
  2. helm uninstall posthog -n posthog
  3. kubectl get all -n posthog

Environment

  • Deployment platform (DigitalOcean): please provide
  • k8s version (server version from kubectl version): 1.21
  • Chart version/commit (helm list -n posthog): master
  • Posthog version: master

Additional context

Related problem after manually deleting the chi stuff running helm install doesn't create chi stuff, which can be fixed by running a helm upgrade , but helm install should work.

@tiina303 tiina303 added the bug Something isn't working label Feb 23, 2022
@macobo
Copy link
Contributor

macobo commented Mar 3, 2022

This is caused by finalizers in the clickhouse-operator.

It might be a 'feature' in that it doesn't drop the data.

A one-command workaround is kubectl patch chi posthog -n posthog -p '{"metadata":{"finalizers":null}}' --type=merge

Also see how we work around this in the kubetest test suite.

ellie pushed a commit that referenced this issue Aug 25, 2022
ellie pushed a commit that referenced this issue Aug 25, 2022
* Add preview feedback and cleanup

* Patch the finalizer for chi, see #305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants