clastix / kamaji

Kamaji is the Hosted Control Plane Manager for Kubernetes.
https://kamaji.clastix.io
Apache License 2.0
992 stars 90 forks source link

Unable to finalize installation if first installation is aborted #388

Closed m4oc closed 9 months ago

m4oc commented 9 months ago

After an unsuccessful first installation (a trivial ctrl+c on helm), some resources remain configured.

It would be useful to have a procedure to completely clean up the installation and be able to relaunch it

client.go:486: [debug] Starting delete for "default" DataStore
client.go:490: [debug] Ignoring delete failure for "default" kamaji.clastix.io/v1alpha1, Kind=DataStore: datastores.kamaji.clastix.io "default" not found
client.go:142: [debug] creating 1 resource(s)

Error: INSTALLATION FAILED: failed pre-install: warning: Hook pre-install kamaji/templates/datastore.yaml failed: 1 error occurred:
        * Internal error occurred: failed calling webhook "vdatastore.kb.io": failed to call webhook: Post "[https://kamaji-webhook-service.kamaji-system.svc:443/validate-kamaji-clastix-io-v1alpha1-datastore?timeout=10s](https://kamaji-webhook-service.kamaji-system.svc/validate-kamaji-clastix-io-v1alpha1-datastore?timeout=10s)": service "kamaji-webhook-service" not found

helm.go:84: [debug] failed pre-install: warning: Hook pre-install kamaji/templates/datastore.yaml failed: 1 error occurred:
        * Internal error occurred: failed calling webhook "vdatastore.kb.io": failed to call webhook: Post "[https://kamaji-webhook-service.kamaji-system.svc:443/validate-kamaji-clastix-io-v1alpha1-datastore?timeout=10s](https://kamaji-webhook-service.kamaji-system.svc/validate-kamaji-clastix-io-v1alpha1-datastore?timeout=10s)": service "kamaji-webhook-service" not found
bsctl commented 9 months ago

@m4oc thanks for reporting this Marco. We'll provide a recovery procedure in the doc.

bsctl commented 9 months ago

@m4oc please check #389