Followers

Thursday, November 12, 2020

how to Install Helm

Step1:

Download Script file from repo

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3

Step2:

Update the run permissions

chmod 700 get_helm.sh

Step3:

Run the script

./get_helm.sh


Monday, November 2, 2020

Install kubectl client in to local ubuntu


Step1:

 curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"

Step2:

chmod +x ./kubectl

Step3:

sudo mv ./kubectl /usr/local/bin/kubectl

Step4:

kubectl version --client



Wednesday, October 14, 2020

How to push your local project folder to git remote repo

 How to push your local project folder to git


When you have your local project, and if you want to push that to remote git, please follow the below instructions.


step1:

    Navigate to the Project folder. I have my project folder under C:\CICD

    open command prompt --> run 

    cd c:\CICD\exmaplepush

Step2:

    Now we need to run the project initialization command.

    git init

step3:

    add all your local files to the local repo.

    git add * or git add . or git add all

step4:

    Commit all added files to a local folder.

    git commit -m "all files commit"

step5:

    Now add the project to the remote repo.

    git remote add origin <remote_reop folder path>

    ex: https://<git.username>@gitlab.com/<git.username>/exmaplepush

step6:

    In the final step, we are pushing to a remote location.

    git push origin master





Saturday, May 16, 2020

how to rename branch in gitlab


git checkout feature
git branch -m feature-backup
git push origin :feature feature-backup
git push origin -u feature-backup