▲

Peters Tim / Tim Peters - Mastering Python Network Automation: Automating Container Orchestration, Configuration, and Networking with Terraform, Calico / Mastering Network Automation with Python [2023, PDF, EPUB, ENG]

seeders: 12
leechers: 2
Added 3 years ago by tsurijin in Books  > Non-Fiction

Download Fast Safe Anonymous
movies, software, shows...

Files

Peters Tim / Tim Peters - Mastering Python Network Automation: Automating Container Orchestration, Configuration, and Networking with Terraform, Calico / Mastering Network Automation with Python [2023, PDF, EPUB, ENG] (Size: 4.7 MB)
  Peters Tim - Mastering Python Network Automation - 2023.epub 2.45 MB
  Peters Tim - Mastering Python Network Automation - 2023.pdf 2.25 MB

Description


Книги и журналы » Компьютерная литература » Программирование (книги)

Mastering Python Network Automation: Automating Container Orchestration, Configuration, and Networking with Terraform, Calico / Освоение сетевой автоматизации на Python: Автоматизация оркестровки контейнеров, конфигурирования и создания сетей с помощью Terraform, Calico

Год издания: 2023
Автор: Peters Tim / Питерс Тим

Издательство: GitforGits
ISBN: 978-8196228552
Язык: Английский

Формат: PDF (Not True), EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 270

Описание: Numerous sample programs & examples demonstrating the application of python tools to streamline network automation.
With "Mastering Python Network Automation," you can streamline container orchestration, configuration management, and resilient networking with Python and its libraries, allowing you to emerge as a skilled network engineer or a strong DevOps professional.
From the ground up, this guide walks readers through setting up a network automation lab using the NS3 network simulator and Python programming. This includes the installation of NS3, as well as python libraries like nornir, paramiko, netmiko, and PyEZ, as well as the configuration of ports, hosts, and servers. This book will teach you the skills to become a proficient automation developer who can test and fix any bugs in automation scripts. This book examines the emergence of the service mesh as a solution to the problems associated with service-to-service communication over time.
This book walks you through automating various container-related tasks in Python and its libraries, including container orchestration, service discovery, load balancing, container storage management, container performance monitoring, and rolling updates. Calico and Istio are two well-known service mesh tools, and you'll find out how to set them up and configure them to manage traffic routing, security, and monitoring. Additional topics covered in this book include the automation of network policies, the routing of workloads, and the collection and tracking of metrics, logs, and traces. You'll also pick up some tips and tricks for collecting and visualizing Istio metrics with the help of tools like Grafana.
Key Learnings
Use of Istio for cluster traffic management, traffic routing, and service mesh implementation.
Utilizing Cilium and Calico to solve pod networking and automate network policy and workload routing.
Monitoring and managing Kubernetes clusters with etcd and HAProxy load balancers and container storage.
Establishing network automation lab with tools like NS3 emulator, Python, Virtual Environment, and VS Code.
Establishing connectivity between hosts, port connectivity, SSH connectivity, python libraries, NS3, and network encryption.

