From dd164c2db818af22f851ede4c9c4bfe169f0a3c3 Mon Sep 17 00:00:00 2001 From: Philippe Date: Wed, 1 Dec 2021 10:55:26 +0100 Subject: [PATCH] fix: updating requirements.txt --- app/main.py | 4 ++-- requirements.txt | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 048236a..b6e5668 100644 --- a/app/main.py +++ b/app/main.py @@ -18,7 +18,7 @@ @app.route("/metrics") def metrics(): try: - configuration = kubernetes.client.Configuration().get_default_copy() + configuration = kubernetes.client.Configuration().load_incluster_config() with kubernetes.client.ApiClient(configuration) as api_client: api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) @@ -38,4 +38,4 @@ def metrics(): return Response(generate_latest(), mimetype=CONTENT_TYPE_LATEST) if __name__ == "__main__": - app.run(host='0.0.0.0',port="8080") \ No newline at end of file + app.run(host='0.0.0.0') \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 98f0024..1fc0361 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,17 @@ cachetools==4.2.4 certifi==2021.10.8 charset-normalizer==2.0.8 +click==8.0.3 +Flask==2.0.2 google-auth==2.3.3 +gunicorn==20.1.0 idna==3.3 +itsdangerous==2.0.1 +Jinja2==3.0.3 kubernetes==19.15.0 +MarkupSafe==2.0.1 oauthlib==3.1.1 +prometheus-client==0.12.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 python-dateutil==2.8.2 @@ -15,4 +22,4 @@ rsa==4.8 six==1.16.0 urllib3==1.26.7 websocket-client==1.2.1 -Flask==2.0.1 \ No newline at end of file +Werkzeug==2.0.2