Professional Documents
Culture Documents
Cmds DEVOPS
Cmds DEVOPS
Cmds DEVOPS
on:
push:
branches: [ "master" ]
env:
AWS_REGION: ap-south-1
ECR_REPOSITORY: alpha-bucket
permissions:
contents: read
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.run_number }}
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
- name: Checkout code from GitHub to runner
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Substitute Values In Deployment Files
uses: cschleiden/replace-tokens@v1
with:
tokenPrefix: '${'
tokenSuffix: '}'
files: '["bucketdeploy.yml"]'
- name: Install kubectl
uses: azure/setup-kubectl@v3
- name: Update kube config
run: |
aws eks update-kubeconfig --name mycluster --region ${{ env.AWS_REGION }}
11-05-24
ARCH
uname
56 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get pods
--all-namespaces
58 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get pv
59 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get pvc
60 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get ns
61 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get pods
-n sonarqube
62 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get
deploy -n sonarqube
63 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get svc
-n sonarqube
64 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get
ingress -n sonarqube
65 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get pv -
n sonarqube
66 kubectl
--kubeconfig=/c/Users/Admin/Downloads/uxdl/wayfarers/kube/config.wayfarers get pvc
-n sonarqube
=============================
8-5-24
07-05-24
======if ubutu app installed from windows play store getting error
and cannot find file ext4.vhdx
C:\Users\Admin\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\
LocalState\ext4.vhdx
then
windows+x (admin )
suresh
6268
========06-05-24
******************
aws configure ====wayfarers
wayfarers
**************
kubectl --kubeconfig=C:\Users\Admin\Downloads\kube\config.wayfarers get pods --all-
namespaces
**************
check aws-cli,kubectl,eksctl,
======================================04-05-24
=== change namespace, arn ,host name , svc name, port no in file of sonarqube-
nginx-ingress.yml
====open browser === past host name == default login for sonar qube ==admin p :
admin === create 16 char strong password generator (from google)====== save host
name and paassword in drive ===first time
integrate sonar qube dash board with git hub app organisation
add SONAR_TOKEN and SONAR_HOST_URL in git hub repo settings === secrets
Create Workflow YAML File and paste in git hub repo ===commit and push
===========================================
05-02-24
===windows + x
===powershell admin
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
choco
install aws-cli
20-04-2024
=================================
Pulled: registry-1.docker.io/bitnamicharts/postgresql:15.2.5
Digest: sha256:cfe4da64afd9c72c06f718efe41de5dde0f68c86fab2e562069147bfb488279e
NAME: beta-postgresql
NAMESPACE: beta
STATUS: deployed
REVISION: 1
NOTES:
PostgreSQL can be accessed via port 5432 on the following DNS names from within
your cluster:
> NOTE: If you access the container using bash, make sure that you execute
"/opt/bitnami/scripts/postgresql/entrypoint.sh /bin/bash" in order to avoid the
error "psql: local user with ID 1001} does not exist"
To connect to your database from outside the cluster execute the following
commands:
WARNING: The configured password will be ignored on new installation in case when
previous PostgreSQL release was deleted through the helm command. In that case, old
PVC will have an old password, and setting it through helm won't take effect.
Deleting persistent volumes (PVs) will solve the issue.
WARNING: There are "resources" sections in the chart not set. Using
"resourcesPreset" is not recommended for production. For production installations,
please set the following values according to your workload needs:
- primary.resources
- readReplicas.resources
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-
containers/
=======================
mkdir oros
eval $(ssh-agent)
ssh-add ./oros (works fine) or ssh-add /Users/office/.ssh/uxdl
===================
15-04-2024
git bash commands
===on terminal
git init
git add -A
git commit -m "first commit"
git branch -M main
git status
git remote add origin https://github.com/suresh999333/work.git
git pull -v origin main
git push -u origin main
ls -la
102 cat askmesvc.yml === create a file
103 git add .
104 git add -A
105 git commit -m "push ask me"
106 git push -u origin main == works fine
==================
05-04-24
03-04-2024
insatll ubuntu from microsoft store
dpkg --print-architecture
amd64
ls -la
where kubectl
echo $PATH
sudo mv /home/suresh/bin/kubectl /usr/local/bin =====( path===/usr/local/bin )
=====install aws cli from aws docs ===not worked sudo sanp install aws-cli --
classic
01-04-2024
In Linux terminals, when files are displayed in green color, it typically indicates
that those files are executable.
or configuration files
dpkg --print-architecture
amd64
install kubectl
=========Linux is one of the first things you need to start while learning
DevOps.Here are some of the Linux commands that are useful:
===================================================================================
======================================
76 vi Dockerfile
FROM ubuntu:latest
=======================================
24-11-23 ==full red ubuntu app on ur pc
cat>index.html
<!DOCTYPE html>
<html>
<body>
</body>
</html>
3 vi basic.html
4 python3
5 python3 -m http.server 8000
=======================================================
20-11-23
google == openshift cli == copy link address of windows client == curl -LO
( oc.tar.gz ==link) == curl -O oc.tar.gz
pc == file exporer == download == extract here ==
echo $PATH
mv oc /usr/local/bin
sudo oc
oc
oc status
oc login --token=sha256~mVKvf13FbZhLfk0ClSNSVgV_6CodBw5R7VnZjncPMlw --
server=https://api.sandbox-m4.g2pi.p1.openshiftapps.com:6443
oc get svc
oc get deploy
oc get ns
oc get pods -A
===================
google ==download kubectl == extract here
echo $PATH
mv kubectl /usr/local/bin
export PATH=$PATH:/usr/local/bin
15-11-23
14-11-23
download
https://access.redhat.com/documentation/en-us/openshift_container_platform/4.13/
html/cli_tools/openshift-cli-oc
seach env edit system env var===env var== path ==edit ==new ==(git bash ==pwd )C:\
Users\Admin\Downloads (use /) ==save ==ok
git bash open == oc ==oc login ==( openshift sand box=== copy login command ====
dev sandbox==display token )
4-11-23
============================================
git remote -v
vi cm.yml
kubectl create -f cm.yml
kubectl get cm
vi env-deploy.yml
kubectl create -f env-deploy.yml
kubectl get pods
kubectl exec -it my-deploy-66975698d4-2zwqd -- /bin/bash
env | grep DB
477 vi vol-mount-deploy.yml
478 kubectl apply -f vol-mount-deploy.yml
env | grep DB
ls /opt
cat /opt/db-port | more
kubectl exec -it my-deploy-66975698d4-p8wj8 -- env | grep DB
kubectl exec -it my-deploy-66975698d4-p8wj8 -- ls /opt
kubectl exec -it my-deploy-66975698d4-p8wj8 -- cat /opt/db-port | more
=============================================================
03-11-23
service
name: (svc name)
-----------------------
kubectl get ingress
sudo vi /etc/hosts
ping foo.bar.com
====================================================================
31-10-23
sudo snap install kubectl --classic
sudo snap install amazon-ssm-agent --classic
sudo snap install helm --classic
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
30-10-23
===================
installing on git bash
google installing zsh on git bash
https://dominikrys.com/posts/zsh-in-git-bash-on-windows/
the MSYS2 package repository
https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
press on getmysys2
https://www.msys2.org/
msys2-x86_64-20231026.exe
install app from downloads
restart
search === UCRT64
pacman -S mingw-w64-ucrt-x86_64-gcc
================================================================
sh -c "$(curl -fsSL
https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
=================================================
29-10-2023
======================================
sudo netstat -tuln | grep 8899 ==== try on git bash terminal
==========================================
4 ls -la
5 sudo apt update
6 sudo apt list --upgradable
7 sudo apt install docker.io -y
8 docker --version
9 sudo usermod -aG docker ubuntu
10 logout
11 docker run hello-world
12 docker images
13 docker ps
14 docker ps -a
15 sudo systemctl docker status
16 sudo systemctl status docker
17 clear
18 git clone https://github.com/iam-veeramalla/Docker-Zero-to-Hero
20 ls -la
21 cd Docker-Zero-to-Hero/examples/python-web-app/
22 ls -la
2 CPUs or more
2GB of free memory
20GB of free disk space
install docker.io
Internet connection
34 vi deploy.yml
36 vi np-svc.yml
37 ls -la
38 cat Dockerfile
39 cat np-svc.yml
40 cat deploy.yml
46 ls -la
47 docker build -t 0428a861224e/demopyproject:v1 .
48 ls -la
49 docker images
minikube ip
curl -L http://192.168.49.2:30001/demo
=========================================================
25-10-23
======================================================
=============================------================
-------------------
kubectl delete svc (svc pod name) ====for deleting pods ==delete with any of (svc
or deploy or nodes or all)
minikube ssh
curl -L http:// pods ip:30,000 to 32,767/demo === depend on (defining in the
code)
==above on terminal
http:// pods ip:30,000 to 32,767/demo ====on browser
=== or
vi or vim lb-svc.yml
==========================================
minikube installation for learning purpose
curl -L https://storage.googleapis.com/minikube/releases/latest/minikube-linux-
amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube start
minikube status
===========================================
--------------------------
docker build -t
docker images
kubectl get pods -o wide
minikube ssh
curl -L http:// pods ip1 /8000/demo ====== if deploy pods are 2
vi simplepod.yml
18-10-23
=============================
1 ls -la
2 clear
3 curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-
linux-amd64
4 sudo install minikube-linux-amd64 /usr/local/bin/minikube
5 minikube start
6 sudo apt update
7 sudo snap install kubectl --classic
8 kubectl version --client
9 kubectl get nodes
10 kubectl get po -A
11 kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
12 kubectl expose deployment hello-minikube --type=NodePort --port=8080
13 kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
14 kubectl expose deployment hello-minikube --type=NodePort --port=8000
15 kubectl get services hello-minikube
16 minikube service hello-minikube
17 sudo apt update
18 sudo apt install docker.io -y
19 sudo systemctl status docker
20 sudo usermod -aG docker ubuntu
21 exit
22 docker run hello-world
23 docker images
24 minikube start
25 kubectl get nodes
26 vi simplepod.yml
27 kubectl create -f simplepod.yml
28 kubectl get pods
29 kubectl get pods -o wide
30 kubectl describe pod nginx
31 kubectl delete pod nginx
32 kubectl get pods -o wide
33 kubectl get pods
34 kubectl get nodes
35 kubectl apply -f simplepod.yml
36 kubectl get nodes
37 kubectl get pods -o wide
38 minikube ssh
39 kubectl describe pod nginx
40 kubectl logs nginx
41 cat>podtemplate.yml
42 cat podtemplate.yml
43 kubectl create -f pod podtemplate.yml
44 vi podtemplate.yml
45 kubectl create -f pod podtemplate.yml
46 cat>simple.yml
47 kubectl create -f simple.yml
48 kubectl get pods -o wide
49 kubectl describe pod hello-m7c4t
50 kubectl logs hello-m7c4t
51 kubectl logs nginx
52 cat>controllers/nginx-deployment.yaml
53 cat>nginx-deployment.yaml
54 kubectl create -f nginx-deployment.yaml
55 kubectl get pods -o wide
kubectl get pods -w ===to see how pods die and starts new pods (check with 2
tabs terminal)
56 kubectl get rs
57 kubectl describe deployments
58 kubectl logs deployments
59 kubectl set image deployment/nginx-deployment nginx=nginx:1.161
60 kubectl rollout status deployment/nginx-deployment
61 kubectl get rs
62 kubectl get pods -o wide
63 kubectl describe deployment
64 kubectl get rs
65 kubectl rollout history deployment/nginx-deployment
66 kubectl rollout history deployment/nginx-deployment --revision=2
67 kubectl rollout undo deployment/nginx-deployment
68 kubectl rollout undo deployment/nginx-deployment --to-revision=2
69 kubectl get rs
70 kubectl get deployment nginx-deployment
71 kubectl describe deployment nginx-deployment
72 history
=================================
2 ls -la
3 sudo apt update
9 python3 --version
10 sudo snap install aws-cli --classic
11 aws --version
12 sudo snap install kubectl --classic
16-10-23
----------------------
Check Disk Space on ec2 instance
df -h
----------------------
=====porting the container
python3 -m http.server 8000
-------------------------------------
===open ubuntu and connect to instance
git clone
cd Docker/example/first-docker
---------------------
vi Dockerfile
----------------------------------
docker ps
docker exec -it (cont id) /bin/bash
ls -la
12-10-23
================================
ls -la
================================================
2 ls -la
3 git --version
4 docker --version
5 sudo apt update
6 sudo apt list --upgradable
7 sudo apt install docker.io -y
8 sudo usermod -aG docker ubuntu
9 exit
10 ls -la
11 docker ps
12 docker run hello-world
13 docker ps
14 docker images
15 docker volume ls
16 docker network ls
08-10-23
Kubernetes Cluster Installation
nslookup api-myfirstcluster-k8s-lo-hqulii-3f5f7f4d6f65f5a4.elb.us-east-
1.amazonaws.com
07-10-23
minikube start
kubectl get po -A
kubectl get deployment
kubectl get svc
kubectl get pods
kubectl describe pod pod name
kubectl get nodes
kubectl get pods -o wide | grep minikube
kubectl get pods -o wide | grep pod name
minikube stop
minikube start
minikube config set memory 9001
minikube config view
minikube logs
minikube logs --problems
26-9-23
docker volume create suresh
23 docker volume ls
24 docker volume inspect suresh
25 docker volume rm suresh
23-9-23
========================
pwd
whoami
git --version
docker --version
docker login
docker build -t suresh:1 .
docker images
103 docker ps
docker run -it myfirstimage:1
doker run -it a0fcacea8d01 (cont id)
doker run -p 8000:8000 -it a0fcacea8d01 (cont id)
curl http://localhost:5000
=========================
to host ur public ip of an instance
security group inbound rules edit customtcp 5000 custom 0.0.0.0/0
======================
public ip
ubuntu advanced settings== advanced ==ssh authentication== private key ==.pem
kay attach
=========================
22-9-23
docker rm -rf images
sudo -i
sudo apt-get -y update && sudo apt install docker.io
service docker status
service docker start
sudo dockerd === docker daemon will start
19-9-23
1 ls -la
2 sudo apt update
3 sudo apt list --upgradable
4 sudo apt install docker.io -y
5 docker --version
6 docker run hello-world
7 sudo systemctl status docker
8 sudo usermod -aG docker ubuntu
9 logout
10 docker run hello-world
11 git clone https://github.com/iam-veeramalla/Docker-Zero-to-Hero
12 cd examples
13 ls -la
14 cd Docker-Zero-to-Hero/
15 cd examples/
16 ls -la
17 cd python-web-app/
18 ls -la
20 docker login
21 docker build -t abhishekf5/my-first-docker-image:latest .
22 docker images
23 docker run -it abhishekf5/my-first-docker-image
24 docker run python manage.py migrate
25 pwd
26 ls -la
27 docker push abhishekf5/my-first-docker-image
28 docker images
29 docker tag abhishekf5/my-first-docker-image 0428a861224e/suresh1:latest1
30 docker push 0428a861224e/suresh1:latest1
31 ls -la
103 ls -la
104 cd examples/
105 exit
106 cd Docker-Zero-to-Hero/
107 cd examples/
108 cd python-web-app/
130 docker ps -a
131 docker images -a
132 vi Dockerfile
133 cat Dockerfile
134 ls -la
-
137 docker build -t pyproject1 .
138 docker images -a
139 docker run -it dfb9d20b5ee1
140 docker run -p 8080:8080 -it dfb9d20b5ee1 94d1ce4037b3
1 ls -la
2 git --version
3 git clone https://github.com/iam-veeramalla/Docker-Zero-to-Hero
4 ls -la
5 cd Docker-Zero-to-Hero/
6 ls -la
7 cd examples/
8 ls -la
9 cd first-docker-file/
10 ls -la
11 cat Dockerfile
12 cd ..
13 ls -la
14 cd golang-multi-stage-docker-build/
15 ls -la
16 cd dockerfile-without-multistage/
17 ls -la
18 cat Dockerfile
19 go run calculator.go
20 sudo apt-get update -y && sudo apt install golang-gosudo apt install
golang-go -y
21 sudo apt-get update -y && sudo apt install golang-go -y
22 go run calculator.go
23 ls -la
24 cat Dockerfile
25 docker build -t simplecalculator .
26 sudo apt-get update -y && sudo apt install docker.io -y
27 docker images
Docker image ls -a
====to run python file create a folder and save as a filename.py ==run it
Download plugins from vs code max download check download
9-9-23
===To identify local while git push enter following cmds (in case of bit bucket)
7-9-23
tar --use-compress-program=unzstd -xvf zsh-5.9-2-x86_64.pkg.tar.zst
== how-to-switch-from-root-to-another-user-in-ubuntu-terminal
Whoami
Sudo -i or sudo su
cd /mnt
cd c cd users cd user ls –la cd Downloads
17-11-22
13-10-22
curl -o kubectl
https://s3.us-west-2.amazonaws.com/amazon-eks/1.23.7/2022-06-29/bin/darwin/amd64/
kubectl
chmod +x ./kubectl
====== maintain wayfr config file and kubectl file in one location
Aws configure
====================================================================
rm -i file name
===============
12-10-22
================================IMPORTANT
==========================
mkdir wayfr
Cd master
cd wayfr-be
npm i
for line in $(cat.env);do export $line; done
sequalize db:migrate
cd storelink
git push
cd wayfr-messenger
git push
cd wayfr-be
git push
DOCKER_IMAGE_NAME === suresh ==doc hub private repo name only and no tag
k8s_NAMESPACE ====default
k8s_USERNAME_PROD ====default
29-7-22
=============================================================================
==========To deploy the AWS Load Balancer Controller to an Amazon EKS cluster
======https://oidc.eks.us-east-1.amazonaws.com/id/6B95E28ED0CB6EE8079614A183BB6B28
====="Arn": "arn:aws:iam::185106119508:oidc-provider/oidc.eks.us-east-
1.amazonaws.com/id/6B95E28ED0CB6EE8079614A183BB6B28"
--attach-policy-arn=arn:aws:iam::185106119508:policy/AWSLoadBalancerControllerIAMPo
licy \
--approve
kubectl get pods -n kube-system =======check describe and logs pod if pod not
running
kubectl get nodes -n kube-system
kubectl get sa -n kube-system
============================================================================
26-7-22
====================================
while creating i am roles and user ==csv file generated for aws login access key
and value
create user and attach policies and download csv file(root key of aws login from
terminal)
ssh-keygen ===from terminal ==.ssh folder created with public and private keys
====bit bucket keys and .ssh keys of local and .ssh keys of instance
==== bitbucket personal settings === ssh==add keys == cat ~/.ssh/id_rsa.pub from
terminal == Lakeland key ==add key
===================================================================================
===========
====== pushing to docker hub private repo and hiding the password
===================================================================================
=============
=======18-7-22
==========================================================
=====check for cluster connected
crate cluster .yaml define one node group min 1 max 1 desired 1 once instance
region
setup ssh keys aws keys bitbucket keys ==== always disable root aws keys
git branch
git checkout alpha beta
use http for alpha beta, check port no in docker file and svc pods port should
be same
docker build
docker push
crate pods ===change image in pods
register in site
login
create load
check chart service
=======creating a private repo as wayfr in docker hub and pushing public repo in
local to docker hub private repo
=======14-7-22
============================
====pgadmin ======for checking register data on website through in pgadmin
===========================
====13-7-22
login into instance by ssh
cd storelink
git branch
git checkout dev01
vi environments.ts
=====netstat
=======--network=host == used for instance connected to internet
===========================
***************
cd redis
kubectl kustomize ./
vi redis-deploymentalpha.yaml
kubectl apply -k ./
kubectl get pods
************************
======
TlRPRjhVMWtCaw==%
helm ls -A
PostgreSQL can be accessed via port 5432 on the following DNS names from within
your cluster:
> NOTE: If you access the container using bash, make sure that you execute
"/opt/bitnami/scripts/postgresql/entrypoint.sh /bin/bash" in order to avoid the
error "psql: local user with ID 1001} does not exist"
To connect to your database from outside the cluster execute the following
commands:
============11-7-22
=========================================8-7-22
=========login in to instance
ls -la
git checkout develop / dev01
cd deployment
cd services
=======================
=========== 8-7-22
aws configure
AWSAccessKeyId=AKIASWGJPHNKMWFOT7WV
AWSSecretKey=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
security credentials
access key
download root key ====root key all permissions not required user permission
========To create your Amazon EKS cluster role in the IAM console
From the Use cases for other AWS services dropdown list, choose EKS.
Choose EKS - Cluster for your use case, and then choose Next.
For Role name, enter a unique name for your role, such as eksClusterRole.
For Description, enter descriptive text such as Amazon EKS - Cluster role.
========= 7-7-22
=====6-7-22
====
=====
Can't open file for writing
:q!
=============== 5-7-22
IAM USERS
1)AdministratorAccess
2)select all eks services
=========
git pull origin master --allow-unrelated-histories
git pull origin master
git pull --rebase origin master
git push -u origin master
=========
cd git init
git add .
git commit -m "first commit"
git status
git remote add origin https://wayfrdev3@bitbucket.org/wayfrdev3/fe-carrier-
connects.git
git push origin1 master --force
============ 15 -6-22
open terminal
open backend code or front end code
git add -A
git commit -m "cr azure"
open vs code
install azure app service
click a symbol
at resource + symbol
create web app
sign in to azure
u: m.suresh404@gmail.com
p: MANUsuri@999
======== 1-6-22
eb --version
aws --version
aws configure
AWS Access Key ID [None]: AKIAR2ATEQGMBDAAAZON
AWS Secret Access Key [None]: 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
Default region name [None]:
Default output format [None]:
eb create carrierconnectsalpha-env
eb create/status/health/events/logs/open/deploy/config/terminate
export PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/
hedongfang/.rvm/gems/ruby-2.0.0-p643/bin:/Users/hedongfang/.rvm/gems/ruby-2.0.0-
p643@global/bin:/Users/hedongfang/.rvm/rubies/ruby-2.0.0-p643/bin:/usr/local/bin:/
usr/bin:/bin:/usr/sbin:/sbin:/Users/hedongfang/.rvm/bin:/System/Library/
Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages"
export MANPATH="/usr/local/man:$MANPATH"
export PATH=/usr/local/lib/python3.9/site-packages:$PATH
export PATH=LOCAL_PATH:$PATH
source ~/PROFILE_SCRIPT
eb --version
aws --version
aws configure
AWS Access Key ID [None]: AKIAR2ATEQGMHDMDAEHM
AWS Secret Access Key [None]:
Default region name [None]:
Default output format [None]:
mkdir node-express
cd node-express
express && npm install
git init
cd node_modules
vi .gitignore
cd ..
eb terminate
====asks env name was site search ebs ===node-express-env ==
==========26-5-22
export PATH=/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-
packages:$PATH or
=======================
ls -a
vi .bash_history
sh -c "$(curl -fsSL
https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
==========================
use DATABASE_NAME
use mydb
db
show dbs
db.movie.insert({"name":"tutorials point"})
show collections
db.inventory.find( {} )
cd FEcode
docker build -t fetest:201 .
docker run -d -p 8080:8080 fetest:201 or
cd deployment
cd services
docker ps
docker ps -a
cd BEcode
cd BEcode
docker build -t betest:201 .
docker run -d -p 3000:3000 betest:201 or
cd deployment
cd services
docker ps
docker ps -a
docker ps
psql -U postgres
\l
\d
\c subscribers
select * from subscribers; === for showing inserted data in the Data base
cd BEcode
cd BEcode
vi .env
DB_HOST=localhost
sequelize db:migrate
=================
docker ps -a
docker container start container id ====if u r container is exited
=================== 24-5-22
\dt
After you identified the table you want to query you can call any select, update or
delete statement you like, e.g.:
===========================
minikube update-check
kubectl cluster-info =====check if I have kubectl is installed
or not
kubectl cluster-info dump ======To further debug and diagnose cluster
problems
docker ps -a -q
docker container ls
docker image ls
or
docker container ls -a
docker image ls
docker container rm <container_id>
docker image rm <image_id>
=================================
docker system prune -a
WARNING! This will remove:
18-4-22
===== betest:4
========13-4-2022
=======creating nginx pod and starting nginx svc and exposing to local host
kubectl run nginx --image=nginx --port=80 --restart=Never
kubectl expose pod nginx --type=NodePort
kubectl get nodes
kubectl get pods
kubectl get svc
docker images
docker pull ubuntu
docker images
docker ps
docker exec -it some-postgres bash ===login to container
su postgres
psql
\conninfo
\q
exit
exit
=======12-4-2022
docker run -itd --name (cont name) -p 60:80 alpine (image name)
============================
code Dockerfile
notepad Dockerfile === to check the file
minikube update-check
cls ==== to clear the screen
=============================errors
Instance deployment failed to build the Docker image. The deployment failed.
During an aborted deployment, some instances may have deployed the new application
version
Instance ELB health state has been "OutOfService" for 3 days: Instance has failed
at least the UnhealthyThreshold number of health checks consecutively.
===6-7-22
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/npm failed, reason: getaddrinfo
EAI_AGAIN registry.npmjs.org