DevOps Ci/Cd python,docker,jenkins

Steps Continuos integration merge all code work into a master branch code reviews, copile,build, unit tests,integration tests Continuos delivery deploy to test Server (in this case azure vm) UAT,QA build are delivered throughout the life cycle Continuis Deployment deploy to prod sercer or release Work Job in this case where deploy the image in the same machine where jenkins is running and if it is successful then it is going to publish it to the docker hub and then the next stage jenkins will actually deploy the image to the server...

<span title='2022-08-26 19:32:23 +0000 UTC'>August 26, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;Ancordss

DevOps CI/CD Project 02

Simple DevOps Project -02 Prerequisites: Ansible server Jenkins Server Tocmat Server Part-01 Integration Setps Install “publish Over SSH” Manage Jenkins > Manage Plugins > Available > Publish over SSH Enable connection between Ansible and Jenkins Manage Jenkins > Configure System > Publish Over SSH > SSH Servers SSH Servers: Hostname:<ServerIP> username: ansadmin password: ******* Test the connection “Test Connection” Part-02 - Execute job to connect create a copywarfile.yml on Ansible under /opt/playbooks...

<span title='2022-08-09 22:18:56 +0000 UTC'>August 9, 2022</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;Ancordss

DevOps CI/CD 1

Simple DevOps Project -01 We know how to use work with each and Git, Jenkins independently. What if you want to collaborate these two? that is where Simple DevOps project helps you. Follow below steps if you are a new guy to DevOps. You love it. Prerequisites Azure vm with tomcat installation Jenkins server Part-01 : Adding steps for Integration Steps to create Jenkin job Login to Jenkins console Create Jenkins job, Fill the following details, Source Code Management: Repository: https://github....

<span title='2022-08-07 19:43:44 +0000 UTC'>August 7, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;Ancordss

Kubernetes

What is Kubernetes? is a technology that allows to orchestrate docker containers componenetes: control plane Node Scheduler kube-proxy kubelet etcd controller manager Cloud controller manager Api server notes for using kubernets requirements: docker install kubectl and kubernetes have docker installed to use or practice using minikube to start minikube running : sudo sysctl fs.protected_regular=0 sudo minikube start commands can now be executed [run as root] most used commands kubectl config get-contexts kubectl get ns [show pods] kubectl -n kube-system get pods [you can pass more commands like -o wide] kubectl delete pod "pod name" kubectl delete -f "file name" [delete the pods that the file creates] kubectl get pod "pod name" [to see the state of the pod, you can pass -o yaml and it will show all the yaml of the pod ] kubectl describe pod "pod name" kubectl get pvc kubectl delete pvc "pvc name" kubectl get sts kubectl delete sts "statefulset name" manifests [to understand review 01-pod....

<span title='2022-08-06 00:49:56 +0000 UTC'>August 6, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;Ancordss

Kubernetes[espa]

que es Kubernetes? es una tecnologia que permite orquestar contenedores docker componenetes: control plane Node Scheduler kube-proxy kubelet etcd controller manager Cloud controller manager Api server notas para usar kubernets requisitos: docker instalar kubectl y kubernetes tener instalado docker para usar o practicar usar minikube para iniciar minikube correr : sudo sysctl fs.protected_regular=0 sudo minikube start ahora ya se pueden ejecutar comandos [ejecutar como root] comandos mas usados kubectl config get-contexts kubectl get ns [para ver pods] kubectl -n kube-system get pods [se le puden pasar mas comandos como -o wide] kubectl delete pod "nombre del pod" kubectl delete -f "nombre del archivo" [elimina los pods que crea el archivo] kubectl get pod "nombre del pod" [para ver el estado del pod, se le puede pasar -o yaml y mostrara todo el yaml del pod ] kubectl describe pod "nombre del pod" kubectl get pvc kubectl delete pvc "nombre del pvc" kubectl get sts kubectl delete sts "nombre del statefulset" manifiestos [para entender revisar 01-pod....

<span title='2022-05-10 16:02:38 +0000 UTC'>May 10, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;Ancordss

Ansible | creando Playbooks

Un playbook es un archivo donde se escribiran todas las tareas que quieres que se hagan con ansible es escrito en yml y es mas facil porque solo tendremos que ejecutarlo no tendremos que escribir cada comando y recordarlo. Primer paso crearemos una archivo llamado tareas.yml segundo paso escribiremos el siguiente codigo: --- - hosts: all name: creando un playbook become: true task: - name: instala vim apt: name=vim state=present - name: comando shell shell: echo hola - name: detiene servicio service: name=nginx state=stoppeda - name: start servicio service: name=nginx state=started – [En la variable hosts podemos especificar ip/dominio igual podemos colocar el nombre de los grupos a los que queremos que se les apliquen estos cambios]...

<span title='2022-05-05 15:45:55 +0000 UTC'>May 5, 2022</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;Ancordss

Iniciando con Ansible

para instalar ansible agrega el repositoria a ubuntu y luego correo sudo apt install ansible para que funcione bien tienes que tener un servidor al cual conectarte con ssh en mi caso estoy usando uno que cree con una maquin virtual comando para probar un ping ssh usuario@ip -p puerto en mi caso es ssh anco@192.168.1.8 -p 22 si todo sale bien ahora podras controlar el servidor desde tu maquina....

<span title='2022-05-04 16:57:32 +0000 UTC'>May 4, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;Ancordss