From 19f10087924bd8d44eebc5868073e82afad79b1e Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 10:52:01 +0530 Subject: [PATCH 1/8] Update deploymentservice.yaml --- deploymentservice.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index b9dfd9d9..e7f4096d 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -14,23 +14,23 @@ spec: spec: containers: - name: spring-boot-k8s - image: javatechie/devops-integration # Image that will be used to containers in the cluster + image: ashishtale/myrepo # Image that will be used to containers in the cluster imagePullPolicy: IfNotPresent ports: - containerPort: 8080 # The port that the container is running on in the cluster --- - apiVersion: v1 # Kubernetes API version kind: Service # Kubernetes resource kind we are creating metadata: # Metadata of the resource kind we are creating name: springboot-k8ssvc spec: - selector: - app: spring-boot-k8s + type: NodePort + selector: + app: spring-boot-k8s ports: - - protocol: "TCP" - port: 8080 # The port that the service is running on in the cluster + - NodePort: 32222 + port: 8080 targetPort: 8080 # The port exposed by the service - type: NodePort # type of the service. \ No newline at end of file + From 060b5fa91d486208c5fac5fa08990982a0bb5cf1 Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:07:47 +0530 Subject: [PATCH 2/8] Update deploymentservice.yaml --- deploymentservice.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index e7f4096d..95f62fe2 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -26,11 +26,10 @@ kind: Service # Kubernetes resource kind we are creating metadata: # Metadata of the resource kind we are creating name: springboot-k8ssvc spec: - type: NodePort - selector: - app: spring-boot-k8s + selector: + app: spring-boot-k8s ports: - - NodePort: 32222 - port: 8080 + - protocol: "TCP" + port: 8080 # The port that the service is running on in the cluster targetPort: 8080 # The port exposed by the service - + type: NodePort # type of the service. From d0d6716a6b55dc0f71d435e2d80ede9ba25e60ab Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:14:47 +0530 Subject: [PATCH 3/8] Update deploymentservice.yaml --- deploymentservice.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index 95f62fe2..26856254 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -26,10 +26,10 @@ kind: Service # Kubernetes resource kind we are creating metadata: # Metadata of the resource kind we are creating name: springboot-k8ssvc spec: - selector: - app: spring-boot-k8s + type: NodePort + selector: + app: spring-boot-k8s ports: - - protocol: "TCP" - port: 8080 # The port that the service is running on in the cluster + - NodePort: 32222 + port: 8080 targetPort: 8080 # The port exposed by the service - type: NodePort # type of the service. From aa49e17aa8ce59d11d9926795499100df505700c Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:18:33 +0530 Subject: [PATCH 4/8] Update deploymentservice.yaml --- deploymentservice.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index 26856254..8ac38d2b 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -30,6 +30,6 @@ spec: selector: app: spring-boot-k8s ports: - - NodePort: 32222 + - nodePort: 30163 port: 8080 targetPort: 8080 # The port exposed by the service From ace740c8936450c048ef989b0868d4139276251f Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:10:00 +0530 Subject: [PATCH 5/8] Update deploymentservice.yaml --- deploymentservice.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index 8ac38d2b..b2f6c1f7 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -21,15 +21,15 @@ spec: --- -apiVersion: v1 # Kubernetes API version -kind: Service # Kubernetes resource kind we are creating -metadata: # Metadata of the resource kind we are creating +apiVersion: v1 +kind: Service +metadata: name: springboot-k8ssvc spec: - type: NodePort - selector: - app: spring-boot-k8s + selector: + app: spring-boot-k8s ports: - - nodePort: 30163 - port: 8080 - targetPort: 8080 # The port exposed by the service + - protocol: "TCP" + port: 8080 + targetPort: 8080 + type: NodePort From 7dd00991b0d47c0277155f719702e8a0f8951a61 Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:28:27 +0530 Subject: [PATCH 6/8] Update deploymentservice.yaml --- deploymentservice.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index b2f6c1f7..86c4fd9e 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -26,10 +26,11 @@ kind: Service metadata: name: springboot-k8ssvc spec: + type: LoadBalancer selector: app: spring-boot-k8s ports: - protocol: "TCP" port: 8080 targetPort: 8080 - type: NodePort + From 156fe100851981743e2152f503d211307317c079 Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:52:58 +0530 Subject: [PATCH 7/8] Update deploymentservice.yaml --- deploymentservice.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index 86c4fd9e..57a23978 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -31,6 +31,6 @@ spec: app: spring-boot-k8s ports: - protocol: "TCP" - port: 8080 - targetPort: 8080 + port: 80 + targetPort: 8085 From 614aaae5f0239b6831d76d0cb3060b4c542a4d5d Mon Sep 17 00:00:00 2001 From: ashish-tale <126545932+ashish-tale@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:56:26 +0530 Subject: [PATCH 8/8] Update deploymentservice.yaml --- deploymentservice.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploymentservice.yaml b/deploymentservice.yaml index 57a23978..0badc697 100644 --- a/deploymentservice.yaml +++ b/deploymentservice.yaml @@ -17,7 +17,7 @@ spec: image: ashishtale/myrepo # Image that will be used to containers in the cluster imagePullPolicy: IfNotPresent ports: - - containerPort: 8080 # The port that the container is running on in the cluster + - containerPort: 8085 # The port that the container is running on in the cluster ---