Best practices in creating a Dockerfile – build docker images

The Dockerfile is a very simple to understand format containing of Statements often referred to as Docker DSL(Domain Specific Language), It tends to become quiet complex and difficult to understand over the time. [vamshi@docker01 ~]$ cat Dockerfile # Dockerfile which runs a Latest Ubuntu image and sleeps for 100 seconds FROM ubuntu:18.04 LABEL maintainer=”vamshi” version=”1.0.0″ … Read more

How to Create Endpoints for external services in Kubernetes

The endpoints in kubernetes are the mechanism that directly interact and implement the Kubernetes Service The Endpoints are underlying mechanism which are created in the background and enable us to talk to the kubernetes Services. As we know that by creating a Kubernetes service we automatically generate the FQDN with the help of core-dns services … Read more

Create a new kubernetes user with custom kubeconfig auth

The important directories in the reckoning are The file ca.key and ca.crt are the Certificate Authority key and certificate respectively. STEP 1: Generating the key and .csr(Certificate Signing Request) Lets now generate the .key and .csr. certificates for 1 year with openssl: [root@node01 ssl]# openssl req -new -sha256 -newkey rsa:2048 -nodes -keyout builduser01.key -days 365 … Read more

kubernetes bash completion

Wouldn’t it be great when we are using kubernetes and just tab to get a list of possible subcommands? We have the extended facility to automatically tab and get the kubectl command suggestions, This feature is inbuilt into the and , All we need to just extract the script and enable it to the and … Read more

Kubernetes installation on Centos

Kubernetes is a Orchestration mechanism for running your container infrastructure on linux based machines. In this tutorial we will be looking at the server based kubernetes installation on centos7 linux server OS. Installing the kubernetes minimum requirements Have 2 CPU cores with 2 GB or more RAM. Have the swap memory disabled. The swap memory … Read more

Install java on Linux centos

In this tutorial we will quickly setup java on linux centos, We will be using the yum command to download the openjdk 1.8 and install [vamshi@node01 ~]$ sudo yum install java-1.8.0-openjdk.x86_64 We have installed the java openjdk 1.8 and we can check the version using java -version [vamshi@node01 ~]$ java -version openjdk version “1.8.0_252” OpenJDK … Read more