Enable HTTPS on GCE/GKE : <p>I am running web site with Kubernetes on Google Cloud. At the moment, everything is working well - through http. But I need https. I have several services and one of them is exposed to the outside world, let's call it web. As far as I know, this is the only service that needs to be modified. I tried to creating a static IP and TCP/SSL loadbalancer ssl-LB in the Networking section of GCP and using that LB in web.yaml, which I create. Creating the service gets stuck with:</p>

<pre><code>Error creating load balancer (will retry): Failed to create load 
balancer for service default/web: requested ip &lt;IP&gt; is 
neither static nor assigned to LB
aff3a4e1f487f11e787cc42010a84016(default/web): &lt;nil&gt;
</code></pre>

<p>According to GCP my IP is static, however. The hashed LB I cannot find anywhere and it should be assigned to ssl-LB anyway. How do I assign this properly?</p>

<p><strong>More details:</strong></p>

<p>Here are the contents of web.yaml</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
name: web
labels:
  ...
spec:
  type: LoadBalancer
  loadBalancerIP: &lt;RESERVED STATIC IP&gt; 
ports:
- port: 443
  targetPort: 7770
selector:
  ...
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 1
  template:
    metadata:
      labels:
        ...
  spec:
    containers:
    - name: web
      image: gcr.io/&lt;PROJECT&gt;/&lt;IMAGE NAME&gt;
      ports:
      - containerPort: 7770
</code></pre>
