Skip to content

Commit 85620d8

Browse files
committed
Update Blog “exposing-an-application-using-ingress-and-tls-termination-on-kubernetes-in-hpe-greenlake-for-private-cloud-enterprise”
1 parent 097be6e commit 85620d8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

content/blog/exposing-an-application-using-ingress-and-tls-termination-on-kubernetes-in-hpe-greenlake-for-private-cloud-enterprise.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ cfe-selfsigned-issuer True 115s
202202
Here is the generated self-signed certificate in the namespace *nginx-apps*:
203203

204204
```shell
205-
$ kubectl apply -f certificate.yaml -n nginx-apps
206-
certificate.cert-manager.io/cfe-selfsigned-tls created
205+
$ kubectl get certificate -n nginx-apps
206+
NAME READY SECRET AGE
207+
cfe-selfsigned-tls True cfe-tls-key-pair 2m23s
207208
```
208209

209210
The following K8s Secret *cfe-tls-key-pair* is created automatically in the same namespace as part of certificate deployment:
@@ -217,7 +218,7 @@ cfe-tls-key-pair kubernetes.io/tls 3 2m25s
217218
Type the following command to check the *commonName* and the *dnsNames* that are used to generate the certificate:
218219

219220
```shell
220-
$ k describe certificate cfe-selfsigned-tls -n nginx-apps
221+
$ kubectl describe certificate cfe-selfsigned-tls -n nginx-apps
221222
Name: cfe-selfsigned-tls
222223
Namespace: nginx-apps
223224
Labels: <none>
@@ -310,7 +311,7 @@ Events: <none>
310311

311312
### Deploy sample Nginx applications
312313

313-
In order to validate the Ingress TLS termination, three sample Nginx applications will be deployed to the cluster using the YAML manifest files from GitHub repo [ingress-demo](https://github.com/GuopingJia/ingress-demo):
314+
In order to validate the Ingress TLS termination, three sample Nginx applications will be deployed to the cluster using the YAML manifest files from the GitHub repo [ingress-demo](https://github.com/GuopingJia/ingress-demo):
314315

315316
```shell
316317
$ tree ingress-demo/
@@ -381,10 +382,10 @@ nginx-main 10.192.4.44:80 1m
381382

382383
### Set up Ingress TLS
383384

384-
The Ingress resource with TLS has to be created. Here is the sample Ingress TLS resource:
385+
The Ingress resource with TLS has to be created. Here is the sample Ingress TLS resource *ingress-host-based-selfsigned.yaml*, available from the GitHub repo [ingress-demo](https://github.com/GuopingJia/ingress-demo):
385386

386387
```shell
387-
$ cat ingress-host-based-selfsigned.yaml
388+
$ cat ingress-host-based-selfsigned.yaml
388389
apiVersion: networking.k8s.io/v1
389390
kind: Ingress
390391
metadata:
@@ -433,7 +434,7 @@ spec:
433434
```
434435

435436

436-
In the above sample YAML manifest file, there is the *tls* block that contains the hostname *'nginx.example.com'* and the tls secret *cfe-tls-key-pair* created in the certification step. There is also the *rules* block in which a list of routing rules is defined per host, e.g., host *nginx.example.com* will be routed to the application service *nginx-main* in the backend.
437+
In the above sample YAML manifest file, there is the *'tls'* block that contains the hostname *'nginx.example.com'* and the secret *cfe-tls-key-pair* created in the certification step. There is also the *'rules'* block in which a list of routing rules is defined per host, e.g., host *nginx.example.com* will be routed to the application service *nginx-main* in the backend.
437438

438439
Type the following command to deploy the Ingress resource to the namespace *nginx-apps*:
439440

@@ -476,7 +477,7 @@ Events:
476477

477478
Before start accessing the deployed Nginx applications, you need set up the domain and the subdomain name resolution. For the sample domain name *nginx.example.com*, and its subdomains, *blue.nginx.example.com* and *green.nginx.example.com*, the workstation host file has been used for DNS resolution.
478479

479-
Type the following commands to check this is done correctly:
480+
Type the following commands to check that this is done correctly:
480481

481482
```shell
482483
$ host nginx.example.com

0 commit comments

Comments
 (0)