Многочисленные примеры программ и иллюстраций, демонстрирующие применение инструментов python для оптимизации сетевой автоматизации.
С помощью "Освоение сетевой автоматизации на Python" вы сможете упростить оркестровку контейнеров, управление конфигурацией и создание устойчивых сетей с помощью Python и его библиотек, что позволит вам стать квалифицированным сетевым инженером или сильным специалистом по DevOps.
Это руководство с самого начала знакомит читателей с настройкой лаборатории сетевой автоматизации с использованием сетевого симулятора NS3 и программирования на Python. Это включает в себя установку NS3, а также библиотек python, таких как nornir, paramiko, netmiko и PyEZ, а также настройку портов, узлов и серверов. Вы приобретете навыки, необходимые для того, чтобы стать опытным разработчиком автоматизации, который может тестировать и исправлять любые ошибки в сценариях автоматизации. В этой книге рассматривается появление service mesh как решения проблем, связанных с обменом данными между службами с течением времени.
В этой книге вы познакомитесь с автоматизацией различных задач, связанных с контейнерами, в Python и его библиотеках, включая оркестровку контейнеров, обнаружение служб, балансировку нагрузки, управление хранилищем контейнеров, мониторинг производительности контейнеров и текущие обновления. Calico и Istio - два хорошо известных инструмента service mesh, и вы узнаете, как их настроить для управления маршрутизацией трафика, безопасностью и мониторингом. Дополнительные темы, рассматриваемые в этой книге, включают автоматизацию сетевых политик, маршрутизацию рабочих нагрузок, а также сбор и отслеживание показателей, журналов и трассировок. Вы также узнаете несколько советов и хитростей по сбору и визуализации показателей Istio с помощью таких инструментов, как Grafana.
Ключевые знания
Использование Istio для управления кластерным трафиком, маршрутизации трафика и реализации сервисной сетки.
Использование Cilium и Calico для решения задач pod networking и автоматизации сетевой политики и маршрутизации рабочей нагрузки.
Мониторинг и управление кластерами Kubernetes с помощью балансировщиков нагрузки etcd и HAProxy и контейнерного хранилища.
Создание лаборатории сетевой автоматизации с использованием таких инструментов, как эмулятор NS3, Python, Virtual Среда и VS-код.
Установление соединения между хостами, подключение к порту, подключение по SSH, библиотеки python, NS3 и сетевое шифрование.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
Preface
Chapter 1: Python Essentials for Networks
Role of Python in Network Programming
Overview
Factors Benefitting Networking
Learn to use Data Types
Numeric Data Types
Boolean Data Type
Sequence Data Types
Mapping Data Types
Set Data Types
Binary Data Types
Exploring Loops
For Loops
While Loops
Working with Functions
Defining Functions
Calling Functions
Default Arguments
Variable-length Arguments
Lambda Functions
Recursion
Global and Local Variables
Function Arguments
Nested Functions
Summary
Chapter 2: File Handling and Modules in Python
File Handling
Opening and Closing Files
Reading from Files
Writing to Files
Appending to Files
With Statement
Exception Handling:
Utilizing Modules
Creating a Module
Importing a Module
Built-In Modules
Creating Packages
Standard Library Modules
My First Python Script
Summary
Chapter 3: Preparing Network Automation Lab
Components of Network Automation Process
Network Devices
Network Emulator
Python Environment
Automation Scripts
Putting It All Together
Benefits of Network Automation Lab
Install NS3 Network Simulator
System Requirements
Install Required Dependencies
Download NS-3
Install Python
Update System
Install Python
Install pip
Install paramiko, Netmiko and Nornir
Install Virtual Environment
Create Virtual Environment
Activate the Virtual Environment
Install Python Libraries in Virtual Environment
Deactivate the Virtual Environment
Install Visual Studio Code
Download and Install VS Code
Install Python Extension
Configure Python Interpreter
Create Python Project
Write Python Code
Run Python Code
Summary
Chapter 4: Configuring Libraries and Lab Components
Nornir
Architecture of Nornir
Significance of Nornir
Paramiko
Architecture of Paramiko
Significance of Paramiko
Netmiko
Architecture of Netmiko
Significance of Netmiko
PyEZ
Architecture of PyEZ
Significance of PyEZ
Configure nornir, paramiko, netmiko and pyEZ
Installing and Configuring Nornir
Installing and Configuring Paramiko
Installing and Configuring Netmiko
Installing and Configuring PyEZ
Configure Ports
Configuring Ports on Switches
Configuring Ports on Routers
Configure Hosts
Configuring Hosts on Windows
Configuring Hosts on Linux
Configure Servers
Installing Server Operating System
Configuring Network Settings
Installing and Configuring Server Software
Configure Network Encryption
SSL/TLS
IPsec
SSH
VPN
Testing the Network Automation Environment
Test Connectivity between Hosts
Test Port Connectivity
Test SSH Connectivity
Test Network Automation Libraries
Test NS3 Emulator
Test Network Encryption
Summary
Chapter 5: Code, Test & Validate Network Automation
Understanding Network Automation Scripts
Procedure of Network Automation Scripts
Define Variables for Automation Scripts
Install Required Libraries
Import Libraries
Define Variables
Connect to Device
Send Configuration Commands
Close Connection
Create Script to Use Variables
Run the Script
Write Codes using Python Tools
Install Required Libraries and Tools
Import Libraries
Define Inventory
Define Tasks
Define Playbook
Execute the Script
Test and Validate the Script
Testing Network Automation Scripts
Set Up a Test Environment
Create Test Cases
Run the Code
Document Test Results
Debug Errors
Identify the Error or Issue
Review the Code
Use Print Statements
Use a Debugger
Fix the Error or Issue
Validate Network Automation Scripts
Prepare the Production Environment
Deploy Code to Production Environment or Devices
Run the Code on Production Environment or Devices
Verify the Output
Summary
Chapter 6: Automation of Configuration Management
Why Configuration Management?
Need of Configuration Management
Role of Python in Configuration Management
Server Provisioning with Terraform
Set up AWS Credentials
Install Terraform
Define Terraform Configuration
Initialize Terraform
Apply Terraform Configuration
Connect to EC2 Instance
Creating Server
Testing Server
Using Python to Automate System Settings
Import Necessary Modules
Define Timezone
Execute Command to Change Timezone
Verify Setting the Timezone
Using Python to Modify Base Configurations
Using Terraform to Modify Base Configurations
Automating System Identification
Install Terraform Module
Python Script to Retrieve System Information
Using Python to Automate Patches and Updates
Install Necessary Libraries
Check for Available Updates
Upgrade the System
Reboot the System
Schedule Regular Updates
Using Terraform to Roll Patches and Updates
Create Configuration File
Applying Configuration File
Identify Unstable and Non-compliant Configurations
Establish Connection with Device
Retrieve Running Configuration
Search Non-compliant Interfaces
Fixing Non-compliant Configurations
Summary
Chapter 7: Managing Docker and Container Networks
Docker and Containers
Docker & Container Fundmentals
Benefits & Applications
Role of Python in Containerization
Install and Configure Docker
Install Docker
Install Docker Python Module
Create Dockerfile
Build Docker Image
Run Docker Container
Test Docker Container
Using Python to Build Docker Images
Create DockerFile
Install Dependencies
Define Command
Build Docker Image
Run Container
Running Containers
Automate Running of Containers
Install Docker SDK for Python
Import Docker SDK
Connect to Docker Daemon
Define Container Configuration
Create Container
Start the Container
Stop and Remove Containers
Container Network Management
Overview
Managing Container Networks with Docker SDK
Summary
Chapter 8: Orchestrating Container & Workloads
Container Scheduling and Workload Automation
Network Service Disocvery
Understanding etcd
Service Discovery using etcd
Install etcd
Start etcd
Register Services
Discover Services
Automate Service Discovery
Sample Program to Automate Service Discovery
Kubernetes Load Balancers
Exploring HAProxy
Manage Load Balancer Servers using HAProxy
Import Required Libraries
Define API Endpoint URLs
Define Function to Add or Remove Servers
Call Function
Sample Program to Manage Load Balancer Servers
Automate Add/Manage SSL Certificate
Using Cryptography Library to Automate SSL
Step-by-step Illustration of Sample Program
Manage Container Storage
Sample Program
Step-by-step Illustration of Sample Program
Necessity of Container Performance
Why Container Performance?
Container Performance KPIs
Setting Up Container Performance Monitoring
Install the Required Libraries
Import Required Libraries
Connect to Docker API
Get Container List
Pull Performance Metrics
Print Container Metrics
Automated Rolling of Updates
Get Current Deployment Object
Update Deployment Object
Check Status of Deployment Rollout
Clean Up Resources
Summary
Chapter 9: Pod Networking
Pods and Pod Networking
What are Pods?
Pods beyond Containers
Networking in Pods
Setting Up Pod Network
Choose a Pod Network Provider
Install Pod Network Provider
Configure Pod Network
Verify the Pod Network
Exploring Calico
Overview
Characteristics of Calico
Getting Started with Calico
Using Calico to Setup Pod Network
Routing Protocols
Border Gateway Protocol (BGP)
Open Shortest Path First (OSPF)
Intermediate System to Intermediate System (IS-IS)
Routing Information Protocol (RIP)
Exploring Cilium
Key Features of Cilium
Cilium Architecture
Install Cilium
Automation of Network Policies
Overview
Steps for Network Policies Automation
Using Calico to Automate Network Policies
Workload Routing
Need of Workload Routing
Istio
Linkerd
Consul
Summary
Chapter 10: Implementing Service Mesh
Service-to-Service Communication
Remote Procedure Calls (RPCs)
Message-based Communication
Need of Service-to-Service
Rise of Service Mesh
Exploring Istio
Overview
Istio’s Capabilities
Installing Istio
Cluster Traffic
NodePort
LoadBalancer
Ingress
Istio Control Plane
Using Istio to Route Traffic
Metrics, Logs and Traces
Metrics
Logs
Traces
Using Grafana to Collect Metrics
Steps to Collect Metrics
Summary
[/spoiler]