diff --git a/python/fastapi/server.py b/python/fastapi/server.py index 3cc902a..c7eddce 100755 --- a/python/fastapi/server.py +++ b/python/fastapi/server.py @@ -33,7 +33,7 @@ logging_logger.addHandler(stream_handler) config = client.Configuration() -# config.api_key['authorization'] = open('/var/run/secrets/kubernetes.io/serviceaccount/token').read() +config.api_key['authorization'] = open('/var/run/secrets/kubernetes.io/serviceaccount/token').read() config.api_key_prefix['authorization'] = 'Bearer' config.host = 'https://kubernetes.default' config.ssl_ca_cert = '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt'