I've created a simple Python API using responder and deployed it to Google Cloud with Kubernetes. I don't have a domain name just a raw IP address.
http://192.0.2.42/api/myapi
And deployed as:
kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 192.0.2.1 <none> 443/TCP 5d15h
web LoadBalancer 192.0.2.100 192.0.2.42 80:32749/TCP 5d15h
and
kubectl get pods
NAME READY STATUS RESTARTS AGE
my-pod-name 1/1 Running 0 16h
I'd like to make it an HTTPS endpoint so I can use it as:
https://192.0.2.42/api/myapi
But I am struggling to find the easiest way to do it.
Should this be something that is done via Kubernetes, or something that is done in the Python code? It doesn't look like responder provides an easy mechanism for this.