Email or username:

Password:

Forgot your password?
Andrew Tropin

I'm curious, how people manages their installations in Kubernetes?

If you delete namespace it lefts detached from ns ClusterRole s and CustomResourceDefinition s, which means you can't use the same manifest to install the same deployment (with dependencies) in other namespace unless you manually delete all of them.

This is an imperative nightmare, isn't it?

#kubernetes #k8s

5 comments
Michele Adduci

@abcdw we use opentofu for it. If you remove something, all the associated resources are cleaned up and you can naturally redeploy something new

Andrew Tropin

@madduci I'm lacking a bit of modern DevOps knowledge and terraform/opentofu in particular, but will take a look, thank you!

Do you know a good best practices book/articles?

Michele Adduci

@abcdw you might have a look at a good book such as Terraform Up and Running from O'Reilly

oreilly.com/library/view/terra

Highly suggested! Alternatively, there are some good video recaps on YouTube from various conferences on the topic

Blender Fox

@abcdw Helm, OpenTofu/Terraform or Pulumi are the main ones I can think of. I use Helm and OpenTofu.

Include all the resources in your declaration of the stack and when you then delete the stack, it will delete everything completely (within reason)

Ansible/Puppet is another possibility but requires more management.

Sharlatan

@abcdw Helm, Terraform (open Tofu), Ansible

Go Up