From a347937684737791cc0f8dc05df6e974a90d18f6 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 10 Nov 2021 18:12:47 +0530 Subject: [PATCH 01/51] Update ci.yml --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9235cdb8..5e99a7ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,3 +21,14 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - name: SonarQube Quality Gate check + uses: sonarsource/sonarqube-quality-gate-action@master + # Force to fail step after specific time + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 8ee5a1c2ba5d120a3af629027ef31b17b55b0d30 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 10 Nov 2021 18:17:24 +0530 Subject: [PATCH 02/51] Update ci.yml --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e99a7ea..718f6fed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,3 +32,8 @@ jobs: timeout-minutes: 5 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Install Datree + run: curl https://get.datree.io | /bin/bash + + - name: Run Datree's policy check + run: datree test kube.yaml From c00b73e7812d8e11d2c195f05aa752d01f84b885 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 10 Nov 2021 18:25:10 +0530 Subject: [PATCH 03/51] Update ci.yml --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 718f6fed..f02131ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,9 @@ name: Java CI with Gradle on: pull_request: branches: [ main ] + +env: + DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} jobs: build: @@ -37,3 +40,5 @@ jobs: - name: Run Datree's policy check run: datree test kube.yaml + + From b4918f2fdaa81645f07c47f677ed2b4906006095 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 08:28:35 +0530 Subject: [PATCH 04/51] Create cicd.yaml --- .github/workflows/cicd.yaml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/cicd.yaml diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.github/workflows/cicd.yaml @@ -0,0 +1 @@ + From 47a7623b10d6ce865ba89a36895f4fa3e0a0e9f2 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 08:35:17 +0530 Subject: [PATCH 05/51] Delete cicd.yaml --- .github/workflows/cicd.yaml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/workflows/cicd.yaml diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml deleted file mode 100644 index 8b137891..00000000 --- a/.github/workflows/cicd.yaml +++ /dev/null @@ -1 +0,0 @@ - From bb61be587741fef785c54772b85c982b3caca726 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 08:40:21 +0530 Subject: [PATCH 06/51] Create cicd.yml --- .github/workflows/cicd.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/cicd.yml diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.github/workflows/cicd.yml @@ -0,0 +1 @@ + From d8a7eb8001e432725a59a123e7b8a4f7b50a8cf1 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 08:48:44 +0530 Subject: [PATCH 07/51] Update cicd.yml --- .github/workflows/cicd.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 8b137891..0e8318e9 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1 +1,42 @@ +name: Java CICD with Gradle +on: + push: + branches: [ main ] + +env: + DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} + +jobs: + build: + + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: gradle + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - name: SonarQube Quality Gate check + uses: sonarsource/sonarqube-quality-gate-action@master + # Force to fail step after specific time + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Install Datree + run: curl https://get.datree.io | /bin/bash + + - name: Run Datree's policy check + run: datree test kube.yaml From f538b9e2ab7cbd4267b2754aea3fd7ee2aee169b Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 09:01:38 +0530 Subject: [PATCH 08/51] Update cicd.yml --- .github/workflows/cicd.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 0e8318e9..e48226dc 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -40,3 +40,10 @@ jobs: - name: Run Datree's policy check run: datree test kube.yaml + + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + registry: 34.125.31.157:8083 + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} From f82bb4cfa8426b6f839762685d52c887e303fac1 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 09:12:12 +0530 Subject: [PATCH 09/51] Update cicd.yml --- .github/workflows/cicd.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index e48226dc..0b0a6054 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -41,9 +41,16 @@ jobs: - name: Run Datree's policy check run: datree test kube.yaml - - name: Login to Docker Hub + - name: Login to Nexus registy uses: docker/login-action@v1 with: registry: 34.125.31.157:8083 username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: docker build & docker + run: | + docker build -t 34.125.31.157:8083/javaapp:${{ github.run_number }} . + docker push 34.125.31.157:8083/javaapp:${{ github.run_number }} + docker rmi 34.125.31.157:8083/javaapp:${{ github.run_number }} + From 5e96dd14c91321f517b1f55e3647fbbdff2d16ed Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 09:23:31 +0530 Subject: [PATCH 10/51] Update cicd.yml --- .github/workflows/cicd.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 0b0a6054..f805fd50 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -6,7 +6,8 @@ on: env: DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} - + KUBECONFIG: /home/alerts_deekshith/kubeconfig/config_now + jobs: build: @@ -48,9 +49,15 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: docker build & docker + - name: docker build & docker push run: | docker build -t 34.125.31.157:8083/javaapp:${{ github.run_number }} . docker push 34.125.31.157:8083/javaapp:${{ github.run_number }} docker rmi 34.125.31.157:8083/javaapp:${{ github.run_number }} + - name: deploying manifest file on k8s cluster + run: | + sed -i "s;imagename;34.125.31.157:8083/javaapp:${{ github.run_number }};g" kube.yaml + kubectl apply -f kube.yaml + sleep 30 + kubectl get po From f3a0b91c985f3b22646225cb284a82bd41c756e9 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 09:44:02 +0530 Subject: [PATCH 11/51] Update cicd.yml --- .github/workflows/cicd.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index f805fd50..d6773d69 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -61,3 +61,24 @@ jobs: kubectl apply -f kube.yaml sleep 30 kubectl get po + + - name: verification + run: | + sleep 60 + kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myapp:8080 + + - name: Send email + if: always() + uses: dawidd6/action-send-mail@v2 + with: + server_address: smtp.gmail.com + server_port: 465 + username: ${{ secrets.EMAIL_USERNAME }} + password: ${{ secrets.EMAIL_PASSWORD }} + subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }} + # email body as text + body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }} + # comma-separated string, send email to + to: deekshith.snsep@gmail.com + # from email name + from: deekshith.snsep@gmail.com From 80811c3eb1e0c595c6a6fc38d3de653d712eb3bb Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Thu, 11 Nov 2021 09:55:46 +0530 Subject: [PATCH 12/51] Update index.html --- src/main/resources/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 017ca718..4d30e162 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -4,7 +4,7 @@ web app -

