Clearing the OpenShift log data using the curator pod (OpenShift 3.6)

openshift

In our test OpenShift cluster, we had this space problem with the infra node. See the numbers below. Previously: Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 50G 2.0G 49G 4% / devtmpfs 7.8G 0 7.8G 0% /dev /dev/sdd2 50G

Read More Clearing the OpenShift log data using the curator pod (OpenShift 3.6)

SonarQube 6.5 Resetting admin Password on CentOS7

Install pgAdmin on centos7 (GNOME environment) – yum install pgadmin4-desktop-gnome check the config file of sonarqube – /opt/sonarqube/conf/sonar.properties – sonar.jdbc.url=jdbc:postgresql://localhost/sonar – sonar.jdbc.username=sonar – sonar.jdbc.password=Password1 start pgAdmin by simply running “pgadmin4” command OR Applications -> Programming -> pgAdmin 4 Under Quick

Read More SonarQube 6.5 Resetting admin Password on CentOS7

Cannot resolve reference to bean ‘entityManagerFactory’ while setting constructor argument

spring transactional annotation

If you have encountered this problem while you are configuring Spring Data JPA repositories in your application, you are not alone. Don’t be afraid, there is a simple solution for that. Let me provide you a piece of code that

Read More Cannot resolve reference to bean ‘entityManagerFactory’ while setting constructor argument

Adding a New User to OpenShift with HTPasswd Identity Provider

openshift

There are various identity providers that can be used with OpenShift. In this post, I will mention HTPasswd identity provider and how you can manage your users with it. First, if you don’t know which identity provider is used in your cluster

Read More Adding a New User to OpenShift with HTPasswd Identity Provider

Here is a little awk hack for linux command history

If you are using a Linux distro and you use the command line a lot,  this little awk trick will show you your most used commands so that you can create aliases for them leading to an increase in your

Read More Here is a little awk hack for linux command history

Spring AOP, @Transactional Annotation and Proxying

spring transactional annotation

Spring, by default, uses runtime weaving (unlike AspectJ – see this) for aspects. In runtime weaving, a proxy class is generated for your “adviced” classes and they are decorated with the advices at runtime. @Transaction annotation works the same way. In

Read More Spring AOP, @Transactional Annotation and Proxying


Problem Installing OpenShift-cli on MacOS Mojave

installing openshift-cli on macos

Today, after upgrading to MacOS Mojave I wanted to also upgrade my Minishift installation and OpenShift-cli. Upgrading Minishift was quite straightforward but when I tried to install OpenShift-cli using homebrew I got the following error message: brew install openshift-cli – Error: Failure while

Read More 
Problem Installing OpenShift-cli on MacOS Mojave

Magic Command to Clear All Those Annoying Pods in Your OpenShift Cluster

openshift persistent volumes

Sometimes your PODs may get stuck in UNKNOWN, PENDING, TERMINATING etc. states. These PODs seem to have the durability to live forever and contaminate your compute nodes. When you try to delete them, sometimes the command line will say that the POD

Read More Magic Command to Clear All Those Annoying Pods in Your OpenShift Cluster

The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required .class files

If you have encountered this annoying error in Eclipse you are in luck. Here I will be telling you how to fix it! First, right-click the project in Project Explorer and click Properties: On the Properties screen type “build” and

Read More The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required .class files

Introduction to Persistent Storage In OpenShift

openshift persistent volumes

Not all the containers in your cluster will be non-persistent or ephemeral. Most of the time you will need persistent containers running all around the place to hold some sort of data. To store the data independent of the lifetime

Read More Introduction to Persistent Storage In OpenShift