mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-10 17:59:38 +08:00
ci: Update deployments configurations.
This commit is contained in:
parent
d2f3b022b3
commit
8f7492915b
3
.gitignore
vendored
3
.gitignore
vendored
@ -437,3 +437,6 @@ fabric.properties
|
|||||||
|
|
||||||
# Monitoring
|
# Monitoring
|
||||||
**/grafana-data
|
**/grafana-data
|
||||||
|
|
||||||
|
# EventStore
|
||||||
|
**/eventstore
|
||||||
|
|||||||
@ -75,23 +75,19 @@ services:
|
|||||||
# EventStoreDB
|
# EventStoreDB
|
||||||
#######################################################
|
#######################################################
|
||||||
eventstore:
|
eventstore:
|
||||||
container_name: eventstore
|
container_name: eventstore
|
||||||
image: eventstore/eventstore:latest
|
image: eventstore/eventstore:latest
|
||||||
restart: unless-stopped
|
environment:
|
||||||
environment:
|
- EVENTSTORE_CLUSTER_SIZE=1
|
||||||
- EVENTSTORE_CLUSTER_SIZE=1
|
- EVENTSTORE_RUN_PROJECTIONS=All
|
||||||
- EVENTSTORE_RUN_PROJECTIONS=All
|
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
|
||||||
- EVENTSTORE_START_STANDARD_PROJECTIONS=true
|
- EVENTSTORE_HTTP_PORT=2113
|
||||||
- EVENTSTORE_EXT_TCP_PORT=1113
|
- EVENTSTORE_INSECURE=True
|
||||||
- EVENTSTORE_EXT_HTTP_PORT=2113
|
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=True
|
||||||
- EVENTSTORE_INSECURE=true
|
ports:
|
||||||
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
|
- "2113:2113"
|
||||||
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
|
networks:
|
||||||
ports:
|
- booking
|
||||||
- '1113:1113'
|
|
||||||
- '2113:2113'
|
|
||||||
networks:
|
|
||||||
- booking
|
|
||||||
|
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
@ -185,9 +181,11 @@ services:
|
|||||||
- '--path.rootfs=/host'
|
- '--path.rootfs=/host'
|
||||||
pid: host
|
pid: host
|
||||||
volumes:
|
volumes:
|
||||||
- '/:/host:ro,rslave'
|
- /proc:/host/proc:ro
|
||||||
|
- /sys:/host/sys:ro
|
||||||
|
- /:/rootfs:ro
|
||||||
networks:
|
networks:
|
||||||
- booking
|
- booking
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
# cadvisor
|
# cadvisor
|
||||||
|
|||||||
@ -78,19 +78,15 @@ services:
|
|||||||
eventstore:
|
eventstore:
|
||||||
container_name: eventstore
|
container_name: eventstore
|
||||||
image: eventstore/eventstore:latest
|
image: eventstore/eventstore:latest
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
environment:
|
||||||
- EVENTSTORE_CLUSTER_SIZE=1
|
- EVENTSTORE_CLUSTER_SIZE=1
|
||||||
- EVENTSTORE_RUN_PROJECTIONS=All
|
- EVENTSTORE_RUN_PROJECTIONS=All
|
||||||
- EVENTSTORE_START_STANDARD_PROJECTIONS=true
|
- EVENTSTORE_START_STANDARD_PROJECTIONS=True
|
||||||
- EVENTSTORE_EXT_TCP_PORT=1113
|
- EVENTSTORE_HTTP_PORT=2113
|
||||||
- EVENTSTORE_EXT_HTTP_PORT=2113
|
- EVENTSTORE_INSECURE=True
|
||||||
- EVENTSTORE_INSECURE=true
|
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=True
|
||||||
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
|
|
||||||
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
|
|
||||||
ports:
|
ports:
|
||||||
- '1113:1113'
|
- "2113:2113"
|
||||||
- '2113:2113'
|
|
||||||
networks:
|
networks:
|
||||||
- booking
|
- booking
|
||||||
|
|
||||||
@ -186,7 +182,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./monitoring/grafana-data/data:/var/lib/grafana
|
- ./monitoring/grafana-data/data:/var/lib/grafana
|
||||||
networks:
|
networks:
|
||||||
- booking
|
- booking
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
# node_exporter
|
# node_exporter
|
||||||
@ -199,9 +195,11 @@ services:
|
|||||||
- '--path.rootfs=/host'
|
- '--path.rootfs=/host'
|
||||||
pid: host
|
pid: host
|
||||||
volumes:
|
volumes:
|
||||||
- '/:/host:ro,rslave'
|
- /proc:/host/proc:ro
|
||||||
|
- /sys:/host/sys:ro
|
||||||
|
- /:/rootfs:ro
|
||||||
networks:
|
networks:
|
||||||
- booking
|
- booking
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
# cadvisor
|
# cadvisor
|
||||||
@ -222,8 +220,8 @@ services:
|
|||||||
- /dev/kmsg
|
- /dev/kmsg
|
||||||
networks:
|
networks:
|
||||||
- booking
|
- booking
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
booking:
|
booking:
|
||||||
|
|
||||||
|
|||||||
@ -172,67 +172,65 @@ status:
|
|||||||
#######################################################
|
#######################################################
|
||||||
# Event Store
|
# Event Store
|
||||||
#######################################################
|
#######################################################
|
||||||
apiVersion: v1
|
apiVersion: apps/v1
|
||||||
kind: Pod
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe -f infrastracture.yaml convert
|
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe convert -f infrastructure.yaml
|
||||||
kompose.version: 1.28.0 (c4137012e)
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/booking: "true"
|
|
||||||
io.kompose.service: eventstore
|
io.kompose.service: eventstore
|
||||||
name: eventstore
|
name: eventstore
|
||||||
spec:
|
spec:
|
||||||
containers:
|
replicas: 1
|
||||||
- env:
|
selector:
|
||||||
- name: EVENTSTORE_CLUSTER_SIZE
|
matchLabels:
|
||||||
value: "1"
|
io.kompose.service: eventstore
|
||||||
- name: EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP
|
template:
|
||||||
value: "true"
|
metadata:
|
||||||
- name: EVENTSTORE_ENABLE_EXTERNAL_TCP
|
annotations:
|
||||||
value: "true"
|
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe convert -f infrastructure.yaml
|
||||||
- name: EVENTSTORE_EXT_HTTP_PORT
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
value: "2113"
|
labels:
|
||||||
- name: EVENTSTORE_EXT_TCP_PORT
|
io.kompose.service: eventstore
|
||||||
value: "1113"
|
spec:
|
||||||
- name: EVENTSTORE_INSECURE
|
containers:
|
||||||
value: "true"
|
- env:
|
||||||
- name: EVENTSTORE_RUN_PROJECTIONS
|
- name: EVENTSTORE_CLUSTER_SIZE
|
||||||
value: All
|
value: "1"
|
||||||
- name: EVENTSTORE_START_STANDARD_PROJECTIONS
|
- name: EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP
|
||||||
value: "true"
|
value: "True"
|
||||||
image: eventstore/eventstore:latest
|
- name: EVENTSTORE_HTTP_PORT
|
||||||
name: eventstore
|
value: "2113"
|
||||||
ports:
|
- name: EVENTSTORE_INSECURE
|
||||||
- containerPort: 1113
|
value: "True"
|
||||||
- containerPort: 2113
|
- name: EVENTSTORE_RUN_PROJECTIONS
|
||||||
resources: {}
|
value: All
|
||||||
restartPolicy: Always
|
- name: EVENTSTORE_START_STANDARD_PROJECTIONS
|
||||||
status: {}
|
value: "True"
|
||||||
|
image: eventstore/eventstore:latest
|
||||||
|
name: eventstore
|
||||||
|
ports:
|
||||||
|
- containerPort: 2113
|
||||||
|
protocol: TCP
|
||||||
|
restartPolicy: Always
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe -f infrastracture.yaml convert
|
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe convert -f infrastructure.yaml
|
||||||
kompose.version: 1.28.0 (c4137012e)
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: eventstore
|
io.kompose.service: eventstore
|
||||||
name: eventstore
|
name: eventstore
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "1113"
|
|
||||||
port: 1113
|
|
||||||
targetPort: 1113
|
|
||||||
- name: "2113"
|
- name: "2113"
|
||||||
port: 2113
|
port: 2113
|
||||||
targetPort: 2113
|
targetPort: 2113
|
||||||
selector:
|
selector:
|
||||||
io.kompose.service: eventstore
|
io.kompose.service: eventstore
|
||||||
status:
|
|
||||||
loadBalancer: {}
|
|
||||||
---
|
---
|
||||||
# #######################################################
|
# #######################################################
|
||||||
# # Jaeger
|
# # Jaeger
|
||||||
@ -494,9 +492,8 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe convert -f infrastracture.yaml
|
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe convert -f infrastructure.yaml
|
||||||
kompose.version: 1.28.0 (c4137012e)
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: node-exporter
|
io.kompose.service: node-exporter
|
||||||
name: node-exporter
|
name: node-exporter
|
||||||
@ -510,11 +507,9 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe convert -f infrastracture.yaml
|
kompose.cmd: C:\ProgramData\chocolatey\lib\kubernetes-kompose\tools\kompose.exe convert -f infrastructure.yaml
|
||||||
kompose.version: 1.28.0 (c4137012e)
|
kompose.version: 1.34.0 (cbf2835db)
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
labels:
|
||||||
io.kompose.network/newfolder-booking: "true"
|
|
||||||
io.kompose.service: node-exporter
|
io.kompose.service: node-exporter
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
@ -522,23 +517,27 @@ spec:
|
|||||||
- --path.rootfs=/host
|
- --path.rootfs=/host
|
||||||
image: quay.io/prometheus/node-exporter:latest
|
image: quay.io/prometheus/node-exporter:latest
|
||||||
name: node-exporter
|
name: node-exporter
|
||||||
resources: {}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /host
|
- mountPath: /host/proc
|
||||||
name: node-exporter-claim0
|
name: node-exporter-claim0
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- mountPath: /host/sys
|
||||||
|
name: node-exporter-claim1
|
||||||
|
readOnly: true
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: node-exporter-claim0
|
- name: node-exporter-claim0
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: node-exporter-claim0
|
claimName: node-exporter-claim0
|
||||||
readOnly: true
|
readOnly: true
|
||||||
status: {}
|
- name: node-exporter-claim1
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: node-exporter-claim1
|
||||||
|
readOnly: true
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
labels:
|
||||||
io.kompose.service: node-exporter-claim0
|
io.kompose.service: node-exporter-claim0
|
||||||
name: node-exporter-claim0
|
name: node-exporter-claim0
|
||||||
@ -548,7 +547,19 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 100Mi
|
storage: 100Mi
|
||||||
status: {}
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
io.kompose.service: node-exporter-claim1
|
||||||
|
name: node-exporter-claim1
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadOnlyMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
||||||
---
|
---
|
||||||
# #######################################################
|
# #######################################################
|
||||||
# # Cadvisor
|
# # Cadvisor
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user