Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yaml formatting #417

Merged
merged 1 commit into from
Feb 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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