- Source ~/pyvirtual/bin/activate
 
- cat /etc/resolv.conf 
 
- cat /etc/resolv.conf 
 
- ssh -i ~/.ssh/centos.pem centos@10.10.1.4
 
- chmod 600 ~/.ssh/centos.pem 
 
- Curl ifconfig.co
 
- ssh -i ~/.ssh/centos.pem centos@10.10.1.4
 
- ssh -i ~/.ssh/centos.pem centos@10.10.1.5
 
- curl -H Host:sit0.cardinaldev.io https://10.1.0.10 -k
 
- curl -H Host:sit0.cardinaldev.io https://10.1.0.10 -kL
 
- curl -H Host:sit0.cardinaldev.io https://10.2.0.10 -kL
 
- ansible --version
 
- which pip
 
- pip install openshift
 
- sudo pip install openshift
 
- source ~/pyvirtual/bin/activate
 
- sudo pip install openshift
 
- git pull
 
- env | grep VAULT
 
- ansible-playbook main.yml -l openshift -t grafana
 
- pbpaste > $ANSIBLE_VAULT_PASSWORD_FILE
 
- cat $ANSIBLE_VAULT_PASSWORD_FILE
 
- pbpaste > $ANSIBLE_VAULT_PASSWORD_FILE
 
- cat $ANSIBLE_VAULT_PASSWORD_FILE
 
- ansible-playbook main.yml -l openshift -t grafana
 
- ansible-playbook project.yml -t prime_apis -t pods -t configmaps -l uat --vault-password-file=~/le_vault -e container_version=0.2.0-SNAPSHOT-1745
 
- docker pull jaegertracing/jaeger-cassandra-schema:1.2
 
 
- docker tag jaegertracing/jaeger-cassandra-schema:1.2 
 
 
- docker-cardinal.repo.cardinaldev.io/jaegertracing/jaeger-cassandra-schema:1.2
 
 
- docker push docker-cardinal.repo.cardinaldev.io/jaegertracing/jaeger-cassandra-schema:1.2
 
 
- kubectl apply -n kube-system -f \ "https:/cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 |tr -d '\n')"
 
- terraform init
 
-  terraform get -update=true
 
-  terraform plan
 
-  terraform apply
 
- git pull
 
- git status
 
- git diff
 
- git reset --hard
 
- docker build -t mytest_may1102:24 .
 
-  docker images
 
-  docker run -it mytest_may1102
 
-  docker run -it mytest_may1102 /bin/bash
 
-  
docker run -it mytest_may1102:24 
-  docker ps -a
 
-  docker start 48be24949e5a
 
-  docker exec -it 48be24949e5a /bin/bash
 
-  docker ps -a
 
-  docker start 48be24949e5a
 
-  docker exec -it 48be24949e5a /bin/bash
 
 
 
Very Useful commands in Devops Areas
 
              Reviewed by 
pradeep
              on 
              
June 12, 2018
 
              Rating: 
5
 
               
            
 
 
 
 
            
          
 
 
 
 
 
No comments: