Skip to content

Commit

Permalink
chore: Improve metadata and labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Feb 28, 2024
1 parent b8f1e5a commit 5e7c5ff
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .k8s/mongo1-claim0-persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: mongo1-claim0
name: mongo1-claim0
role: database
name: mongo1-claim0
spec:
Expand Down
13 changes: 3 additions & 10 deletions .k8s/mongo1-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yaml -o .k8s
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: mongo1
name: mongo1-deployment
role: database
name: mongo1
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: mongo1
name: mongo1
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yaml -o .k8s
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/typescript-ddd-cqrs-default: "true"
io.kompose.service: mongo1
name: mongo1
spec:
containers:
- args:
Expand Down
7 changes: 2 additions & 5 deletions .k8s/mongo1-service.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yaml -o .k8s
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: mongo1
name: mongo1-service
role: database
name: mongo1
spec:
Expand All @@ -15,6 +12,6 @@ spec:
port: 27017
targetPort: 27017
selector:
io.kompose.service: mongo1
name: mongo1
status:
loadBalancer: {}
1 change: 0 additions & 1 deletion .k8s/mongodb-claim0-persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: mongodb-claim0
role: database
name: mongodb-claim0
spec:
Expand Down
6 changes: 1 addition & 5 deletions .k8s/mongodb-pod.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
apiVersion: v1
kind: Pod
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yaml -o .k8s
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/typescript-ddd-cqrs-default: "true"
io.kompose.service: mongodb
name: mongodb
role: database
name: mongodb
spec:
Expand Down
2 changes: 1 addition & 1 deletion .k8s/rabbitmq-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
creationTimestamp: null
labels:
name: rabbitmq
name: rabbitmq-deployment
role: message-broker
name: rabbitmq
spec:
Expand Down
2 changes: 1 addition & 1 deletion .k8s/rabbitmq-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
creationTimestamp: null
labels:
name: rabbitmq
name: rabbitmq-service
role: message-broker
name: rabbitmq
spec:
Expand Down

0 comments on commit 5e7c5ff

Please sign in to comment.