git clone https://github.com/xxxxxx/MyMSA
cd
git clone https://github.com/nowage/dockers
cd
cp -r dockers/nginx2/ MyMSA/mynginx
cd MyMSA/mynginx/
docker build --rm -t xxxxxx/mynginx:0.1 .
docker images |grep myn
- MyMSA/mynginx/README.md에 usage 업데이트
docker run -d --name n1 -p 8888:80 nowage/mynginx:0.1
curl localhost:8888
docker rm -f n1
docker login
docker push xxxxxx/mynginx:0.1
kubectl create deploy --image=nowage/mynginx:0.1 n1
kubectl expose deploy n1 --type="NodePort" --port 80
kubectl get deploy n1 -o yaml > n1_deply.yaml
kubectl get service n1 -o yaml > n1_xvc.yaml
cp n1*.yaml ~ubuntu/
chown ubuntu ~ubuntu/n1*.yaml
kubectl delete svc n1
kubectl delete deploy n1
- console로 yml파일 가져 오기.[실습용 Console서버에서 구현.]
cd ~/MyMSA
cd n1
mkdir n1
cd n1
scp vm01:/home/ubuntu/n1*.yaml ./
- github로 push
git add -A
git commit -m "initial commit"
# git config --global user.name "Steve J. South(NamJungGu) "
# git config --global user.email "nowage@gmail.com"
git commit -m "initial commit"
git push
- Namespace생성
kubectl create namespace n1
- argocd UI접근해서