def get_apps_api():
global apps_api<EOL>if apps_api is None:<EOL><INDENT>config.load_kube_config()<EOL>if API_KEY is not None:<EOL><INDENT>configuration = client.Configuration()<EOL>configuration.api_key['<STR_LIT>'] = API_KEY<EOL>configuration.api_key_prefix['<STR_LIT>'] = '<STR_LIT>'<EOL>apps_api = client.AppsV1Api(client.ApiClient(configuration))<EOL><DEDENT>else:<EOL><INDENT>apps_api = client.AppsV1Api()<EOL><DEDENT><DEDENT>return apps_api<EOL>
Create instance of Apps V1 API of kubernetes:
https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/AppsV1Api.md
:return: instance of client