This commit is contained in:
duanyingluo
2020-02-13 23:27:36 +08:00
parent 2b596fc22f
commit ca4c5128db
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ You can download and install the ktctl from [Downloads And Install](https://rdc-
### Deploy a service in Kubernetes
```
$ kubectl run tomcat --image=tomcat:7 --expose --port=8080
$ kubectl run tomcat --image=tomcat:9 --expose --port=8080
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
service/tomcat created
deployment.apps/tomcat created
+3 -3
View File
@@ -1,11 +1,11 @@
# Quick Start Guide
In this chapter, we will deployment a sample app(tomcat:7) in Kubernetes cluster. With Kt to access the app from user labtop or exchange the request to user labtop.
In this chapter, we will deployment a sample app(tomcat:9) in Kubernetes cluster. With Kt to access the app from user labtop or exchange the request to user labtop.
## Create a Demo APP in Cluster
``` shell
$ kubectl run tomcat --image=tomcat:7 --expose --port=8080
$ kubectl run tomcat --image=tomcat:9 --expose --port=8080
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
service/tomcat created
deployment.apps/tomcat created
@@ -13,7 +13,7 @@ deployment.apps/tomcat created
# Deployment info
$ kubectl get deployments -o wide --selector run=tomcat
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE CONTAINERS IMAGES SELECTOR
tomcat 1 1 1 1 12m tomcat tomcat:7 run=tomcat
tomcat 1 1 1 1 12m tomcat tomcat:9 run=tomcat
# Pods info
$ kubectl get pods -o wide --selector run=tomcat