Skip to content

Commit

Permalink
re organised files
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Sep 23, 2019
1 parent 8d912ad commit 1d13f17
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 40 deletions.
21 changes: 21 additions & 0 deletions 3-tier-app/emp-api/spring-boot-api-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: emp-api
labels:
app: emp-api
spec:
replicas: 2
selector:
matchLabels:
app: emp-api
template:
metadata:
labels:
app: emp-api
spec:
containers:
- name: emp-api
image: kammana/boot-api:5.0
ports:
- containerPort: 8080
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions 3-tier-app/emp-fe/emp-fe-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: emp-fe
labels:
app: emp-fe
spec:
replicas: 1
selector:
matchLabels:
app: emp-fe
template:
metadata:
labels:
app: emp-fe
spec:
containers:
- name: emp-fe
image: kammana/emp-fe:1.0
ports:
- containerPort: 4200
12 changes: 12 additions & 0 deletions 3-tier-app/emp-fe/emp-fe-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: Service
apiVersion: v1
metadata:
name: emp-fe
spec:
selector:
app: emp-fe
ports:
- protocol: TCP
port: 80
targetPort: 4200
type: NodePort
26 changes: 26 additions & 0 deletions 3-tier-app/mongo/mongo-pv-pvc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: mongo-pv-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/db"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mongo-pv-claim
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
39 changes: 39 additions & 0 deletions 3-tier-app/mongo/mongo-svc-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: v1
kind: Service
metadata:
name: mongodb
spec:
ports:
- port: 27017
selector:
app: mongo
clusterIP: None
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: mongo
spec:
selector:
matchLabels:
app: mongo
strategy:
type: Recreate
template:
metadata:
labels:
app: mongo
spec:
containers:
- image: mongo:latest
name: mongo
ports:
- containerPort: 27017
name: mongo
volumeMounts:
- name: mongo-persistent-storage
mountPath: /data/db
volumes:
- name: mongo-persistent-storage
persistentVolumeClaim:
claimName: mongo-pv-claim
12 changes: 0 additions & 12 deletions mongodb/mongo-service.yml

This file was deleted.

28 changes: 0 additions & 28 deletions mongodb/mongodb.yml

This file was deleted.

0 comments on commit 1d13f17

Please sign in to comment.