Skip to main content


Kubernetes cluster installation using kubeadm

  On Both Master and Slave Nodes Install docker following  Official Docker Installation Guide Switch to root user sudo su - Change docker cgroup driver cat > /etc/docker/daemon.json <<EOF { "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "log-opts": { "max-size": "100m" }, "storage-driver": "overlay2" } EOF systemctl daemon-reload systemctl restart docker Update the  apt  package index and install packages needed to use the Kubernetes  apt  repository: sudo apt-get update sudo apt-get install -y apt-transport-https ca-certificates curl Download the Google Cloud public signing key: sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg Add the Kubernetes  apt  repository: echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] kubernete

Set the time zone on an Amazon EC2 instance

We can set the timezone on an Amazon EC2 instance to CST by using following steps: Login to your EC2 instance. Execute the command: “sudo su” to become a root user. Execute the command: “timedatectl” to know the current timezone details. Execute the command: “rm /etc/localtime” ( Press Enter). For confirmation type “Y” and Press Enter. Execute the command: “cd /usr/share/zoneinfo” (Press Enter). Execute the command: “ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime” (Press Enter). Now check the timezone by using “timedatectl” command. That’s it. Timezone changed to CST successfully.(No need to reboot) Reference:

installing oracle jdk on linux

1. sudo apt-get purge openjdk-\* 2. sudo mkdir -p /usr/local/java 3. sudo cp -r jdk-7u45-linux-x64.tar.gz /usr/local/java 4. cd /usr/local/java 5. sudo tar xvzf jdk-7u45-linux-x64.tar.gz 6. sudo gedit /etc/profile OR sudo nano /etc/profile 7. In the /etc/profile Type/Copy/Paste:   JAVA_HOME=/usr/local/java/ jdk1.8.0_152   JRE_HOME=$JAVA_HOME/jre   PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin   export JAVA_HOME   export JRE_HOME   export PATH 8. sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_152/jre/bin/java" 1 9. sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_152/bin/java" 1 10. sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.8.0_152/jre/bin/javaws" 1 11. sudo update-alternatives --set java /usr/local/java/jdk1.8.0_152/jre/bin/java 12. sud