Skip to content

Commit

Permalink
fix: updating requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe committed Dec 1, 2021
1 parent be4e1a1 commit dd164c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
app.run(host='0.0.0.0')
9 changes: 8 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,4 +22,4 @@ rsa==4.8
six==1.16.0
urllib3==1.26.7
websocket-client==1.2.1
Flask==2.0.1
Werkzeug==2.0.2

0 comments on commit dd164c2

Please sign in to comment.