Logo DucLe's Blog
  • Home
  • About
  • Skills
  • Experiences
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • HomeLab
    • Overview
    • Kubernetes with Kubespray
  • Awesome things
    • Diagram as code
  • category
    • Sub-Category
Hero Image
Diagram as code

About Diagrams Diagrams lets you draw the cloud system architecture in Python code. Official website: https://diagrams.mingrammer.com Github repo: mingrammer/diagrams Installation Python >= 3.6 # https://docs.python-guide.org/starting/install3/linux/ $ sudo apt-get install python3.8 Graphviz # https://graphviz.gitlab.io/download/ $ sudo apt install graphviz Diagrams # https://diagrams.mingrammer.com/docs/getting-started/installation $ pip install diagrams Overview There are 4 type of objects in Diagrams file: Diagram is a primary object representing a diagram. Node is a second object representing a node or system component.

    Tuesday, August 22, 2023 Read
    Hero Image
    Kubernetes with Kubespray

    Requirements Ansible node: a Linux machine to run ansible (able to run in WSL or Docker but it’s not recommended) K8s nodes: Master nodes: 4GB RAM is recommended (2GB RAM will cause very low performance) Worker nodes: can start with 1CPU and 2GB RAM You can setup a K8S cluster with only 1 node: master + worker (+ ansible) Installation steps Setup environments SSH connection: Ansible connects nodes over SSH, so the easy way is create the same user with public ssh key on all K8s nodes. You should use a golden image or template to create K8s nodes: Launch template or ARM template if you use cloud provider such as AWS, Azure VM template with on-premise hypervisor (Vshpere, Hyper-V, Citrix, ..) Cloud-init 🠈 I used this option, check this post Create Proxmox VM with Terraform (Cooming soon) Setup Kubespray: Install ansible and clone Kubespray repo Prepare inventory Static inventory You can use existing inventory file /inventory/local/hosts.ini to setup a “Single node cluster” Make a copy of sample inventory folder To get much information, visit these links: Kubespray inventory and Configurable Parameters in Kubespray

    • HomeLab
    • Kubernetes
    • kubespray
    Thursday, August 17, 2023 Read
    Hero Image
    Overview of my HomeLab

    I setup this Homelab to learn and experiment new technologies, then improve my skills. This Homelab includes followings: On-premise infrasture Hypervisor Proxmox XCP-NG Cloud infrasture AWS Azure IaC, CM tools Terraform Ansible CI/CD Jenkins GitHub Actions ArgoCD Kubernetes Kubespray Rancher EFK Prometheus + Grafana Bitnami Sealed Secrets HashiCorp Vault Hardware 1x Dell 7050 SFF CPU: Intel i7-6700 RAM: 32GB Storage: 256GB SSD Network I don’t have any static IP so I setup DDNS with Cloudflare and install a WireGuard VPN server with port forwarding.

    • HomeLab
    • Overview
    Friday, August 11, 2023 Read
    Navigation
    • About
    • Skills
    • Experiences
    Contact me:
    • [email protected]
    • huuduc8404
    • Duc Le
    • +84362935161

    Toha Theme Logo Toha
    © 2025 Copyright.
    Powered by Hugo Logo