diff --git a/deploy/blockchain-watcher/workers/backfiller.yaml b/deploy/blockchain-watcher/workers/backfiller.yaml index bb4d7814..b67454ee 100644 --- a/deploy/blockchain-watcher/workers/backfiller.yaml +++ b/deploy/blockchain-watcher/workers/backfiller.yaml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-backfiller-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-backfiller spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-backfiller-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-backfiller data: testnet-jobs.json: |- [ @@ -46,11 +50,18 @@ kind: Deployment metadata: name: {{ .NAME }}-backfiller namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-backfiller spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-backfiller + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -61,6 +72,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -80,14 +92,13 @@ spec: value: {{ .NODE_OPTIONS }} - name: JOBS_DIR value: /home/node/app/jobs - image: {{ .IMAGE_NAME }} resources: - limits: - cpu: {{ .RESOURCES_LIMITS_CPU }} - memory: {{ .RESOURCES_LIMITS_MEMORY }} requests: cpu: {{ .RESOURCES_REQUESTS_CPU }} memory: {{ .RESOURCES_REQUESTS_MEMORY }} + limits: + cpu: {{ .RESOURCES_LIMITS_CPU }} + memory: {{ .RESOURCES_LIMITS_MEMORY }} volumeMounts: - name: metadata-volume mountPath: /home/node/app/metadata-repo @@ -105,4 +116,4 @@ spec: name: {{ .NAME }}-backfiller-jobs items: - key: {{ .BLOCKCHAIN_ENV }}-jobs.json - path: jobs.json \ No newline at end of file + path: jobs.json diff --git a/deploy/blockchain-watcher/workers/circle-message-sent-events-1.yaml b/deploy/blockchain-watcher/workers/circle-message-sent-events-1.yaml index b74b4c5c..21963d13 100644 --- a/deploy/blockchain-watcher/workers/circle-message-sent-events-1.yaml +++ b/deploy/blockchain-watcher/workers/circle-message-sent-events-1.yaml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-circle-message-sent-events-1-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-circle-message-sent-events-1 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-circle-message-sent-events-1-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-circle-message-sent-events-1 data: testnet-jobs.json: |- [ @@ -467,11 +471,18 @@ kind: Deployment metadata: name: {{ .NAME }}-circle-message-sent-events-1 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-circle-message-sent-events-1 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-circle-message-sent-events-1 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -482,6 +493,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -553,7 +565,6 @@ spec: - name: ARBITRUM_RPCS value: '{{ .ARBITRUM_RPCS }}' {{ end }} - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/solana-source-events-1.yaml b/deploy/blockchain-watcher/workers/solana-source-events-1.yaml index b263288b..e7a83e6d 100644 --- a/deploy/blockchain-watcher/workers/solana-source-events-1.yaml +++ b/deploy/blockchain-watcher/workers/solana-source-events-1.yaml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-solana-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-solana-source-events-1 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-solana-source-events-1-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-solana-source-events-1 data: testnet-jobs.json: |- [ @@ -101,11 +105,18 @@ kind: Deployment metadata: name: {{ .NAME }}-solana-source-events-1 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-solana-source-events-1 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-solana-source-events-1 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -116,6 +127,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -140,7 +152,6 @@ spec: key: solana-urls - name: JOBS_DIR value: /home/node/app/jobs - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .SOLANA_RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/solana-target-events-1.yaml b/deploy/blockchain-watcher/workers/solana-target-events-1.yaml index 8c00f7d2..e7a1f282 100644 --- a/deploy/blockchain-watcher/workers/solana-target-events-1.yaml +++ b/deploy/blockchain-watcher/workers/solana-target-events-1.yaml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-solana-target-events-1-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-solana-target-events-1 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-solana-target-events-1-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-solana-target-events-1 data: testnet-jobs.json: |- [ @@ -186,11 +190,18 @@ kind: Deployment metadata: name: {{ .NAME }}-solana-target-events-1 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-solana-target-events-1 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-solana-target-events-1 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -201,6 +212,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -225,7 +237,6 @@ spec: key: solana-urls - name: JOBS_DIR value: /home/node/app/jobs - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .SOLANA_RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/source-events-1.yaml b/deploy/blockchain-watcher/workers/source-events-1.yaml index 470ff009..ef34f0d2 100644 --- a/deploy/blockchain-watcher/workers/source-events-1.yaml +++ b/deploy/blockchain-watcher/workers/source-events-1.yaml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-source-events-1-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-1 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-source-events-1-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-1 data: testnet-jobs.json: |- [ @@ -592,11 +596,18 @@ kind: Deployment metadata: name: {{ .NAME }}-source-events-1 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-1 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-source-events-1 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -607,6 +618,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -664,7 +676,6 @@ spec: - name: ETHEREUM_HOLESKY_RPCS value: '{{ .ETHEREUM_HOLESKY_RPCS }}' {{ end }} - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/source-events-2.yaml b/deploy/blockchain-watcher/workers/source-events-2.yaml index 5eac6f44..98874eba 100644 --- a/deploy/blockchain-watcher/workers/source-events-2.yaml +++ b/deploy/blockchain-watcher/workers/source-events-2.yaml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-eth-1-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-2 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-source-events-2-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-2 data: testnet-jobs.json: |- [ @@ -751,11 +755,18 @@ kind: Deployment metadata: name: {{ .NAME }}-source-events-2 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-2 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-source-events-2 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -766,6 +777,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -847,7 +859,6 @@ spec: - name: OASIS_RPCS value: '{{ .OASIS_RPCS }}' {{ end }} - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/source-events-3.yaml b/deploy/blockchain-watcher/workers/source-events-3.yaml index 236cb112..cb9bb63c 100644 --- a/deploy/blockchain-watcher/workers/source-events-3.yaml +++ b/deploy/blockchain-watcher/workers/source-events-3.yaml @@ -1,4 +1,4 @@ ---- +--- apiVersion: v1 kind: Service metadata: @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-source-events-3-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-3 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-source-events-3-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-3 data: testnet-jobs.json: |- [ @@ -444,11 +448,18 @@ kind: Deployment metadata: name: {{ .NAME }}-source-events-3 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-source-events-3 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-source-events-3 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -459,6 +470,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -492,7 +504,6 @@ spec: - name: SNAXCHAIN_RPCS value: '{{ .SNAXCHAIN_RPCS }}' {{ end }} - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/target-events-1.yaml b/deploy/blockchain-watcher/workers/target-events-1.yaml index 217251ec..a7c350db 100644 --- a/deploy/blockchain-watcher/workers/target-events-1.yaml +++ b/deploy/blockchain-watcher/workers/target-events-1.yaml @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-eth-2-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-1 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-target-events-1-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-1 data: testnet-jobs.json: |- [ @@ -983,11 +987,18 @@ kind: Deployment metadata: name: {{ .NAME }}-target-events-1 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-1 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-target-events-1 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -998,6 +1009,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -1075,7 +1087,6 @@ spec: - name: XLAYER_RPCS value: '{{ .XLAYER_RPCS }}' {{ end }} - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/target-events-2.yaml b/deploy/blockchain-watcher/workers/target-events-2.yaml index e0d14e19..cf57e98d 100644 --- a/deploy/blockchain-watcher/workers/target-events-2.yaml +++ b/deploy/blockchain-watcher/workers/target-events-2.yaml @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-target-events-2-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-2 spec: accessModes: - ReadWriteOnce @@ -33,6 +35,8 @@ kind: ConfigMap metadata: name: {{ .NAME }}-target-events-2-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-2 data: testnet-jobs.json: |- [ @@ -707,11 +711,18 @@ kind: Deployment metadata: name: {{ .NAME }}-target-events-2 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-2 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-target-events-2 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -722,6 +733,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -795,7 +807,6 @@ spec: - name: SNAXCHAIN_RPCS value: '{{ .SNAXCHAIN_RPCS }}' {{ end }} - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .RESOURCES_LIMITS_CPU }} diff --git a/deploy/blockchain-watcher/workers/target-events-3.yaml b/deploy/blockchain-watcher/workers/target-events-3.yaml index c99de784..1090d049 100644 --- a/deploy/blockchain-watcher/workers/target-events-3.yaml +++ b/deploy/blockchain-watcher/workers/target-events-3.yaml @@ -20,6 +20,8 @@ kind: PersistentVolumeClaim metadata: name: blockchain-watcher-target-events-3-pvc namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-3 spec: accessModes: - ReadWriteOnce @@ -27,12 +29,14 @@ spec: requests: storage: 10Mi storageClassName: gp2 ---- +--- apiVersion: v1 kind: ConfigMap metadata: name: {{ .NAME }}-target-events-3-jobs namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-3 data: testnet-jobs.json: |- [ @@ -641,11 +645,18 @@ kind: Deployment metadata: name: {{ .NAME }}-target-events-3 namespace: {{ .NAMESPACE }} + labels: + app: {{ .NAME }}-target-events-3 spec: replicas: 1 selector: matchLabels: app: {{ .NAME }}-target-events-3 + strategy: # Rolling update strategy for restarting the pods + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 1 template: metadata: labels: @@ -656,6 +667,7 @@ spec: spec: containers: - name: {{ .NAME }} + image: {{ .IMAGE_NAME }} # Docker image env: - name: NODE_ENV value: {{ .NODE_ENV }} @@ -709,7 +721,6 @@ spec: - name: TERRA2_RPCS value: '{{ .TERRA2_RPCS }}' {{ end }} - image: {{ .IMAGE_NAME }} resources: limits: cpu: {{ .RESOURCES_LIMITS_CPU }}