An open API service indexing awesome lists of open source software.

https://github.com/abhishek010397/ops-task


https://github.com/abhishek010397/ops-task

Last synced: 6 months ago
JSON representation

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