committed by
Kubernetes Prow Robot
parent
60006e9164
commit
ac65ac4835
@@ -135,23 +135,21 @@ The following file is an Ingress resource that sends traffic to your Service via
|
|||||||
|
|
||||||
1. Create `example-ingress.yaml` from the following file:
|
1. Create `example-ingress.yaml` from the following file:
|
||||||
|
|
||||||
```yaml
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
kind: Ingress
|
||||||
kind: Ingress
|
metadata:
|
||||||
metadata:
|
name: example-ingress
|
||||||
name: example-ingress
|
annotations:
|
||||||
annotations:
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
spec:
|
||||||
spec:
|
rules:
|
||||||
rules:
|
- host: hello-world.info
|
||||||
- host: hello-world.info
|
http:
|
||||||
http:
|
paths:
|
||||||
paths:
|
- path: /*
|
||||||
- path: /*
|
backend:
|
||||||
backend:
|
serviceName: web
|
||||||
serviceName: web
|
servicePort: 8080
|
||||||
servicePort: 8080
|
|
||||||
```
|
|
||||||
|
|
||||||
1. Create the Ingress resource by running the following command:
|
1. Create the Ingress resource by running the following command:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user