代码改变世界

5 - Ansible playbook

2021-08-08 10:24 by WayneWei, 31 阅读, 0 推荐, 收藏, 编辑
摘要:Offical introduction to playbookYou can get official reference of playbook from below url:https://docs.ansible.com/ansible/latest/user_guide/playbooks 阅读全文

4 - Ansible common modules Part 2

2021-08-08 09:07 by WayneWei, 17 阅读, 0 推荐, 收藏, 编辑
摘要:OverviewAt this post we will reveal below ansible modules and get them on practice with examples command copy file user group service script Ansible m 阅读全文

3 - Ansible common modules Part 1

2021-08-07 18:45 by WayneWei, 20 阅读, 0 推荐, 收藏, 编辑
摘要:OverviewAt this post we will reveal below ansible modules and get them on practice with examples command copy file user group service script setup Ans 阅读全文

2 - Ansible inventory and documentation

2021-08-07 13:08 by WayneWei, 23 阅读, 0 推荐, 收藏, 编辑
摘要:Ansible InventoryBefore we dive into Ansible and practice, there is one more thing we need to do is take care with the ansible inventory, to declare o 阅读全文

1 - Ansible Provision and configuration

2021-08-07 11:21 by WayneWei, 36 阅读, 0 推荐, 收藏, 编辑
摘要:Environment preparationGet ready with 2 CentOS virtual machine, and configure the network to able connect internet and internal communication.Please r 阅读全文

8 - Introduce k8s network - using flannel

2021-07-22 19:58 by WayneWei, 43 阅读, 0 推荐, 收藏, 编辑
摘要:Prerequisites: Prerequisites: Node OS IP k8s-master CentOS7 192.168.137.161 k8s-node1 CentOS7 192.168.137.162 Install Flannel: Download flannel descri 阅读全文

7 - Install Kubernetes - via kubeadm

2021-07-15 13:29 by WayneWei, 42 阅读, 0 推荐, 收藏, 编辑
摘要:Prerequisites: Node OS IP k8s-master CentOS7 192.168.137.161 k8s-node1 CentOS7 192.168.137.162 We now have Docker running on both master and node1, it 阅读全文

Algorithm - Binary search

2021-06-23 16:49 by WayneWei, 32 阅读, 0 推荐, 收藏, 编辑
摘要:Algorithm implementation Binary search: # Binary tree class Node: def __init__(self, data): self.data = data self.left = None self.right = None def in 阅读全文

Algorithm - Quick sort

2021-06-23 16:41 by WayneWei, 31 阅读, 0 推荐, 收藏, 编辑
摘要:Algorithm implementation Quick sort: # Quick sort mylist = [3, 6, 9, 2, 5, 8, 1, 4, 7] def quicksort(list, start, end): if start > end: return pivot = 阅读全文

Algorithm - Fibonacci

2021-06-23 16:33 by WayneWei, 34 阅读, 0 推荐, 收藏, 编辑
摘要:Algorithm implementation Fabonacci: # Fabonacci: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 def recursion(n): if n == 1 or n == 2: return 1 else: return recursi 阅读全文