diff --git a/docs/exposing-eventlisteners.md b/docs/exposing-eventlisteners.md index 8648567c5..be5cd740c 100644 --- a/docs/exposing-eventlisteners.md +++ b/docs/exposing-eventlisteners.md @@ -33,7 +33,24 @@ services can be found 3. Create the Ingress resource. A sample Ingress is below. Check the docs [here](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/) for a full range of configuration options. - `YAML apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-resource namespace: getting-started annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/ssl-redirect: "false" spec: rules: - http: paths: - path: / backend: serviceName: getting-started-listener-b8rqz # REPLACE WITH YOUR SERVICE NAME FROM STEP 2 servicePort: 8080` +```yaml +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: ingress-resource + namespace: getting-started + annotations: + kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/ssl-redirect: "false" +spec: + rules: + - http: + paths: + - path: / + backend: + serviceName: getting-started-listener-b8rqz # REPLACE WITH YOUR SERVICE NAME FROM STEP 2 + servicePort: 8080 +``` 4. Try it out! Get the address of the Ingress by running `kubectl get ingress ingress-resource` and noting the address field. You can