It is a hello-kitty app issue.
Liveness/Readiness probe is done with a http get to an app running inside container. The app listens on ipv4.
app.py: app.run(host='0.0.0.0', port=80)
Changing to listen to ipv4 and ipv6 gives HTTP Error 500: app.run(host='::', port=80)
Probes pass only if HTTP 2xx to 4xx are returned.
Changing the whole app.py passes the probes: from flask import Flask import os import socket
app = Flask(__name__)
@app.route("/") def hello(): html = "<h3>Hello Kitty {name}!</h3>" return html
if __name__ == "__main__": app.run(host='0.0.0.0', port=80)
It is a hello-kitty app issue.
Liveness/Readiness probe is done with a http get to an app running inside container.
The app listens on ipv4.
app.py: host='0. 0.0.0', port=80)
app.run(
Changing to listen to ipv4 and ipv6 gives HTTP Error 500: host=': :', port=80)
app.run(
Probes pass only if HTTP 2xx to 4xx are returned.
Changing the whole app.py passes the probes:
from flask import Flask
import os
import socket
app = Flask(__name__)
@app.route("/")
def hello():
html = "<h3>Hello Kitty {name}!</h3>"
return html
if __name__ == "__main__": run(host= '0.0.0. 0', port=80)
app.