You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/exposing-an-application-using-ingress-and-tls-termination-on-kubernetes-in-hpe-greenlake-for-private-cloud-enterprise.md
Three Nginx applicaitons from the GitHub repo [ingress-demo](https://github.com/GuopingJia/ingress-demo.git) will be deployed as sample applications to the cluster.
Type the following commend to check that all the service endpoints have been populated:
299
+
Type the following commend to check that all the application service endpoints have been populated:
292
300
293
301
```shell
294
302
$ kubectl get endpoints -n nginx-apps
@@ -298,7 +306,9 @@ nginx-green 10.192.4.45:80 1m
298
306
nginx-main 10.192.4.44:80 1m
299
307
```
300
308
301
-
### Deploy Ingress
309
+
### Set up Ingress TLS
310
+
311
+
The Ingress resource with TLS has to be created. Here is the sample Ingress TLS resource:
302
312
303
313
```shell
304
314
$ cat ingress-host-based-selfsigned.yaml
@@ -348,10 +358,19 @@ spec:
348
358
port:
349
359
number: 80
350
360
```
361
+
362
+
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 steps. 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.
363
+
364
+
Type the following command to deploy the Ingress resource to the namespace *nginx-apps*:
Normal CreateCertificate 20s cert-manager-ingress-shim Successfully created Certificate "cfe-tls-key-pair"
383
402
```
384
403
385
-
### Access deployed Nginx apps
404
+
### Access deployed Nginx applications
386
405
387
-
With all Nginx apps, together with the K8s Ingress resource, being deployed to the cluster, all I have to do is to make sure the domain and the subdomain names, i.e., *example.com* & **.nginx.example.com*, point to the the external IP address *'10.6.115.251'* assigned to the *Nginx ingress controller*.
406
+
With all Nginx applications, together with the K8s Ingress resource, being deployed to the cluster, you need set up and make sure the domain and the subdomain names, i.e., *example.com* & **.nginx.example.com*, point to the the external IP address *'10.6.115.251'*which is assigned to the *Nginx ingress controller*.
388
407
389
408
Type the following commands to check this is done correctly:
0 commit comments