Skip to content

Commit

Permalink
Splitting out services from deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
twerthi committed Mar 5, 2024
1 parent e88fff9 commit 9d816f9
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 41 deletions.
13 changes: 0 additions & 13 deletions manifests/octopub-audits-mysql.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
apiVersion: v1
kind: Service
metadata:
name: octopub-audit-cluster-ip
spec:
type: ClusterIP
selector:
component: auditservice
ports:
- port: 10000
targetPort: 10000
name: http-audit
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
12 changes: 12 additions & 0 deletions manifests/octopub-audits-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: octopub-audit-cluster-ip
spec:
type: ClusterIP
selector:
component: auditservice
ports:
- port: 10000
targetPort: 10000
name: http-audit
12 changes: 12 additions & 0 deletions manifests/octopub-frontend-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: octopub-frontend-cluster-ip
spec:
type: ClusterIP
selector:
component: web
ports:
- port: 8080
targetPort: 8080
name: http-port
13 changes: 0 additions & 13 deletions manifests/octopub-frontend.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
apiVersion: v1
kind: Service
metadata:
name: octopub-frontend-cluster-ip
spec:
type: ClusterIP
selector:
component: web
ports:
- port: 8080
targetPort: 8080
name: http-port
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
4 changes: 2 additions & 2 deletions manifests/octopub-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
ingressClassName: nginx
rules:
- host:
- host: ""
http:
paths:
- path: /api/audits
Expand Down Expand Up @@ -42,4 +42,4 @@ spec:
service:
name: octopub-frontend-cluster-ip
port:
name: http-web
name: http-web
13 changes: 0 additions & 13 deletions manifests/octopub-products-mysql.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
apiVersion: v1
kind: Service
metadata:
name: octopub-productservice-cluster-ip
spec:
type: ClusterIP
selector:
component: productservice
ports:
- port: 8083
targetPort: 8083
name: http-product
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
12 changes: 12 additions & 0 deletions manifests/octopub-products-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: octopub-productservice-cluster-ip
spec:
type: ClusterIP
selector:
component: productservice
ports:
- port: 8083
targetPort: 8083
name: http-product

0 comments on commit 9d816f9

Please sign in to comment.