https://github.com/abhishek010397/ops-task
https://github.com/abhishek010397/ops-task
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abhishek010397/ops-task
- Owner: Abhishek010397
- Created: 2020-06-27T12:46:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T13:12:52.000Z (over 5 years ago)
- Last Synced: 2025-02-15T11:18:45.493Z (8 months ago)
- Language: Dockerfile
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VagrantBox Setup
to setup ubuntu on VagrantBox:
sudo vi bootstrap.sh
Save the file and exit. Next, edit the Vagrantfile and add the provisioning line.
# Kuberenetes Setup
For namespaces follow:
kubectl create namespace
kubectl get namespaces
kubectl config view
kubectl config current-context
kubectl config set-context dev --namespace= \
--cluster=default \
--user=default
To view the new contexts:
kubectl config view
Let's switch to operate in the new namespace.kubectl config use-context
You can verify your current context by doing the following:kubectl config current-context
# Ansible Setup
Provide the host ip_address in the /et/ansible/host and also provide python_ansible_interpreter:sudo nano /etc/ansible/hosts
[nodes]
slave1 ansible_ssh_host=
[nodes:vars]
ansible_python_interpreter=/usr/bin/python3
refer the blogs:https://www.techrepublic.com/article/how-to-install-ansible-on-ubuntu-server-18-04/
refer the blogs:https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html