deployment in stead of run for 1.15+ compatibility

Addresses #572 

Current instructions for deploying Zipkin do not create service which makes the following command fail because there is no service, as starting with 1.15 k8s no longer creates service under the `run` command.

Changing the `run` to `create deployment`

```shell
kubectl create deployment zipkin --image openzipkin/zipkin
```

Which creates will allow the following command to create a service and expose its port.

```shell
kubectl expose deployment zipkin --type ClusterIP --port 9411
```
This commit is contained in:
Mark Chmarny 2020-06-09 15:17:52 -07:00 committed by GitHub
parent 4948c3a3dc
commit 83698e018e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -66,13 +66,13 @@ The following steps shows you how to configure Dapr to send distributed tracing
First, deploy Zipkin:
```bash
kubectl run zipkin --image openzipkin/zipkin --port 9411
kubectl create deployment zipkin --image openzipkin/zipkin
```
Create a Kubernetes service for the Zipkin pod:
```bash
kubectl expose deploy zipkin --type ClusterIP --port 9411
kubectl expose deployment zipkin --type ClusterIP --port 9411
```
Next, create the following YAML files locally:
@ -156,4 +156,4 @@ set `samplingRate : "0"` in the configuration. The valid range of samplingRate i
## References
* [How-To: Use W3C Trace Context for distributed tracing](../../howto/use-w3c-tracecontext/readme.md)
* [How-To: Use W3C Trace Context for distributed tracing](../../howto/use-w3c-tracecontext/readme.md)