I am using a Flask app deployed into Google Kubernetes Engine. The deployed application uses Waitress to serve the Flask application. I would like to ensure that all connections are over https. My deployed application currently allows http and/or https, but I would like to force https. To do so, I am trying to use Talisman.
from flask import Flask
from flask_talisman import Talisman
app = Flask(__name__)
Talisman(app)
However, when I deploy the version using Talisman, my probes fail and I cannot access the web app.
livenessProbe:
httpGet:
port: 8080
path: /health
initialDelaySeconds: 60
timeoutSeconds: 1
readinessProbe:
httpGet:
port: 8080
path: /health
initialDelaySeconds: 60
timeoutSeconds: 1
I tried adding scheme: HTTPS
to httpGet
, but the probes still fail.
Where am I going wrong?