Skip to content

Commit

Permalink
Fix yaml formatting
Browse files Browse the repository at this point in the history
Looks like prettier messed it up :(
  • Loading branch information
dibyom authored and tekton-robot committed Feb 6, 2020
1 parent 7ba80a7 commit cbdf448
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/exposing-eventlisteners.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbdf448

Please sign in to comment.