├── README.md └── yamls ├── deployment.yaml └── service.yaml /README.md: -------------------------------------------------------------------------------- 1 | # DevOps_MasterPiece-CD-with-argocd 2 | 3 | ### This repo contains the deployment ( to deploy the application) and service (to expose to the application) manifest for Kubernetes. 4 | 5 | ### I configured this repo's main branch with ArgoCD for continuous deployment. 6 | -------------------------------------------------------------------------------- /yamls/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: spring-app-deployment 5 | labels: 6 | app: spring-app 7 | spec: 8 | replicas: 2 9 | selector: 10 | matchLabels: 11 | app: spring-app 12 | template: 13 | metadata: 14 | labels: 15 | app: spring-app 16 | spec: 17 | containers: 18 | - name: spring-app 19 | image: praveensirvi/spring-app:51-270aaf6d6bf6ff156230b951a54fb817847bd7c3 20 | imagePullPolicy: IfNotPresent 21 | ports: 22 | - containerPort: 8081 23 | -------------------------------------------------------------------------------- /yamls/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: spring-boot-service 5 | spec: 6 | selector: 7 | app: spring-app 8 | type: NodePort 9 | ports: 10 | - name: http 11 | port: 8081 12 | targetPort: 8081 13 | protocol: TCP 14 | nodePort: 30038 15 | --------------------------------------------------------------------------------