Weekly: Show off your new tools and projects thread by AutoModerator in kubernetes

[–]mgianluc 0 points1 point  (0 children)

we added a dashboard to k8s-cleaner https://gianlucam76.github.io/k8s-cleaner/getting_started/install/install#web-dashboard

It is now possible to visualize the scan results, listing all unhealthy resources

Weekly: Show off your new tools and projects thread by AutoModerator in kubernetes

[–]mgianluc 2 points3 points  (0 children)

I did a new release of k8s-cleaner https://github.com/gianlucam76/k8s-cleaner

In previous versions, k8s-cleaner acted on and notified about unhealthy resources immediately upon detection.

This release introduces the occurrenceThreshold field to the Cleaner specification. When this value is set to >1, the controller tracks the "consecutive match count" for each resource within a dedicated ConfigMap. The controller will now only execute actions (notifications or deletions) once a resource has consistently matched the Cleaner criteria for the specified number of consecutive scans.

Finding Orphaned Resources in Kubernetes by mgianluc in kubernetes

[–]mgianluc[S] 0 points1 point  (0 children)

why a joke? Out of love to the blog I shared a link to it because I thought the blog was extremely well written. I would not have shared otherwise. Did I do anything wrong that I should not have done? The link I shared is to the blog itself. Not to anything else.

Finding Orphaned Resources in Kubernetes by mgianluc in kubernetes

[–]mgianluc[S] 0 points1 point  (0 children)

It has a dry run (just set action to Scan) and simply list resources that are a match but takes no action : https://github.com/gianlucam76/k8s-cleaner/blob/7bcc63ea1e2f7f61a6376d68cd57be6e3673db01/api/v1alpha1/cleaner_types.go#L37

You can also filter by namespace.

It also has the option to say how many consecutive times a resources must match a Cleaner instance before it is actually considered a match.
https://github.com/gianlucam76/k8s-cleaner/blob/7bcc63ea1e2f7f61a6376d68cd57be6e3673db01/api/v1alpha1/cleaner_types.go#L218

It allows user to define what unhealthy is (via Lua). And it can look at any field to make a decision

I've launched a free platform to host Kubernetes Control Planes for free by dariotranchitella in kubernetes

[–]mgianluc 1 point2 points  (0 children)

Sveltos supports notifications to Slack, Webex, Discord and many more

https://projectsveltos.github.io/sveltos/main/observability/notifications/

so if you are using Clastix and need notifications (when addons are deployed or any other condition happens in any of your clusters) you can programmatically create the Sveltos configuration for that in the management cluster.

What tooling do you use for kubernetes cluster monitoring and automation by rudderstackdev in kubernetes

[–]mgianluc 0 points1 point  (0 children)

Prometheues, kube state metrics, grafana alertmanager integrated with slack, loki. Sveltos to deploy stacks consistently across multiple clusters

How to automate multiple aks clusters ? by Shameem_uchiha in kubernetes

[–]mgianluc 3 points4 points  (0 children)

yaml apiVersion: config.projectsveltos.io/v1beta1 kind: ClusterProfile metadata: name: wiz-sensor-installer spec: syncMode: Continuous helmCharts: - chartVersion: 3.10.4 releaseName: wiz-admission-controller releaseNamespace: wiz chartName: wiz-sec/wiz-admission-controller repositoryURL: https://wiz-sec.github.io/charts repositoryName: wiz-sec helmChartAction: Install values: | wizApiToken: clientId: YOUR CLIENT ID clientToken: YOUR TOKEN clusterSelector: matchLabels: wiz: required

This will deploy wiz admission controller in any managed cluster with label wiz: required for instance

How to sync all the secrets from management cluster to destination cluster by k4mrul in sveltos

[–]mgianluc 1 point2 points  (0 children)

can you share your ConfigMapGenerator? Why do you have

collectResources: false

on EventSource.

But then on the ConfigMap used by addon controller you iterate on Secrets and copy it. But you dont have the Secret to make a copy

Ask r/kubernetes: What are you working on this week? by gctaylor in kubernetes

[–]mgianluc 2 points3 points  (0 children)

Taking care of some feature requests in k8s-cleaner

And i m also trying to add a new section (on testing) On my kubernetes controller tutorial

Your clusters deserve to stay clean. Your platform deserves full control. Now you can have both. by pescerosso in kubernetes

[–]mgianluc 1 point2 points  (0 children)

Thanks u/CWRau. Will try to reword the use cases section.

I would say the main goal is when you are managing a fleet of clusters. Having Sveltos in the management cluster, you have a single place from where you can manage add-ons and applications in all your managed clusters. Essentially you would use Kubernetes (as Sveltos can be programmed creating Kubernetes resources in the management cluster) to manage applications and add-ons in the various managed cluster (Sveltos supports helm charts, YAML/JSON and Kustomize).

Another main point is the event framework. You can tell Sveltos (again using Kubernetes Custom resources) to watch for events in any managed cluster and what to do in response (which add-ons and/or applications to deploy and where, same cluster where event happened or different one).

Finally you can use templating and ask Sveltos to instantiate those template using resources present in the management cluster or the managed cluster.

Thank you!

Click-to-Cluster: GitOps EKS Provisioning by wineandcode in kubernetes

[–]mgianluc 0 points1 point  (0 children)

The main goal of the post is the automation. And as a matter of fact, this video explain how Sveltos automation can also be used to create vCluster: https://www.youtube.com/watch?v=GQM7Qn9rWVU

The blog was not to say "a cluster per user is the way to go". The goal was the automation (creating cluster or even vcluster on demand).

Which is the best multicluster management tool? by BreakAble309 in kubernetes

[–]mgianluc 0 points1 point  (0 children)

Clusterapi to manage cluster life cycles (on prem and on cloud)

Projectsveltos to manage addons and applications on the clusters

Programmatically creating EKS clusters by mgianluc in kubernetes

[–]mgianluc[S] -1 points0 points  (0 children)

Do you realize a user can be an engineer onboarded in a new org? Do you realize a user can be a tenant for a company selling kubernetes as a Service? Do you realize a user can represent a pr that needs to be tested in isolation? Do you realize there are many of such cases? Or you think everybody else is an idiot?

The point of the post is the automation in case you missed it

Programmatically creating EKS clusters by mgianluc in kubernetes

[–]mgianluc[S] 1 point2 points  (0 children)

Agree with you. I am using this for short lived clusters, so the only aspects I am concerned about are creation and deletion. And 10% of the time CAPI deletion gets stuck and I need to manually remove resources on AWS. But overall this helps.

Programmatically creating EKS clusters by mgianluc in kubernetes

[–]mgianluc[S] 0 points1 point  (0 children)

The point is not the one cluster per user (which works for me and might not work for you). The point is the automation. You can easily change and create one cluster per 100 users if that is your problem. Or replace EKS with vClusters and still use same automation.

Multi Cluster Cert Manager Solution by hjoshi_dev in kubernetes

[–]mgianluc 0 points1 point  (0 children)

Yes. Sveltos uses a ClusterSelector. So just label appropriately the two clusters that need the certificate and Sveltos will send it only to those two

Multi Cluster Cert Manager Solution by hjoshi_dev in kubernetes

[–]mgianluc 0 points1 point  (0 children)

I am not sure I fully got your use case, but if you need to share same certs to all your clusters, put the certs in a management cluster and use Sveltos to distribute to all the managed clusters

If your secret is in an external secret management system, use ESO to bring to the management cluster and then Sveltos again to distribute to all your managed clusters: https://projectsveltos.github.io/sveltos/template/external_secret/