123
Deploying the app
在前面的章節中,我們構建了應用程式的映像並設置了部署環境。現在讓我們將應用程式部署到我們配置的 Kubernetes 叢集上。
Preparing the repository
更新包含應用程式的現有倉庫
cd ~/werf-guide/app
# To see what changes we will make later in this chapter, let's replace all the application files
# in the repository with new, modified files containing the changes described below.
git rm -r .
cp -rf ~/werf-guide/guides/examples/basic/002_deploy/. .
git add .
git commit -m WIP
檢查
Deploying to Kubernetes
werf converge
命令會構建應用程式並將其部署到 Kubernetes:
#
werf converge --repo jeff/werf-guide-app
部署完之後可以curl request看有沒有成功
curl http://werf-guide-app.test/ping
pong