Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
harshakp06 authored Mar 12, 2024
1 parent 2378103 commit b574b1b
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# kubernetes-devops-security


## Deployment on Kubernetes using ArgoCD
ArgoCD will automatically update the Deployemnt if there is any change in the Deployement file
Here I used Jenkins to build and push to Docker Hub with GitHub/Git commit ID tag

So, here I used Github Actions to update the Kubernetes Deployment File which is present on argocd brach in this repo with Github/Git Commit Id to the docker image tag
Next Argo CD will pull new Docker image from the Docker Hub and deploy to the Kubernetes

> Note : I used Jenkins to build and push and Github actions to update commit id to the k8s_deployment_service.yaml (argocd branch) on which is tracked by ArgoCD, if there is any changes to the file ArgoCD will bring our Deployemnt to the Desire state
> I got issues while updating and pushing k8s_deployment_service.yaml to argocd branch using Jenkins, there are ways to solve it. But I want to experiment with Github Actions, I tried updating k8s_deployment_service.yaml and pusing it to argocd branch
I used rollback on ArgoCD dashboard to get to previous docker image, if there is any issue with newer image

## Removing resources

At first I removed the Deplyment App from Argo CD Dashboard
Next Removing all resources from Argo CD Namespace - pods, deployments, services
Next Removing Argo CD Namespace

If you check `kubectl get all -n numeric` you can find no resources (here I named Deploying namespace as numeric )



## Plugins

Blueocean
Expand Down Expand Up @@ -81,20 +103,4 @@ Addons will install Grafana, Prometheus, Jaeger, Kiali
Setting Context https://humalect.com/blog/kubectl-config-set-context


## Fork and Clone this Repo

## Clone to Desktop and VM

## Microservice - Docker Image -

`docker run -p 8787:5000 hasrhakp06/node-service:v1`

`curl localhost:8787/plusone/99`

## Microservice - Kubernetes Deployment -

`kubectl create deploy node-app --image harshakp06/node-service:v1`

`kubectl expose deploy node-app --name node-service --port 5000 --type ClusterIP`

`curl node-service-ip:5000/plusone/99`

0 comments on commit b574b1b

Please sign in to comment.