Skip to content

Commit

Permalink
added auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeeyoungkim committed Sep 5, 2023
1 parent b4dcf9e commit bdec2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/fastapi/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit bdec2af

Please sign in to comment.