diff --git a/deploymentservice.yaml b/deploymentservice.yaml index b9dfd9d9..0badc697 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 + - containerPort: 8085 # 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 +apiVersion: v1 +kind: Service +metadata: name: springboot-k8ssvc spec: + type: LoadBalancer selector: app: spring-boot-k8s ports: - 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. \ No newline at end of file + port: 80 + targetPort: 8085 +