# One_step_deployment <h2 id="k3s-Service">部署應用系統</h2> - ### 一鍵部署 > kubectl apply -f . ``` deployment.apps/httpd created horizontalpodautoscaler.autoscaling/hpa-sp created service/svc-sp created pod/sqldb created service/service created ``` <h2 id="cheak-yml">檢查是否成功啟動</h2> > kubectl get all ``` NAME READY STATUS RESTARTS AGE pod/ sqldb 1/1 Running 0 7m29s pod/httpd-5fd6d6d694-8rdvx 1/1 Running 0 7m29s pod/httpd-5fd6d6d694-fjp8l 1/1 Running 0 7m29s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR service/kubernetes ClusterIP 172.30.0.1 <none> 443/TCP 2d9h <none> service/service ClusterIP 172.30.0.181 <none> 3306/TCP 6m44s app=sql service/svc-sp ClusterIP 172.30.0.180 120.96.143.50 8080/TCP 7m29s NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/httpd 2/2 2 2 7m29s NAME DESIRED CURRENT READY AGE replicaset.apps/httpd-5fd6d6d694 2 2 2 7m29s NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE horizontalpodautoscaler.autoscaling/hpa-sp Deployment/httpd 3%/30% 2 6 2 7m29s ``` --- **[上一頁 - ]()** **[下一頁 - ]()**
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up