Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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