Skip to content

Commit

Permalink
Create javawebapp-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devopstrainingbanglore authored Aug 18, 2019
1 parent 685c1fd commit 0f15cc9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions javawebapp-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: javawebapp
name: java-controller
spec:
replicas: 1
template:
metadata:
labels:
name: javawebapp
spec:
containers:
- image: dockerhandson/java-web-app
name: javawebapp
ports:
- name: javawebapp
containerPort: 8080
---
# Node Port Service
apiVersion: v1
kind: Service
metadata:
labels:
name: javawebapp
name: javawebapp
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
selector:
name: javawebapp

0 comments on commit 0f15cc9

Please sign in to comment.