fix: update dapr configs with env name

This commit is contained in:
Jonas Juselius
2024-06-04 15:00:26 +02:00
parent e4cfba439a
commit 84d6a8a401
15 changed files with 139 additions and 60 deletions
@@ -1,21 +1,3 @@
- op: add
path: /spec/template/metadata/annotations
value:
dapr.io/enabled: "true"
dapr.io/app-id: "archmeister"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
- op: replace - op: replace
path: /spec/template/spec/containers/0/livenessProbe/httpGet/path path: /spec/template/spec/containers/0/livenessProbe/httpGet/path
value: /healthz value: /healthz
+17
View File
@@ -1,3 +1,20 @@
podAnnotations:
dapr.io/app-id: "prod-archmeister"
dapr.io/enabled: "true"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
ingress: ingress:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-production cert-manager.io/cluster-issuer: letsencrypt-production
+17
View File
@@ -1,3 +1,20 @@
podAnnotations:
dapr.io/app-id: "staging-archmeister"
dapr.io/enabled: "true"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
image: image:
tag: f8c27a74-debug tag: f8c27a74-debug
ingress: ingress:
@@ -1,21 +1,3 @@
- op: add
path: /spec/template/metadata/annotations
value:
dapr.io/enabled: "true"
dapr.io/app-id: "atlantis"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
- op: replace - op: replace
path: /spec/template/spec/containers/0/livenessProbe/httpGet/path path: /spec/template/spec/containers/0/livenessProbe/httpGet/path
value: /healthz value: /healthz
@@ -18,3 +18,4 @@ patches:
path: deployment_patch.yaml path: deployment_patch.yaml
resources: resources:
- ../base - ../base
- subscriptions.yaml
@@ -6,8 +6,10 @@ spec:
topic: hipster topic: hipster
route: /hipster-events route: /hipster-events
pubsubname: pubsub pubsubname: pubsub
metadata:
queueType: quorum
scopes: scopes:
- atlantis - prod-atlantis
--- ---
apiVersion: dapr.io/v1alpha1 apiVersion: dapr.io/v1alpha1
kind: Subscription kind: Subscription
@@ -17,5 +19,7 @@ spec:
topic: inbox topic: inbox
route: /inbox-events route: /inbox-events
pubsubname: pubsub pubsubname: pubsub
metadata:
queueType: quorum
scopes: scopes:
- atlantis - prod-atlantis
@@ -18,3 +18,4 @@ patches:
path: deployment_patch.yaml path: deployment_patch.yaml
resources: resources:
- ../base - ../base
- subscriptions.yaml
@@ -0,0 +1,25 @@
apiVersion: dapr.io/v1alpha1
kind: Subscription
metadata:
name: hipster-events
spec:
topic: hipster
route: /hipster-events
pubsubname: pubsub
metadata:
queueType: quorum
scopes:
- staging-atlantis
---
apiVersion: dapr.io/v1alpha1
kind: Subscription
metadata:
name: inbox-events
spec:
topic: inbox
route: /inbox-events
pubsubname: pubsub
metadata:
queueType: quorum
scopes:
- staging-atlantis
+17
View File
@@ -1,3 +1,20 @@
podAnnotations:
dapr.io/app-id: "prod-atlantis"
dapr.io/enabled: "true"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
ingress: ingress:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-production cert-manager.io/cluster-issuer: letsencrypt-production
+17
View File
@@ -1,3 +1,20 @@
podAnnotations:
dapr.io/app-id: "staging-atlantis"
dapr.io/enabled: "true"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
image: image:
tag: c0c8de05-debug tag: c0c8de05-debug
ingress: ingress:
+2 -2
View File
@@ -15,10 +15,10 @@ spec:
name: prod-rabbitmq name: prod-rabbitmq
key: connString key: connString
- name: queueName - name: queueName
value: hipster-slurm-job-events value: prod-hipster-slurm-job-events
- name: durable - name: durable
value: true value: true
- name: contentType - name: contentType
value: "application/json" value: "application/json"
scopes: scopes:
- hipster - prod-hipster
+2 -2
View File
@@ -15,10 +15,10 @@ spec:
name: staging-rabbitmq name: staging-rabbitmq
key: connString key: connString
- name: queueName - name: queueName
value: hipster-slurm-job-events value: staging-hipster-slurm-job-events
- name: durable - name: durable
value: true value: true
- name: contentType - name: contentType
value: "application/json" value: "application/json"
scopes: scopes:
- hipster - staging-hipster
@@ -1,21 +1,3 @@
- op: add
path: /spec/template/metadata/annotations
value:
dapr.io/enabled: "true"
dapr.io/app-id: "petimeter"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
- op: replace - op: replace
path: /spec/template/spec/containers/0/livenessProbe/httpGet/path path: /spec/template/spec/containers/0/livenessProbe/httpGet/path
value: /healthz value: /healthz
+17
View File
@@ -1,3 +1,20 @@
podAnnotations:
dapr.io/app-id: "prod-petimeter"
dapr.io/enabled: "true"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
ingress: ingress:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-production cert-manager.io/cluster-issuer: letsencrypt-production
+17
View File
@@ -1,3 +1,20 @@
podAnnotations:
dapr.io/app-id: "staging-petimeter"
dapr.io/enabled: "true"
dapr.io/app-port: "8000"
dapr.io/config: "tracing"
dapr.io/app-protocol: "http"
dapr.io/enable-app-health-check: "true"
dapr.io/app-health-check-path: "/healthz"
dapr.io/app-health-probe-interval: "3"
dapr.io/app-health-probe-timeout: "200"
dapr.io/app-health-threshold: "2"
dapr.io/sidecar-cpu-request: "100m"
dapr.io/sidecar-memory-request: "250Mi"
dapr.io/sidecar-cpu-limit: "300m"
dapr.io/sidecar-memory-limit: "1000Mi"
dapr.io/log-as-json: "true"
image: image:
tag: 3d8fcb2a-debug tag: 3d8fcb2a-debug
ingress: ingress: