Posts

Showing posts from 2021

CKA Exam Sample

https://youtube.com/playlist?list=PL6nVblW4NNAQrgSjhT8iK_v7ROIV2ikVu

Visualise Ansible execution time across playbooks, tasks, and hosts.

https://github.com/mhansen/ansible-trace?ref=FAUN-DevOpsLinks291  

How to convert k8s yaml to helm chart - Stack Overflow

https://stackoverflow.com/questions/56630871/how-to-convert-k8s-yaml-to-helm-chart  

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  

GitHub - ahmetb/kubernetes-network-policy-recipes: Example recipes for Kubernetes Network Policies that you can just copy paste

https://github.com/ahmetb/kubernetes-network-policy-recipes  

rpmdb: Thread died in Berkeley DB library

ISSUE: error: rpmdb: BDB0113 Thread/process 2211/140737353943104 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db5 -  (-30973) error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Solution: mkdir /var/lib/rpm/backup cp -a /var/lib/rpm/__db* /var/lib/rpm/backup/ rm -f /var/lib/rpm/__db.[0-9][0-9]* rpm --quiet -qa rpm --rebuilddb yum clean all

Kubernetes Ingress Controllers

https://docs.google.com/spreadsheets/d/191WWNpjJ2za6-nbG4ZoUMXMpUK8KlCIosvQB0f-oq3k/htmlview#gid=907731238

Install of Docker-CE in LXC unprivileged container in Proxmox

Image
create an unprivileged LXC container in Proxmox based on the the template of your choice apt-get update & apt-get upgrade (eventually 2x if you get an « unable to fetch some archives… » message in the end) install curl if it was not provided by the distribution curl -fsSL  https://download.docker.com/linux/  179 <your_distro>/gpg | sudo apt-key add - where <your_distro> is "debian" or "ubuntu" or whatever (altough I didn't test the others) edit /etc/apt/sources.list and add the appropriate repository from docker : deb [arch=amd64]  https://download.docker.com/linux/debian  60  stretch stable deb [arch=amd64]  https://download.docker.com/linux/ubuntu  54  xenial stable apt-get update apt-cache policy docker-ce to ensure that a package for docker-ce is available apt-get install docker-ce systemctl status docker should return « Active (running) » In case not (trick  #1 ), work around the systemd bug by adding an "ExecStartPre=" to containe...

IBM Cloud Pak for Data WKC "Redis store is not available"

The redis error is coming out of catalog-api pod. Please restart following pods: redis-ha-haproxy* oc delete pod -n <project> -l app=redis-ha dc-main* portal-catalog-* catalog-api-* wkc-gov-ui*

IBM IIS 11.5.0.2 SP6 Update installer - Exception in thread "main" java.lang.NoSuchMethodError: org/eclipse/jetty/util/ssl/SslContextFactory$Server.setEndpointIdentificationAlgorithm(Ljava/lang/String;)V

Issue: [root@infosvr bin]# ./installUpdates INFO: Patch Installation program will be running in this session, please do not close patch installation window until patch installation program completes. The Update installation program started at 1/27/21 10:21 AM. Exception in thread "main" java.lang.NoSuchMethodError: org/eclipse/jetty/util/ssl/SslContextFactory$Server.setEndpointIdentificationAlgorithm(Ljava/lang/String;)V (loaded from file:/opt/IBM/InformationServer/Updates/server/lib/jetty-util-9.4.19.v20190610.jar by java.net.FactoryURLClassLoader@d4db3a4a) called from class org.eclipse.jetty.util.ssl.SslContextFactory$Server (loaded from file:/opt/IBM/InformationServer/Updates/server/lib/jetty-util-9.4.19.v20190610.jar by java.net.FactoryURLClassLoader@d4db3a4a).         at org.eclipse.jetty.util.ssl.SslContextFactory$Server.<init>(SslContextFactory.java:2213)         at com.ibm.is.install.ui.web.JettyWebContainer.init(JettyWebContainer.java:91)         at com.ibm.is....

SQL1072C The request failed because the database manager resources are in an inconsistent state.

Issue: SQL1072C  The request failed because the database manager resources are in an inconsistent state.  The database manager might have been incorrectly terminated, or another application might be using system resources in a way that conflicts with the use of system resources by the database manager. SQL1072C  The request failed because the database manager resources are in an inconsistent state.  The database manager might have been incorrectly terminated, or another application might be using system resources in a way that conflicts with the use of system resources by the database manager. Answer To resolve this error run the following commands: 1) cd to $INSTHOME/sqllib 2) Delete the .ftok file: 'rm .ftok' 3) Create a new .ftok file: 'touch .ftok' 4 ) db2start