Showing posts from July, 2019

How to install python 3.7 in ubuntu Linux guru

How to install python 3.7 in ubuntu. Python is a most populer programing language in the world, Also python is a fastes growing progaming language. Python is very versatile language so you can easily learn and understand python The latest version of python is 3.7. In ubuntu 18.04 python version 2 and 3.6 are pre installed. apt update apt install software-properties-common add-apt-repository ppa:deadsnakes/ppa Enter to continue. sudo apt install python3.7 Check the python version. python3.7 --version how to set python3 as default in ubuntu. A simple way to set latest python version in ubutu is to set it in .bashrc file as if alias, Create an alias of latest python version and put it in .bashrc. open .bashrc and set create an alias for python. alias python=python3.7 save the file and restart the terminal. You you can check with python command, it will show latest version of python. ❯ python --version Python 3.7.4

Basic Git Commands Linux Guru

Git Commands image courtesy git-scm Here are some git command list which are comes in daily use. Creating and Cloning : commands use git init create and initialize local git repository git clone REPO_URL Clone remore repo git remote add origin REPO_URL add remote repository. git config-global my-name set author name git config-global my-email set author email Basic git commands :  commands use git status check the current state of repository git add . Add all the files to staging area repository git add vishal.txt add perticular file to the staging area repository git commit -m "commit message" commit files git pull pull the latest code from repo git pull origin remote-branch pull the latest code from the remote branch git push remember branch push git push -u origin branch_name push code to the remote branch git diff branch1 branch2 show different between tw

Kubernetes secret - Linux Guru

Store a directory in a kubernetes secret Here you will learn how to add directory in kubernetes secret and mount it on each pods. Secrets can be defined as Kubernetes objects used to store sensitive data such as user name and passwords with encryption. In order to create secrets from a text file such as user name, password and keys, we first need to store them in particular folder and use the following command. Create kubernetes secrets from a directory : Make sure you are connected to cluster first. suppose you want to upload secret from .config folder and all the env and secret files under it. kubectl create secret generic secret-name --from-file=.config Update, add or change existing secret (Optional): If you have running secret in kubernetes and want to update some secret passwords or add new secret.e kubectl create secret generic secret-name --from-file=.config --dry-run -o yaml | kubectl apply -f - Once we have created the secrets, it can be consum