from kubernetes import client, config # Configs can be set in Configuration class directly or using helper utility config_path = ... config.load_kube_config(config_path) v1 = client.CoreV1Api() print("Listing pods with their IPs:") ret = v1.list_pod_for_all_namespaces(watch=False) for i in ret.items: print("%s\t%s\t%s" % (i.status.pod_ip, i.metadata.namespace, i.metadata.name))
Fully functional HA mainly comes into two forms: flashable supervised .iso images, and virtual machines (not docker container).
Remember to create backup of HA after successful initialization. You can create an iso for the entire disk or just using backup utility builtin.
Supervisor need to be updated before other components. It is also the troublemaker. Set auto update of supervisor to false by:
1 2
ha supervisor options --auto-update=false
Since its heavy reliance on docker and github, one need to use OpenClash along with OpenWrt flashed in one dedicated router like NanoPi R2S to smooth the installation process.
Use video capture card and OBS studio to observe the RPI terminal. Attach to keyboard to type commands.
ha banner sometimes resolves issues.
To prevent addon installation limits, you can enter debug mode, edit the following file /mnt/data/supervisor/jobs.json into:
1 2 3 4 5 6
{ "ignore_conditions":[ "healthy" ] }
Some files like /etc/docker/daemon.json, /etc/hosts cannot be changed after boot. You can change them before boot using card reader.