https://github.com/abhishek010397/ansible-kubernetes
https://github.com/abhishek010397/ansible-kubernetes
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abhishek010397/ansible-kubernetes
- Owner: Abhishek010397
- Created: 2020-03-13T13:33:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-07T15:14:50.000Z (over 5 years ago)
- Last Synced: 2025-02-15T11:19:07.637Z (8 months ago)
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible-Kubernetes
----------------------------------------------------------------------------------------------------------------------------------------
# put 3 EC2 instances
1. Ansible Controller
2. k8s Master t2.medium 4GB RAM, 2CORE
3. the node
----------------------------------------------------------------------------------------------------------------------------------------# create a directory in ansible controller
mkdir kubernetes
put all the playbooks for master as well as node over here.
----------------------------------------------------------------------------------------------------------------------------------------# do ssh-keygen on both k8s master and the node
test all the host using ssh ubuntu@----------------------------------------------------------------------------------------------------------------------------------------
# edit the host.ini fileput your master and node ip address: hostname ansible_ssh_host=
----------------------------------------------------------------------------------------------------------------------------------------
# ping your hosts from ansible controller
ansible -m ping all----------------------------------------------------------------------------------------------------------------------------------------
# run the site.yaml file from ansible controller
ansible-playbook site.yaml----------------------------------------------------------------------------------------------------------------------------------------
# for server hardening change the outbound rules of the instances to HTTP/HTTPS and choose the ip as anywhere.