This simple experiment shows how to pull data from and display it in custom dashboards in datastudio, tailored to your needs, like so:

Here’s a breakdown of what we’ll use:

  • docker container to pull data from nvd and send it to a bucket
  • bucket to store nvd results as json file
  • docker container to start a bigquery impot job — this imports the json file into bigquery
  • bigquery dataset with a simple autodetected schema.
  • datastudio dashboard with bigquery dataset as data source

The setup would look something like this:

Photo by Tri Eptaroka Mardiana on Unsplash

Say you want to set up a Horizontal Pod Autoscaler for your k8s deployment so it can scale nice and easy.
Everything is set up, your deployment is waiting for the HPA it needs in its life. You know by now from many debugging sessions that in order for HPA to work, you need to have all the containers in your pods to have resources defined like so:

- name: log-aggregator
memory: "64Mi"
cpu: "250m"
memory: "128Mi"
cpu: "500m"

Sounds nice, but will it actually scale?

Well if you are me, and you used “kubectl…

Photo by CJ Dayrit on Unsplash

If you need to cleanup your namespace resources based on a prefix and don’t want to do it manually, then this script I wrote is for you.

Note that this assumes you use a naming convention for your resources.

This will iterate through resources, in the right order ( as tested so far… ) to delete everything starting with that prefix.

Cristian Glavan

DevOps Engineer @ — Full-Stack Web Developer — Creative— Martial Artist — Curious — Lateral Thinking

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store