Image by Aubrey Odom

In one terminal run the command below:

➜  ~ kubectl proxy

Open another terminal tab then dump the descriptor as JSON to a file


➜  ~ kubectl get namespace litmuschaos -o json > litmuschaos.json

Remove the content of the finalizers array and leave it empty or do this command below

➜  ~ kubectl get namespace "litmuschaos" -o json \| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \| kubectl replace --raw /api/v1/namespaces/litmuschaos/finalize -f -

Then execute the cleanup command to get deleted the annoying namespace:

curl -k -H "Content-Type: application/json" -X PUT — data-binary @logging.json

Check the result with the command below

➜  ~ kubectl get namespaces

Image by @brett_jordan

Practice Environment setup

Let's go to practice environment setup. Firstly, you will need to deploy Argo CD from Helm Chart to have an automated minimum continuous delivery project for Litmus Portal. Do these commands below 🥷🏻

➜  ~ kubectl create namespace argocd
➜ ~ kubectl apply -n argocd -f
➜ ~ kubectl port-forward svc/argocd-server -n argocd 8080:443

Remember ✍🏼 : Reset Argo CD UI user password

➜  ~ kubectl patch secret -n argocd argocd-secret \                                                          -p '{"stringData": { "admin.password": "'$(htpasswd -bnBC 10 "" NEW-PASSWORD-HERE | tr -d ':\n')'"}}'

Create a new app for Litmus on Argo CD using these configuration parameters below

Image by @exdigy

Similar as we can set resource limits on Kubernetes Cluster, we can (and should) do the same thing on Docker. A container without limitations can eventually use all the CPU, memory and have access to all the resources on the Docker host or Swarm Cluster, and it can potentially starve on processes and resources. In this article, I’ll show you how to set up Docker resources limits, in order to avoid things like that.

Working with a container memory limit

While starting up a container using the run command, we can specify some options to limit the memory usage using the –memory flag. The amount of…

Richardson Lima

A brain dump about SRE, DevSecOps, DevOps, Kubernetes, Infrastructure as a code and Cloud

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