Sample Web application

+

Sample Web application has been deployed with Github action

- \ No newline at end of file + From 0abfbd8a857f30ef9fbdcb157e936f740242958c Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 19:28:46 +0530 Subject: [PATCH 13/51] Create JenkinsfileFilter --- JenkinsfileFilter | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 JenkinsfileFilter diff --git a/JenkinsfileFilter b/JenkinsfileFilter new file mode 100644 index 00000000..04576bd3 --- /dev/null +++ b/JenkinsfileFilter @@ -0,0 +1,23 @@ +pipeline { + agent { + docker { + image 'maven' + args '-v $HOME/.m2:/root/.m2' + } + } + + stages { + stage('Building') { + steps { + sh "mvn clean install | tee output.log" + } + } + stage('Monitoring the logs') { + steps { + script { + sh '! grep "WARNING" output.log' + } + } + } + } +} From b90adda0c8c0092dc492669a16200f65ad768e2b Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 19:31:09 +0530 Subject: [PATCH 14/51] Update JenkinsfileFilter --- JenkinsfileFilter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsfileFilter b/JenkinsfileFilter index 04576bd3..ebe34b49 100644 --- a/JenkinsfileFilter +++ b/JenkinsfileFilter @@ -9,7 +9,7 @@ pipeline { stages { stage('Building') { steps { - sh "mvn clean install | tee output.log" + sh "./gradlew build | tee output.log" } } stage('Monitoring the logs') { From 1116da7a4c5e6ba527b4f772ffb2d6eeb80690a6 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 19:31:50 +0530 Subject: [PATCH 15/51] Update JenkinsfileFilter --- JenkinsfileFilter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsfileFilter b/JenkinsfileFilter index ebe34b49..b66c8d2d 100644 --- a/JenkinsfileFilter +++ b/JenkinsfileFilter @@ -1,7 +1,7 @@ pipeline { agent { docker { - image 'maven' + image 'gradle' args '-v $HOME/.m2:/root/.m2' } } From 54b2dacd608d24ff421f7ba80fde870a14021464 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 19:37:05 +0530 Subject: [PATCH 16/51] Update JenkinsfileFilter --- JenkinsfileFilter | 1 + 1 file changed, 1 insertion(+) diff --git a/JenkinsfileFilter b/JenkinsfileFilter index b66c8d2d..769418c0 100644 --- a/JenkinsfileFilter +++ b/JenkinsfileFilter @@ -9,6 +9,7 @@ pipeline { stages { stage('Building') { steps { + sh 'chmod +x gradlew' sh "./gradlew build | tee output.log" } } From 90b584d15f1367e3cd599e513031f5ff94846e97 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 19:38:08 +0530 Subject: [PATCH 17/51] Update JenkinsfileFilter --- JenkinsfileFilter | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/JenkinsfileFilter b/JenkinsfileFilter index 769418c0..f46aadea 100644 --- a/JenkinsfileFilter +++ b/JenkinsfileFilter @@ -1,8 +1,7 @@ pipeline { agent { docker { - image 'gradle' - args '-v $HOME/.m2:/root/.m2' + image 'openjdk:11' } } From fbc21021469aa3b77331a8c15300cb7d0e442f73 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 19:58:03 +0530 Subject: [PATCH 18/51] Create JenkinsfileSharedLibrary --- JenkinsfileSharedLibrary | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 JenkinsfileSharedLibrary diff --git a/JenkinsfileSharedLibrary b/JenkinsfileSharedLibrary new file mode 100644 index 00000000..011ecdc4 --- /dev/null +++ b/JenkinsfileSharedLibrary @@ -0,0 +1,26 @@ +#!/usr/bin/env groovy + +@Library('shared-library@master') _ //master or whatever branch + + +pipeline { + agent { + docker { + image 'openjdk:11' + } + } + + stages { + stage('Building') { + steps { + sh 'chmod +x gradlew' + sh "./gradlew build | tee output.log" + } + } + stage ('Check logs') { + steps { + filterLogs ('WARNING', 10) + } + } + } +} From 790abff6e113be501605ea755ec5f67e90b1362d Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 20:00:17 +0530 Subject: [PATCH 19/51] Update JenkinsfileSharedLibrary --- JenkinsfileSharedLibrary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsfileSharedLibrary b/JenkinsfileSharedLibrary index 011ecdc4..a7b07532 100644 --- a/JenkinsfileSharedLibrary +++ b/JenkinsfileSharedLibrary @@ -14,7 +14,7 @@ pipeline { stage('Building') { steps { sh 'chmod +x gradlew' - sh "./gradlew build | tee output.log" + sh "./gradlew build " } } stage ('Check logs') { From 24540ab906baeea081683edd6c7ceed307abeec2 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 20:01:08 +0530 Subject: [PATCH 20/51] Update JenkinsfileSharedLibrary --- JenkinsfileSharedLibrary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsfileSharedLibrary b/JenkinsfileSharedLibrary index a7b07532..f0b7be03 100644 --- a/JenkinsfileSharedLibrary +++ b/JenkinsfileSharedLibrary @@ -19,7 +19,7 @@ pipeline { } stage ('Check logs') { steps { - filterLogs ('WARNING', 10) + filterLogs ('Task', 2) } } } From 182c34b0ccb029124920d161ce909def45a7e896 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 20:45:16 +0530 Subject: [PATCH 21/51] Update JenkinsfileFilter --- JenkinsfileFilter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsfileFilter b/JenkinsfileFilter index f46aadea..1c68c70e 100644 --- a/JenkinsfileFilter +++ b/JenkinsfileFilter @@ -15,7 +15,7 @@ pipeline { stage('Monitoring the logs') { steps { script { - sh '! grep "WARNING" output.log' + sh '! grep "Task" output.log' } } } From 7e06c4fecc099407e7dff856b3912787a1bd1c95 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Sun, 9 Jan 2022 21:12:43 +0530 Subject: [PATCH 22/51] Update JenkinsfileSharedLibrary --- JenkinsfileSharedLibrary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsfileSharedLibrary b/JenkinsfileSharedLibrary index f0b7be03..0a04c9fb 100644 --- a/JenkinsfileSharedLibrary +++ b/JenkinsfileSharedLibrary @@ -19,7 +19,7 @@ pipeline { } stage ('Check logs') { steps { - filterLogs ('Task', 2) + filterLogs ('Task', 15) } } } From c23240b924eab755bb984a93b793b124a2af6eb7 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Mon, 21 Feb 2022 08:25:22 +0530 Subject: [PATCH 23/51] Update build.gradle --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 1e8ba502..2b60d6a0 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ test { sonarqube { properties { - property 'sonar.host.url', 'http://34.125.75.197:9000' + property 'sonar.host.url', 'http://34.125.201.58:9000' property 'sonar.login', '******' } } From a73124d6acb814db815b914c96bd08492916cb3d Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Mon, 21 Feb 2022 08:31:09 +0530 Subject: [PATCH 24/51] Create Jenkinsfile_demo --- Jenkinsfile_demo | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Jenkinsfile_demo diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo new file mode 100644 index 00000000..2f4b3329 --- /dev/null +++ b/Jenkinsfile_demo @@ -0,0 +1,24 @@ +pipeline{ + agent any + stages{ + stage("sonar qube analysis"){ + agent{ + docker { + image 'openjdk:11' + } + } + steps{ + script{ + withSonarQubeEnv(credentialsId: 'sonar-token-test') { + sh ''' + chmod +x gradlew + ./gradlew sonarqube + ''' + } + + } + } + } + } + +} From 0e48b55fb2e20aa5f476ee209ca4d598bbebf28e Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Mon, 21 Feb 2022 08:33:40 +0530 Subject: [PATCH 25/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index 2f4b3329..39990679 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -1,12 +1,13 @@ pipeline{ - agent any - stages{ - stage("sonar qube analysis"){ - agent{ - docker { + agent{ + docker { image 'openjdk:11' } } + + stages{ + stage("sonar qube analysis"){ + steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token-test') { From e1384999887c2a506bb3d22055c4d77addc3eb36 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Mon, 21 Feb 2022 08:41:41 +0530 Subject: [PATCH 26/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index 39990679..dfcd6499 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -1,13 +1,12 @@ pipeline{ - agent{ - docker { + agent any + stages{ + stage("sonar qube analysis"){ + agent{ + docker { image 'openjdk:11' } } - - stages{ - stage("sonar qube analysis"){ - steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token-test') { @@ -17,6 +16,13 @@ pipeline{ ''' } + timeout(5) { + def qg = waitForQualityGate() + if (qg.status != 'OK') { + error "Pipeline aborted due to quality gate failure: ${qg.status}" + } + } + } } } From b1ed91716bb067c046b3d63ec173353e81e09e32 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Mon, 21 Feb 2022 08:54:43 +0530 Subject: [PATCH 27/51] Update index.html --- src/main/resources/templates/index.html | 233 ++++++++++++++++++++++++ 1 file changed, 233 insertions(+) diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 4d30e162..414eacf6 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -8,3 +8,236 @@

Sample Web application has been deployed with Github action

+ + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + + + + + web app + + +

Sample Web application has been deployed with Github action

+ + + + + From 603a877b392178029d4ead3c443c54f4ed10ccc1 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Tue, 22 Feb 2022 08:00:40 +0530 Subject: [PATCH 28/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index dfcd6499..f3e858d3 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -1,5 +1,8 @@ pipeline{ agent any + environment{ + VERSION = "${env.BUILD_ID}" + } stages{ stage("sonar qube analysis"){ agent{ @@ -22,10 +25,29 @@ pipeline{ error "Pipeline aborted due to quality gate failure: ${qg.status}" } } - } } } + + stage("building docker image and pushing it to nexus"){ + steps{ + script{ + + withCredentials([string(credentialsId: 'nexs-password', variable: 'docker-passwd')]) { + sh ''' + + docker build -t 34.125.203.155:8083/springapp:${VERSION} . + docker login -u admin -p $docker-passwd 34.125.203.155:8083 + docker push 34.125.203.155:8083/springapp:${VERSION} + docker rmi 34.125.203.155:8083/springapp:${VERSION} + ''' + } + } + } + } + + + } } From 8c617f8e97ff61d4c308f3e0d772d3d702e37b49 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Tue, 22 Feb 2022 08:05:52 +0530 Subject: [PATCH 29/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index f3e858d3..d211eb0a 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -33,11 +33,11 @@ pipeline{ steps{ script{ - withCredentials([string(credentialsId: 'nexs-password', variable: 'docker-passwd')]) { + withCredentials([string(credentialsId: 'nexus_pass', variable: 'docker_pass')]) { sh ''' docker build -t 34.125.203.155:8083/springapp:${VERSION} . - docker login -u admin -p $docker-passwd 34.125.203.155:8083 + docker login -u admin -p $docker_pass 34.125.203.155:8083 docker push 34.125.203.155:8083/springapp:${VERSION} docker rmi 34.125.203.155:8083/springapp:${VERSION} ''' From f584c8ffe831b9a8fa9324199b18520bdf185c7e Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Tue, 22 Feb 2022 08:29:03 +0530 Subject: [PATCH 30/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index d211eb0a..a360dfae 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -39,14 +39,26 @@ pipeline{ docker build -t 34.125.203.155:8083/springapp:${VERSION} . docker login -u admin -p $docker_pass 34.125.203.155:8083 docker push 34.125.203.155:8083/springapp:${VERSION} - docker rmi 34.125.203.155:8083/springapp:${VERSION} + docker rmi 34.125.203.155:8083/springapp:${VERSION} + docker image prune -f ''' - } + } } } } + stage('manual approval'){ + steps{ + script{ + timeout(10) { + mail bcc: '', body: "
Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
Go to build url and approve the deployment request
URL de build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "${currentBuild.result} CI: Project name -> ${env.JOB_NAME}", to: "deekshith.snsep@gmail.com"; + input(id: "Deploy Gate", message: "Deploy ${params.project_name}?", ok: 'Deploy') + } + } + } + } + } From 07ffff3c5292cb2932069abce4ebd0d23901f75c Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Tue, 22 Feb 2022 08:51:45 +0530 Subject: [PATCH 31/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index a360dfae..3f537fc7 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -53,13 +53,27 @@ pipeline{ script{ timeout(10) { mail bcc: '', body: "
Project: ${env.JOB_NAME}
Build Number: ${env.BUILD_NUMBER}
Go to build url and approve the deployment request
URL de build: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "${currentBuild.result} CI: Project name -> ${env.JOB_NAME}", to: "deekshith.snsep@gmail.com"; - input(id: "Deploy Gate", message: "Deploy ${params.project_name}?", ok: 'Deploy') + // input(id: "Deploy Gate", message: "Deploy ${params.project_name}?", ok: 'Deploy') } } } } + + stage('Deploying application on k8s cluster') { + steps { + script{ + withCredentials([kubeconfigFile(credentialsId: 'kubernetes-config', variable: 'KUBECONFIG')]) { + dir('kubernetes/') { + + sh 'helm upgrade --install --set image.repository="34.125.203.155:8083/springapp" --set image.tag="${VERSION}" myjavaapp myapp/ ' + } + } + } + } + } + } } From fc5eea6b2e9d652ee0419f669c84d404857ff160 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 23 Feb 2022 07:56:47 +0530 Subject: [PATCH 32/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index 3f537fc7..dccb0064 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -73,6 +73,19 @@ pipeline{ } } } + + + stage('verifying app deployment'){ + steps{ + script{ + withCredentials([kubeconfigFile(credentialsId: 'kubernetes-config', variable: 'KUBECONFIG')]) { + sh 'kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myjavaapp-myapp:8080' + + } + } + } + } + } } From 1c901c60df2776a2c8883a410e5835dccb9d8883 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 23 Feb 2022 07:58:25 +0530 Subject: [PATCH 33/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index dccb0064..e37a34f1 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -85,7 +85,7 @@ pipeline{ } } } - } + } From 393651fd05c198ba466fce2e76f80ca70732a739 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 23 Feb 2022 08:03:42 +0530 Subject: [PATCH 34/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index e37a34f1..d849e466 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -79,7 +79,11 @@ pipeline{ steps{ script{ withCredentials([kubeconfigFile(credentialsId: 'kubernetes-config', variable: 'KUBECONFIG')]) { - sh 'kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myjavaapp-myapp:8080' + sh ''' + echo "executing health check it might take a while" + sleep 60 + kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myjavaapp-myapp:8080 + ''' } } From aeb8d97af6773c8ac0e4ed317c6e8ce0894c881b Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 23 Feb 2022 08:04:16 +0530 Subject: [PATCH 35/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index d849e466..840a8004 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -81,7 +81,7 @@ pipeline{ withCredentials([kubeconfigFile(credentialsId: 'kubernetes-config', variable: 'KUBECONFIG')]) { sh ''' echo "executing health check it might take a while" - sleep 60 + sleep 120 kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myjavaapp-myapp:8080 ''' From f0527aadf1c303d144040ab6084b4ccae64cb344 Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 23 Feb 2022 08:21:27 +0530 Subject: [PATCH 36/51] Create healthcheck.sh --- healthcheck.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 healthcheck.sh diff --git a/healthcheck.sh b/healthcheck.sh new file mode 100644 index 00000000..c0244ee6 --- /dev/null +++ b/healthcheck.sh @@ -0,0 +1,10 @@ +echo "executing health check it might take a while" +sleep 120 +kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myjavaapp-myapp:8080 + +if [ $? -eq 0 ] +then + echo "The Deployment is success...Application Health is Good" +else + helm rollback myjavaapp +fi From ba8bdbf2f4bc487544ec007caede3b234a8055ba Mon Sep 17 00:00:00 2001 From: Deekshith SN Date: Wed, 23 Feb 2022 08:22:25 +0530 Subject: [PATCH 37/51] Update Jenkinsfile_demo --- Jenkinsfile_demo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile_demo b/Jenkinsfile_demo index 840a8004..8fb707fa 100644 --- a/Jenkinsfile_demo +++ b/Jenkinsfile_demo @@ -80,9 +80,9 @@ pipeline{ script{ withCredentials([kubeconfigFile(credentialsId: 'kubernetes-config', variable: 'KUBECONFIG')]) { sh ''' - echo "executing health check it might take a while" - sleep 120 - kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myjavaapp-myapp:8080 + + chmod +x healthcheck.sh + ./healthcheck.sh ''' } From 638e7686100288a9a2950a1e130fc1cb456ee6eb Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 20:26:20 +0530 Subject: [PATCH 38/51] Delete .github/workflows directory --- .github/workflows/ci.yml | 44 -------------------- .github/workflows/cicd.yml | 84 -------------------------------------- 2 files changed, 128 deletions(-) delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/cicd.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index f02131ce..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Java CI with Gradle - -on: - pull_request: - branches: [ main ] - -env: - DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - cache: gradle - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - - name: SonarQube Quality Gate check - uses: sonarsource/sonarqube-quality-gate-action@master - # Force to fail step after specific time - timeout-minutes: 5 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: Install Datree - run: curl https://get.datree.io | /bin/bash - - - name: Run Datree's policy check - run: datree test kube.yaml - - diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml deleted file mode 100644 index d6773d69..00000000 --- a/.github/workflows/cicd.yml +++ /dev/null @@ -1,84 +0,0 @@ -name: Java CICD with Gradle - -on: - push: - branches: [ main ] - -env: - DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} - KUBECONFIG: /home/alerts_deekshith/kubeconfig/config_now - -jobs: - build: - - runs-on: self-hosted - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - java-version: '11' - distribution: 'adopt' - cache: gradle - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - - name: SonarQube Quality Gate check - uses: sonarsource/sonarqube-quality-gate-action@master - # Force to fail step after specific time - timeout-minutes: 5 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: Install Datree - run: curl https://get.datree.io | /bin/bash - - - name: Run Datree's policy check - run: datree test kube.yaml - - - name: Login to Nexus registy - uses: docker/login-action@v1 - with: - registry: 34.125.31.157:8083 - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: docker build & docker push - run: | - docker build -t 34.125.31.157:8083/javaapp:${{ github.run_number }} . - docker push 34.125.31.157:8083/javaapp:${{ github.run_number }} - docker rmi 34.125.31.157:8083/javaapp:${{ github.run_number }} - - - name: deploying manifest file on k8s cluster - run: | - sed -i "s;imagename;34.125.31.157:8083/javaapp:${{ github.run_number }};g" kube.yaml - kubectl apply -f kube.yaml - sleep 30 - kubectl get po - - - name: verification - run: | - sleep 60 - kubectl run curl --image=curlimages/curl -i --rm --restart=Never -- curl myapp:8080 - - - name: Send email - if: always() - uses: dawidd6/action-send-mail@v2 - with: - server_address: smtp.gmail.com - server_port: 465 - username: ${{ secrets.EMAIL_USERNAME }} - password: ${{ secrets.EMAIL_PASSWORD }} - subject: ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }} - # email body as text - body: ${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }} - # comma-separated string, send email to - to: deekshith.snsep@gmail.com - # from email name - from: deekshith.snsep@gmail.com From 1d9d79ecc6e82276b5edd40896bfaac96825b73f Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 20:27:18 +0530 Subject: [PATCH 39/51] Create ci.yml --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e5e549ca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: Java CI with Gradle + +on: + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build From 831c437905489762e002c92d5cbfee454ecc4990 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 20:30:03 +0530 Subject: [PATCH 40/51] Update kube.yaml --- kube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube.yaml b/kube.yaml index cce8f1cc..cffb42e5 100644 --- a/kube.yaml +++ b/kube.yaml @@ -47,7 +47,7 @@ spec: - name: registry-secret containers: - name: myapp - image: nginx:1.0 + image: nginx:2.0 command: ["/bin/sh"] args: ["-c","sh /usr/local/tomcat/bin/startup.sh;while true; do echo hello; sleep 10;done"] imagePullPolicy: IfNotPresent From f2b27301f4eb9b5b038990353c0a62663b2a91b9 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 20:32:17 +0530 Subject: [PATCH 41/51] Update kube.yaml --- kube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube.yaml b/kube.yaml index cffb42e5..f1a4102a 100644 --- a/kube.yaml +++ b/kube.yaml @@ -47,7 +47,7 @@ spec: - name: registry-secret containers: - name: myapp - image: nginx:2.0 + image: nginx:3.0 command: ["/bin/sh"] args: ["-c","sh /usr/local/tomcat/bin/startup.sh;while true; do echo hello; sleep 10;done"] imagePullPolicy: IfNotPresent From 014c333f466a9421544429c06c03d9fddb7b79fe Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 22:05:41 +0530 Subject: [PATCH 42/51] Update ci.yml --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5e549ca..1b31ebe2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,3 +20,8 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build + + - name: Install Datree + run: curl https://get.datree.io | /bin/bash + - name: Run Datree's policy check + run: datree test kube.yaml From 9b5792e4d922beba04db15795e75c29b42a0f460 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 22:06:24 +0530 Subject: [PATCH 43/51] Update kube.yaml --- kube.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/kube.yaml b/kube.yaml index d0058111..e1662dba 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,3 +1,4 @@ +# this is kubernetes file --- apiVersion: v1 kind: Service From 02158889d390c2aee81b1d4e46d7b498ddeec954 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 22:12:08 +0530 Subject: [PATCH 44/51] Update kube.yaml --- kube.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/kube.yaml b/kube.yaml index 60a532d7..31b9f776 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,3 +1,4 @@ +# This is kubernetes yaml file --- apiVersion: v1 kind: Service From d5ee62083c8e0421cf5df7ae618a8309a447007b Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Mon, 14 Mar 2022 22:16:08 +0530 Subject: [PATCH 45/51] Update kube.yaml --- kube.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/kube.yaml b/kube.yaml index 31b9f776..60a532d7 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,4 +1,3 @@ -# This is kubernetes yaml file --- apiVersion: v1 kind: Service From c0f458313af0f0521dfc5bc3413a083ccbfa4216 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Tue, 15 Mar 2022 00:27:29 +0530 Subject: [PATCH 46/51] Update kube.yaml --- kube.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/kube.yaml b/kube.yaml index 60a532d7..8e819331 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,3 +1,4 @@ +# test --- apiVersion: v1 kind: Service From 4c5353c03500b490e4250bcfba999fba6569ead9 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Wed, 16 Mar 2022 15:52:45 +0530 Subject: [PATCH 47/51] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 93676f58..3c95fe9d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ build tool is ** gradle ** when we build the code using command ```./gradlew build ``` it will generate war file. that war can be placed in tomcat server to see application web page -code is integrated with sonarqube plugin which help us in static code analysis +code is integrated with sonarqube plugin which help us in static code analysis -``` ./gradlew sonarqube ``` \ No newline at end of file +``` ./gradlew sonarqube ``` From e0175944a26f3ad9ca4bb839654ed8a036a4bbd6 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Wed, 16 Mar 2022 15:54:24 +0530 Subject: [PATCH 48/51] Update kube.yaml --- kube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube.yaml b/kube.yaml index 8e819331..6c7f2ebd 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,4 +1,4 @@ -# test +# kube.yaml --- apiVersion: v1 kind: Service From 344664d61feabae1977b113c036dcccb02b45459 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Wed, 16 Mar 2022 16:24:10 +0530 Subject: [PATCH 49/51] Update kube.yaml --- kube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube.yaml b/kube.yaml index 6c7f2ebd..c0122d78 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,4 +1,4 @@ -# kube.yaml +# This is kube.yaml --- apiVersion: v1 kind: Service From ba4018035d0f6f4a9ec17a62930ca2184b332fe0 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Wed, 16 Mar 2022 16:54:16 +0530 Subject: [PATCH 50/51] Update kube.yaml --- kube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube.yaml b/kube.yaml index c0122d78..2d2e3f74 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,4 +1,4 @@ -# This is kube.yaml +# This is kube.yml --- apiVersion: v1 kind: Service From 4ad2d62447a1dae113469dc13340ff9ce71d6a67 Mon Sep 17 00:00:00 2001 From: devops-max <65449032+devops-max@users.noreply.github.com> Date: Wed, 16 Mar 2022 16:55:26 +0530 Subject: [PATCH 51/51] Update kube.yaml --- kube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube.yaml b/kube.yaml index 2d2e3f74..e8c08057 100644 --- a/kube.yaml +++ b/kube.yaml @@ -1,4 +1,4 @@ -# This is kube.yml +# This is kube.yml notes --- apiVersion: v1 kind: Service