Skip to content

Commit

Permalink
chore: rework deploy structure
Browse files Browse the repository at this point in the history
  • Loading branch information
valosnah committed Nov 19, 2024
1 parent b43ac62 commit 7b98f9c
Show file tree
Hide file tree
Showing 28 changed files with 361 additions and 409 deletions.
42 changes: 42 additions & 0 deletions deploy/base/deployment-fdk-concept-event-publisher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdk-concept-event-publisher
labels:
fdk.service: fdk-concept-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-concept-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-concept-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: fdk-concept-event-publisher
image: fdk-concept-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 100Mi
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
42 changes: 42 additions & 0 deletions deploy/base/deployment-fdk-data-service-event-publisher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdk-data-service-event-publisher
labels:
fdk.service: fdk-data-service-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-data-service-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-data-service-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: fdk-data-service-event-publisher
image: fdk-data-service-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 100Mi
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
42 changes: 42 additions & 0 deletions deploy/base/deployment-fdk-dataset-event-publisher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdk-dataset-event-publisher
labels:
fdk.service: fdk-dataset-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-dataset-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-dataset-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: fdk-dataset-event-publisher
image: fdk-dataset-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 100Mi
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
42 changes: 42 additions & 0 deletions deploy/base/deployment-fdk-event-event-publisher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdk-event-event-publisher
labels:
fdk.service: fdk-event-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-event-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-event-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: fdk-event-event-publisher
image: fdk-event-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 100Mi
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
42 changes: 42 additions & 0 deletions deploy/base/deployment-fdk-information-model-event-publisher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdk-information-model-event-publisher
labels:
fdk.service: fdk-information-model-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-information-model-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-information-model-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: fdk-information-model-event-publisher
image: fdk-information-model-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 100Mi
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
42 changes: 42 additions & 0 deletions deploy/base/deployment-fdk-service-event-publisher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fdk-service-event-publisher
labels:
fdk.service: fdk-service-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-service-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-service-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: fdk-service-event-publisher
image: fdk-service-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 100Mi
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
6 changes: 6 additions & 0 deletions deploy/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment-fdk-concept-event-publisher.yaml
- deployment-fdk-data-service-event-publisher.yaml
- deployment-fdk-dataset-event-publisher.yaml
- deployment-fdk-event-event-publisher.yaml
- deployment-fdk-information-model-event-publisher.yaml
- deployment-fdk-service-event-publisher.yaml
- service-fdk-dataset-event-publisher.yaml
- service-fdk-data-service-event-publisher.yaml
- service-fdk-concept-event-publisher.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@ metadata:
labels:
fdk.service: fdk-concept-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-concept-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-concept-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- env:
- name: fdk-concept-event-publisher
env:
- name: SCHEMA_REGISTRY
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -56,20 +46,3 @@ spec:
secretKeyRef:
name: commonurl-demo
key: FDK_CONCEPT_HARVESTER_URI
name: fdk-concept-event-publisher
image: fdk-concept-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: "100Mi"
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@ metadata:
labels:
fdk.service: fdk-data-service-event-publisher
spec:
replicas: 1
selector:
matchLabels:
fdk.service: fdk-data-service-event-publisher
strategy:
type: RollingUpdate
template:
metadata:
labels:
fdk.service: fdk-data-service-event-publisher
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- env:
- name: fdk-data-service-event-publisher
env:
- name: SCHEMA_REGISTRY
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -56,20 +46,3 @@ spec:
secretKeyRef:
name: commonurl-demo
key: FDK_DATASERVICE_HARVESTER_URI
name: fdk-data-service-event-publisher
image: fdk-data-service-event-publisher
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
memory: "100Mi"
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
restartPolicy: Always
Loading

0 comments on commit 7b98f9c

Please sign in to comment.