Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploymentservice.yaml #22

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
18 changes: 9 additions & 9 deletions deploymentservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
port: 80
targetPort: 8085