Posts

Openshift oc Project deletion struck in Terminating

You can try to delete the namespace with a  curl  command to Openshift API: 1.  Get namespace status into json file: oc get namespace $NS_TO_DELETE -o json > tmp_ns.json 2.  Remove the line with "kubernetes" (under "finalizers"): vi tmp_ns.json 3.  Open proxy connection to your cluster (as a background process) oc proxy & 4.  Push the json content to your cluster with curl: curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp_ns.json http://127.0.0.1:8001/api/v1/namespaces/$NS_TO_DELETE/finalize 5.  your-namespace should be gone now: oc get namespace $NS_TO_DELETE # namespaces not found 6.  Switch to the background process ( fg ) of the Proxy and stop it (Ctrl+c), or directly with: kill -9 %% Note:  If you have  jq  installed, you can run steps 1 & 2 by:  oc get namespace $NS_TO_DELETE -o json | jq '.spec = {"finalizers":[]}' > tmp_ns.json

A visual guide on troubleshooting Kubernetes deployments

https://learnk8s.io/troubleshooting-deployments  

Invalid IngressClass (Spec.Controller) value "ingress-nginx-controller". Should be "k8s.io/ingress-nginx"

helm repo add ingress-nginx  https://kubernetes.github.io/ingress-nginx helm repo update helm install ingress-nginx ingress-nginx/ingress-nginx --set controller.ingressClass=ingress-nginx

Import Grafana Dashboard helm chart

grafana /values.yaml dashboardProviders :   dashboardproviders.yaml :     apiVersion : 1     providers :    - name : 'default'       orgId : 1       folder : ''       type : file       disableDeletion : false       editable : true       options :         path : /var/lib/grafana/dashboards/default dashboards :   default :     easyconnectjvm :       file : dashboards/<dashboard>.json       datasource : Prometheus Dashboards is in grafana chart folder

Mermaid Live Editor - Mermaid lets you create diagrams using text and code.

Image
https://mermaid-js.github.io/mermaid/#/ https://mermaid-js.github.io/mermaid-live-editor/#/

list-of-devops-blogs-and-resources

https://devopscube.com/list-of-devops-blogs-and-resources/  

GitHub - tomhuang12/awesome-k8s-resources: A curated list of awesome Kubernetes tools and resources.

https://github.com/tomhuang12/awesome-k8s-resources