Kubernetes HTTPS Ingress on Google Container Engine

I want to show the HTTP service running in the Google Container Engine using HTTPS only load balancing.

How to determine in the input object that I want HTTPS only load balancing instead of standard HTTP?

Or is there a way to permanently abandon the HTTP from the created load balancer? When I add the HTTPS and then drop the HTTP protocol, HTTP recreated in a few minutes by the platform.

Ingress:

 apiVersion: extensions/v1beta1 kind: Ingress metadata: name: myapp-ingress spec: backend: serviceName: myapp-service servicePort: 8080 
+6
source share
1 answer

In order to show only HTTP services, you can block traffic on port 80, as indicated on this link :

You can block traffic: 80 through annotation. You might want to do this if all your clients will only click on the loadbalancer via https, and you do not want to spend the extra GCE forwarding rule, for example:

 apiVersion: extensions/v1beta1 kind: Ingress metadata: name: test annotations: kubernetes.io/ingress.allow-http: "false" spec: tls: # This assumes tls-secret exists. # To generate it run the make in this directory. - secretName: tls-secret backend: serviceName: echoheaders-https servicePort: 80 
+3
source

Source: https://habr.com/ru/post/1012583/


All Articles