Skip to content
Open
Show file tree
Hide file tree
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
22 changes: 22 additions & 0 deletions k8s/cataloge-k8s/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: catalogue
namespace: java-shopfront
labels:
app: catalogue
spec:
replicas: 1
selector:
matchLabels:
app: catalogue
template:
metadata:
labels:
app: catalogue
spec:
containers:
- name: catalogue
image: abhishekbhagat/productcatalogue
ports:
- containerPort: 8020
11 changes: 11 additions & 0 deletions k8s/cataloge-k8s/pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
name: catalogue
namespace: java-shopfront
spec:
containers:
- name: catalogue
image: abhishekbhagat/productcatalogue
ports:
- containerPort: 8020
16 changes: 16 additions & 0 deletions k8s/cataloge-k8s/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: catalogue-service
namespace: java-shopfront
spec:
type: NodePort
selector:
app: catalogue
ports:
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
- port: 80
targetPort: 8020
# Optional field
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
nodePort: 30008
22 changes: 22 additions & 0 deletions k8s/shop-k8s/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: shopfront
namespace: java-shopfront
labels:
app: shopfront
spec:
replicas: 1
selector:
matchLabels:
app: shopfront
template:
metadata:
labels:
app: shopfront
spec:
containers:
- name: shopfront
image: abhishekbhagat/shopfront
ports:
- containerPort: 8010
11 changes: 11 additions & 0 deletions k8s/shop-k8s/pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
name: shopfront
namespace: java-shopfront
spec:
containers:
- name: shopfront
image: abhishekbhagat/shopfront
ports:
- containerPort: 8010
16 changes: 16 additions & 0 deletions k8s/shop-k8s/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: shopfront-service
namespace: java-shopfront
spec:
type: NodePort
selector:
app: shopfront
ports:
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
- port: 80
targetPort: 8010
# Optional field
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
nodePort: 30007
Binary file added k8s/stockmanager/.deployment.yml.swp
Binary file not shown.
21 changes: 21 additions & 0 deletions k8s/stockmanager/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: stock-deployment
labels:
app: stock
spec:
replicas: 1
selector:
matchLabels:
app: stock
template:
metadata:
labels:
app: stock
spec:
containers:
- name: stock
image: abhishekbhagat/stock
ports:
- containerPort: 8030
11 changes: 11 additions & 0 deletions k8s/stockmanager/pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
name: stock
namespace: java-shopfront
spec:
containers:
- name: stock
image: abhishekbhagat/stock
ports:
- containerPort: 8030
16 changes: 16 additions & 0 deletions k8s/stockmanager/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: stock-service
namespace: java-shopfront
spec:
type: NodePort
selector:
app: stock
ports:
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
- port: 80
targetPort: 8030
# Optional field
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
nodePort: 30014