Add a code block fence for example-ingress.yaml.
This commit is contained in:
@@ -132,6 +132,7 @@ The following file is an Ingress resource that sends traffic to your Service via
|
||||
|
||||
1. Create `example-ingress.yaml` from the following file:
|
||||
|
||||
```yaml
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
@@ -147,6 +148,7 @@ The following file is an Ingress resource that sends traffic to your Service via
|
||||
backend:
|
||||
serviceName: web
|
||||
servicePort: 8080
|
||||
```
|
||||
|
||||
1. Create the Ingress resource by running the following command:
|
||||
|
||||
@@ -242,6 +244,7 @@ The following file is an Ingress resource that sends traffic to your Service via
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```shell
|
||||
ingress.networking/example-ingress configured
|
||||
```
|
||||
@@ -255,6 +258,7 @@ The following file is an Ingress resource that sends traffic to your Service via
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```shell
|
||||
Hello, world!
|
||||
Version: 1.0.0
|
||||
@@ -268,6 +272,7 @@ The following file is an Ingress resource that sends traffic to your Service via
|
||||
```
|
||||
|
||||
Output:
|
||||
|
||||
```shell
|
||||
Hello, world!
|
||||
Version: 2.0.0
|
||||
|
||||
Reference in New Issue
Block a user