forked from LaconicNetwork/kompose
Adds clarification on commands
Re-adds '$' to commands
This commit is contained in:
parent
796313f626
commit
8e70d89ff7
@ -11,7 +11,7 @@
|
||||
Convert [`docker-compose.yaml`](https://raw.githubusercontent.com/kubernetes/kompose/master/examples/docker-compose.yaml) into Kubernetes deployments and services with one simple command:
|
||||
|
||||
```sh
|
||||
kompose convert -f docker-compose.yaml
|
||||
$ kompose convert -f docker-compose.yaml
|
||||
INFO Kubernetes file "frontend-service.yaml" created
|
||||
INFO Kubernetes file "redis-master-service.yaml" created
|
||||
INFO Kubernetes file "redis-slave-service.yaml" created
|
||||
|
||||
@ -36,7 +36,7 @@ services:
|
||||
__2. Run `kompose up` in the same directory__
|
||||
|
||||
```bash
|
||||
kompose up
|
||||
$ 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.
|
||||
|
||||
@ -53,7 +53,7 @@ __Alternatively, you can run `kompose convert` and deploy with `kubectl`__
|
||||
__2.1. Run `kompose convert` in the same directory__
|
||||
|
||||
```bash
|
||||
kompose convert
|
||||
$ kompose convert
|
||||
INFO Kubernetes file "frontend-service.yaml" created
|
||||
INFO Kubernetes file "redis-master-service.yaml" created
|
||||
INFO Kubernetes file "redis-slave-service.yaml" created
|
||||
@ -65,7 +65,7 @@ INFO Kubernetes file "redis-slave-deployment.yaml" created
|
||||
__2.2. And start it on Kubernetes!__
|
||||
|
||||
```bash
|
||||
kubectl create -f frontend-service.yaml,redis-master-service.yaml,redis-slave-service.yaml,frontend-deployment.yaml,redis-master-deployment.yaml,redis-slave-deployment.yaml
|
||||
$ kubectl create -f frontend-service.yaml,redis-master-service.yaml,redis-slave-service.yaml,frontend-deployment.yaml,redis-master-deployment.yaml,redis-slave-deployment.yaml
|
||||
service "frontend" created
|
||||
service "redis-master" created
|
||||
service "redis-slave" created
|
||||
@ -81,13 +81,13 @@ Now that your service has been deployed, let's access it.
|
||||
If you're already using `minikube` for your development process:
|
||||
|
||||
```bash
|
||||
minikube service frontend
|
||||
$ minikube service frontend
|
||||
```
|
||||
|
||||
Otherwise, let's look up what IP your service is using!
|
||||
|
||||
```sh
|
||||
kubectl describe svc frontend
|
||||
$ kubectl describe svc frontend
|
||||
Name: frontend
|
||||
Namespace: default
|
||||
Labels: service=frontend
|
||||
@ -106,5 +106,5 @@ No events.
|
||||
If you're using a cloud provider, your IP will be listed next to `LoadBalancer Ingress`.
|
||||
|
||||
```sh
|
||||
curl http://123.45.67.89
|
||||
$ curl http://123.45.67.89
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user