apiVersion:extensions/v1beta1kind:Ingressmetadata:name:nginx-testspec:tls:-hosts:-foo.bar.com # This assumes tls-secret exists and the SSL # certificate contains a CN for foo.bar.comsecretName:tls-secretrules:-host:foo.bar.comhttp:paths:-path:/backend: # This assumes http-svc exists and routes to healthy endpointsserviceName:http-svcservicePort:80
The following command instructs the controller to terminate traffic using the provided TLS cert, and forward un-encrypted HTTP traffic to the test HTTP service.