Exporting Logs to Azure File Storage from AKS Nodes based on performance conditions

  • Backup.sh
  • The Python script will use the following environment variables for a detailed configuration:
  • - NODE_BACKUP : If this variable is set to True, will skip the performance and connectivity testing and will execute only the backup operation of Nodes Logs in the Azure Storage File Share
  • - GLOBAL_DELAY : Integer value for time between execution of the testing loop. If not configured explicitly, is defaulted to 10s
  • - CPU_MAX : Threshold value for maximum CPU utilization. If reeded value is higher that this configured value, it will trigger the logs exporting
  • - MEM_MAX : Same a CPU_MAX, just for Memory utilization
  • - RUN_FOR : Integer value for the time this loop will be run. It is configured in minutes. If not explicitly configured, is defaulted to 5 min

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store