forked from LaconicNetwork/kompose
+3
-52
@@ -54,20 +54,7 @@ INFO Kubernetes file "redis-master-deployment.yaml" created
|
||||
INFO Kubernetes file "redis-slave-deployment.yaml" created
|
||||
```
|
||||
|
||||
Alternatively, you can convert and deploy directly to Kubernetes with `kompose up`.
|
||||
|
||||
```sh
|
||||
$ kompose up
|
||||
We are going to create Kubernetes Deployments, Services and PersistentVolumeClaims for your Dockerized application.
|
||||
If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead.
|
||||
|
||||
INFO Successfully created Service: redis
|
||||
INFO Successfully created Service: web
|
||||
INFO Successfully created Deployment: redis
|
||||
INFO Successfully created Deployment: web
|
||||
|
||||
Your application has been deployed to Kubernetes. You can run 'kubectl get deployment,svc,pods,pvc' for details.
|
||||
```
|
||||
Then you can use `kubectl apply` to create these resources in kubernetes.
|
||||
|
||||
|
||||
__Access the newly deployed service:__
|
||||
@@ -163,24 +150,7 @@ INFO OpenShift file "redis-slave-imagestream.yaml" created
|
||||
|
||||
Alternatively, you can convert and deploy directly to OpenShift with `kompose up --provider=openshift`.
|
||||
|
||||
```sh
|
||||
$ kompose up --provider=openshift
|
||||
INFO We are going to create OpenShift DeploymentConfigs, Services and PersistentVolumeClaims for your Dockerized application.
|
||||
If you need different kind of resources, use the 'kompose convert' and 'oc create -f' commands instead.
|
||||
|
||||
INFO Deploying application in "myproject" namespace
|
||||
INFO Successfully created Service: frontend
|
||||
INFO Successfully created Service: redis-master
|
||||
INFO Successfully created Service: redis-slave
|
||||
INFO Successfully created DeploymentConfig: frontend
|
||||
INFO Successfully created ImageStream: frontend
|
||||
INFO Successfully created DeploymentConfig: redis-master
|
||||
INFO Successfully created ImageStream: redis-master
|
||||
INFO Successfully created DeploymentConfig: redis-slave
|
||||
INFO Successfully created ImageStream: redis-slave
|
||||
|
||||
Your application has been deployed to OpenShift. You can run 'oc get dc,svc,is,pvc' for details.
|
||||
```
|
||||
Then you can use `kubectl apply` to create these resources in OpenShift cluster.
|
||||
|
||||
__Access the newly deployed service:__
|
||||
|
||||
@@ -299,26 +269,7 @@ INFO OpenShift file "redis-slave-deploymentconfig.yaml" created
|
||||
INFO OpenShift file "redis-slave-imagestream.yaml" created
|
||||
```
|
||||
|
||||
Alternatively, you can convert and deploy directly to OpenShift with `kompose up --provider=openshift`.
|
||||
|
||||
```sh
|
||||
$ kompose up --provider=openshift
|
||||
INFO We are going to create OpenShift DeploymentConfigs, Services and PersistentVolumeClaims for your Dockerized application.
|
||||
If you need different kind of resources, use the 'kompose convert' and 'oc create -f' commands instead.
|
||||
|
||||
INFO Deploying application in "myproject" namespace
|
||||
INFO Successfully created Service: frontend
|
||||
INFO Successfully created Service: redis-master
|
||||
INFO Successfully created Service: redis-slave
|
||||
INFO Successfully created DeploymentConfig: frontend
|
||||
INFO Successfully created ImageStream: frontend
|
||||
INFO Successfully created DeploymentConfig: redis-master
|
||||
INFO Successfully created ImageStream: redis-master
|
||||
INFO Successfully created DeploymentConfig: redis-slave
|
||||
INFO Successfully created ImageStream: redis-slave
|
||||
|
||||
Your application has been deployed to OpenShift. You can run 'oc get dc,svc,is,pvc' for details.
|
||||
```
|
||||
Then you can use `kubectl apply` to create these resources in OpenShift.
|
||||
|
||||
__Access the newly deployed service:__
|
||||
|
||||
|
||||
+3
-10
@@ -16,21 +16,14 @@ Why do developers love it?
|
||||
|
||||
1. [Use an example docker-compose.yaml file](https://raw.githubusercontent.com/kubernetes/kompose/master/examples/docker-compose-v3.yaml) or your own
|
||||
2. Run `kompose up`
|
||||
3. Check your Kubernetes cluster for your newly deployed containers!
|
||||
3. Run `kubectl apply` and check your Kubernetes cluster for your newly deployed containers!
|
||||
|
||||
```sh
|
||||
$ wget https://raw.githubusercontent.com/kubernetes/kompose/master/examples/docker-compose-v3.yaml -O docker-compose.yaml
|
||||
|
||||
$ kompose up
|
||||
We are going to create Kubernetes Deployments, Services and PersistentVolumeClaims for your Dockerized application.
|
||||
If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead.
|
||||
$ kompose convert
|
||||
|
||||
INFO Successfully created Service: redis
|
||||
INFO Successfully created Service: web
|
||||
INFO Successfully created Deployment: redis
|
||||
INFO Successfully created Deployment: web
|
||||
|
||||
Your application has been deployed to Kubernetes. You can run 'kubectl get deployment,svc,pods,pvc' for details.
|
||||
$ kubectl apply -f *.yaml
|
||||
|
||||
$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
|
||||
Reference in New Issue
Block a user