Kubernetes/k8s2d2.py - Diagram with python and D2: Revision history

From Federal Burro of Information
Jump to navigationJump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 March 2024

23 March 2024

  • curprev 05:0405:04, 23 March 2024David talk contribs 2,794 bytes +21 No edit summary
  • curprev 05:0405:04, 23 March 2024David talk contribs 2,773 bytes +2,773 Created page with " This python script will read your kubernetes and write a D2 file from which you can make a diagram. So far: service -> deployment -> hpa Missing: sts, cron, ingress, gateway, configmaps, secrets, mounts, pvc. <pre> #!/usr/bin/env python3 from kubernetes import client, config import argparse import pprint from py_d2.connection import D2Connection, D2Diagram, D2Shape pp = pprint.PrettyPrinter(indent=4) config.load_kube_config() parser = argparse.ArgumentParser() pa..."