feat: update atlantis chart and values for monolith
This commit is contained in:
@@ -54,8 +54,8 @@ spec:
|
|||||||
port:
|
port:
|
||||||
number: {{ $svcPort }}
|
number: {{ $svcPort }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ .serviceName | default $fullName }}
|
||||||
servicePort: {{ $svcPort }}
|
servicePort: {{ .servicePort | default $svcPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{{- if .Values.serviceMonitor.enabled }}
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ include "Atlantis.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- honorLabels: false
|
||||||
|
path: /metrics
|
||||||
|
port: http
|
||||||
|
jobLabel: {{ .Values.serviceMonitor.label | default (include "Atlantis.fullname" .) }}
|
||||||
|
namespaceSelector:
|
||||||
|
matchNames:
|
||||||
|
- {{ .Release.Namespace }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/instance: {{ include "Atlantis.fullname" . }}
|
||||||
|
app.kubernetes.io/name: atlantis
|
||||||
|
{{- end }}
|
||||||
@@ -61,6 +61,10 @@ ingress:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
|
- path: /events
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
serviceName: main-ingress-nginx-defaultbackend.ingress-nginx
|
||||||
|
servicePort: 80
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- atlantis.srv.oceanbox.io
|
- atlantis.srv.oceanbox.io
|
||||||
@@ -119,16 +123,6 @@ redis:
|
|||||||
ephemeral-storage: 50Mi
|
ephemeral-storage: 50Mi
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
|
|
||||||
tracing:
|
|
||||||
namespace: otel
|
|
||||||
endpoint: "http://opentelemetry-collector.otel:9411/api/v2/spans"
|
|
||||||
|
|
||||||
rabbitmq:
|
|
||||||
namespace: rabbitmq
|
|
||||||
service: staging-rabbitmq
|
|
||||||
username: user
|
|
||||||
# secretName: staging-rabbitmq
|
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: defaultbackend
|
||||||
|
spec:
|
||||||
|
type: ExternalName
|
||||||
|
externalName: main-ingress-nginx-defaultbackend.ingress-nginx.svc.cluster.local
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
- op: add
|
||||||
|
path: /spec/rules/0/http/paths/-
|
||||||
|
value:
|
||||||
|
path: /events
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: defaultbackend
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
namespace: atlantis
|
||||||
patches:
|
patches:
|
||||||
- target:
|
- target:
|
||||||
version: v1
|
version: v1
|
||||||
@@ -7,8 +8,10 @@ patches:
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
path: deployment_patch.yaml
|
path: deployment_patch.yaml
|
||||||
- target:
|
- target:
|
||||||
|
group: networking.k8s.io
|
||||||
version: v1
|
version: v1
|
||||||
kind: Service
|
kind: Ingress
|
||||||
path: service_patch.yaml
|
path: ingress_patch.yaml
|
||||||
resources:
|
resources:
|
||||||
- _manifest.yaml
|
- _manifest.yaml
|
||||||
|
- defaultbackend.yaml
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
- op: add
|
|
||||||
path: /spec/ports/-
|
|
||||||
value:
|
|
||||||
name: intra
|
|
||||||
port: 8000
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8000
|
|
||||||
@@ -30,8 +30,23 @@
|
|||||||
"http://atlantis.srv.oceanbox.io",
|
"http://atlantis.srv.oceanbox.io",
|
||||||
"https://atlantis.srv.oceanbox.io"
|
"https://atlantis.srv.oceanbox.io"
|
||||||
],
|
],
|
||||||
"logService" : "https://seq.adm.oceanbox.io",
|
"otelCollector": "http://opentelemetry-collector.opentelemetry.svc:4317",
|
||||||
"logApiKey": "",
|
|
||||||
"deployEnv": "prod",
|
"deployEnv": "prod",
|
||||||
|
"deployName": "atlantis",
|
||||||
|
"slurm": {
|
||||||
|
"baseUrl": "https://hipster-slurmrestd.ekman.oceanbox.io/",
|
||||||
|
"slurmApi": "slurm/v0.0.38/",
|
||||||
|
"dbdApi": "slurmdbd/v0.0.38/",
|
||||||
|
"user": "serf",
|
||||||
|
"password": "wooqueiLee3ao0ha"
|
||||||
|
},
|
||||||
|
"amqp": {
|
||||||
|
"auth": "user:bunny",
|
||||||
|
"host": "10.1.8.60:30673"
|
||||||
|
},
|
||||||
|
"pubsubName": "pubsub",
|
||||||
|
"pubsubTopic": "hipster-atlantis",
|
||||||
|
"fenceRadius": 1250.0,
|
||||||
|
"cerbosUrl": "http://prod-cerbos.idp.svc:3593",
|
||||||
"plainAuthUsers": []
|
"plainAuthUsers": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Component
|
||||||
|
metadata:
|
||||||
|
name: slurm-events
|
||||||
|
spec:
|
||||||
|
type: bindings.rabbitmq
|
||||||
|
version: v1
|
||||||
|
metadata:
|
||||||
|
- name: host
|
||||||
|
secretKeyRef:
|
||||||
|
name: prod-rabbitmq
|
||||||
|
key: connString
|
||||||
|
- name: queueName
|
||||||
|
value: prod-hipster-slurm-job-events
|
||||||
|
- name: durable
|
||||||
|
value: true
|
||||||
|
- name: contentType
|
||||||
|
value: "application/json"
|
||||||
|
- name: route
|
||||||
|
value: /events/slurm
|
||||||
|
scopes:
|
||||||
|
- atlantis
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
OIDC_CLIENT_SECRET=KOJ6bDHzE5vdyfSrzgwLjtM5PzA809Zm
|
OIDC_CLIENT_SECRET=KOJ6bDHzE5vdyfSrzgwLjtM5PzA809Zm
|
||||||
SEQ_APIKEY=v9RfeLBD9Si7OkFlkjPm
|
|
||||||
DEPLOY_NAME=prod-atlantis
|
DEPLOY_NAME=prod-atlantis
|
||||||
|
|||||||
@@ -3,37 +3,6 @@
|
|||||||
value:
|
value:
|
||||||
name: LOG_LEVEL
|
name: LOG_LEVEL
|
||||||
value: "4"
|
value: "4"
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: prod-atlantis-barentswatch
|
|
||||||
key: secret
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_CLIENT_ID
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: prod-atlantis-barentswatch
|
|
||||||
key: client-id
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_USER
|
|
||||||
value: default
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: prod-redis
|
|
||||||
key: redis-password
|
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/envFrom/-
|
path: /spec/template/spec/containers/0/envFrom/-
|
||||||
value:
|
value:
|
||||||
|
|||||||
@@ -19,4 +19,9 @@ patches:
|
|||||||
path: deployment_patch.yaml
|
path: deployment_patch.yaml
|
||||||
resources:
|
resources:
|
||||||
- ../base
|
- ../base
|
||||||
|
- secrets.yaml
|
||||||
|
- tracing.yaml
|
||||||
|
- bindings.yaml
|
||||||
|
- pubsub.yaml
|
||||||
|
- statestore.yaml
|
||||||
- subscriptions.yaml
|
- subscriptions.yaml
|
||||||
|
|||||||
@@ -2,18 +2,17 @@ apiVersion: dapr.io/v1alpha1
|
|||||||
kind: Component
|
kind: Component
|
||||||
metadata:
|
metadata:
|
||||||
name: pubsub
|
name: pubsub
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
spec:
|
||||||
version: v1
|
version: v1
|
||||||
type: pubsub.rabbitmq
|
type: pubsub.rabbitmq
|
||||||
metadata:
|
metadata:
|
||||||
- name: hostname
|
- name: hostname
|
||||||
value: {{ .Values.rabbitmq.service }}.{{ .Values.rabbitmq.namespace | default "rabbitmq" }}
|
value: prod
|
||||||
- name: username
|
- name: username
|
||||||
value: {{ .Values.rabbitmq.username }}
|
value: user
|
||||||
- name: password
|
- name: password
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Values.rabbitmq.secretName | default (printf "%s-rabbitmq" .Release.Name) }}
|
name: prod-rabbitmq
|
||||||
key: rabbitmq-password
|
key: rabbitmq-password
|
||||||
- name: protocol
|
- name: protocol
|
||||||
value: amqp
|
value: amqp
|
||||||
@@ -51,4 +50,3 @@ spec:
|
|||||||
value: fanout
|
value: fanout
|
||||||
- name: clientName
|
- name: clientName
|
||||||
value: "{appID}"
|
value: "{appID}"
|
||||||
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kyverno/clone: "true"
|
||||||
|
name: prod-rabbitmq
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
@@ -2,21 +2,21 @@ apiVersion: dapr.io/v1alpha1
|
|||||||
kind: Component
|
kind: Component
|
||||||
metadata:
|
metadata:
|
||||||
name: statestore
|
name: statestore
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
spec:
|
||||||
type: state.redis
|
type: state.redis
|
||||||
version: v1
|
version: v1
|
||||||
metadata:
|
metadata:
|
||||||
- name: redisHost
|
- name: redisHost
|
||||||
value: {{ .Release.Name }}-redis-master:6379
|
value: <x>-redis-master:6379
|
||||||
- name: redisUsername
|
- name: redisUsername
|
||||||
value: default
|
value: default
|
||||||
- name: redisPassword
|
- name: redisPassword
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: <x>-redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: actorStateStore
|
- name: actorStateStore
|
||||||
value: "true"
|
value: "true"
|
||||||
|
- name: redisDB
|
||||||
|
value: "1"
|
||||||
scopes:
|
scopes:
|
||||||
- atlantis
|
- atlantis
|
||||||
- {{ .Release.Name }}-atlantis
|
|
||||||
@@ -5,12 +5,12 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
topic: hipster
|
topic: hipster
|
||||||
routes:
|
routes:
|
||||||
default: /hipster-events
|
default: /events/hipster
|
||||||
pubsubname: pubsub
|
pubsubname: pubsub
|
||||||
metadata:
|
metadata:
|
||||||
queueType: quorum
|
queueType: quorum
|
||||||
scopes:
|
scopes:
|
||||||
- prod-atlantis
|
- atlantis
|
||||||
---
|
---
|
||||||
apiVersion: dapr.io/v2alpha1
|
apiVersion: dapr.io/v2alpha1
|
||||||
kind: Subscription
|
kind: Subscription
|
||||||
@@ -19,9 +19,9 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
topic: inbox
|
topic: inbox
|
||||||
routes:
|
routes:
|
||||||
default: /inbox-events
|
default: /events/inbox
|
||||||
pubsubname: pubsub
|
pubsubname: pubsub
|
||||||
metadata:
|
metadata:
|
||||||
queueType: quorum
|
queueType: quorum
|
||||||
scopes:
|
scopes:
|
||||||
- prod-atlantis
|
- atlantis
|
||||||
@@ -2,10 +2,8 @@ apiVersion: dapr.io/v1alpha1
|
|||||||
kind: Configuration
|
kind: Configuration
|
||||||
metadata:
|
metadata:
|
||||||
name: tracing
|
name: tracing
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
spec:
|
||||||
tracing:
|
tracing:
|
||||||
samplingRate: "1"
|
samplingRate: "1"
|
||||||
zipkin:
|
zipkin:
|
||||||
endpointAddress: {{ .Values.tracing.endpoint }}
|
endpointAddress: "http://opentelemetry-collector.otel:9411/api/v2/spans"
|
||||||
|
|
||||||
@@ -28,8 +28,23 @@
|
|||||||
"http://atlantis.beta.oceanbox.io",
|
"http://atlantis.beta.oceanbox.io",
|
||||||
"https://atlantis.beta.oceanbox.io"
|
"https://atlantis.beta.oceanbox.io"
|
||||||
],
|
],
|
||||||
"logService" : "https://seq.adm.oceanbox.io",
|
"otelCollector": "http://opentelemetry-collector.opentelemetry.svc:4317",
|
||||||
"logApiKey": "",
|
|
||||||
"deployEnv": "staging",
|
"deployEnv": "staging",
|
||||||
|
"deployName": "atlantis",
|
||||||
|
"slurm": {
|
||||||
|
"baseUrl": "https://hipster-slurmrestd.ekman.oceanbox.io/",
|
||||||
|
"slurmApi": "slurm/v0.0.38/",
|
||||||
|
"dbdApi": "slurmdbd/v0.0.38/",
|
||||||
|
"user": "serf",
|
||||||
|
"password": "wooqueiLee3ao0ha"
|
||||||
|
},
|
||||||
|
"amqp": {
|
||||||
|
"auth": "user:bunny",
|
||||||
|
"host": "10.1.8.60:30673"
|
||||||
|
},
|
||||||
|
"pubsubName": "pubsub",
|
||||||
|
"pubsubTopic": "hipster-atlantis",
|
||||||
|
"fenceRadius": 1250.0,
|
||||||
|
"cerbosUrl": "http://staging-cerbos.idp.svc:3593",
|
||||||
"plainAuthUsers": []
|
"plainAuthUsers": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Component
|
||||||
|
metadata:
|
||||||
|
name: slurm-events
|
||||||
|
spec:
|
||||||
|
type: bindings.rabbitmq
|
||||||
|
version: v1
|
||||||
|
metadata:
|
||||||
|
- name: host
|
||||||
|
secretKeyRef:
|
||||||
|
name: staging-rabbitmq
|
||||||
|
key: connString
|
||||||
|
- name: queueName
|
||||||
|
value: staging-hipster-slurm-job-events
|
||||||
|
- name: durable
|
||||||
|
value: true
|
||||||
|
- name: contentType
|
||||||
|
value: "application/json"
|
||||||
|
- name: route
|
||||||
|
value: /events/slurm
|
||||||
|
scopes:
|
||||||
|
- atlantis
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
OIDC_CLIENT_SECRET=3QjfSPmAemjn34XVA2o1fvoS7I4gKvOR
|
OIDC_CLIENT_SECRET=3QjfSPmAemjn34XVA2o1fvoS7I4gKvOR
|
||||||
SEQ_APIKEY=v9RfeLBD9Si7OkFlkjPm
|
|
||||||
DEPLOY_NAME=staging-atlantis
|
DEPLOY_NAME=staging-atlantis
|
||||||
|
|||||||
@@ -3,37 +3,6 @@
|
|||||||
value:
|
value:
|
||||||
name: LOG_LEVEL
|
name: LOG_LEVEL
|
||||||
value: "4"
|
value: "4"
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: staging-atlantis-barentswatch
|
|
||||||
key: secret
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_CLIENT_ID
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: staging-atlantis-barentswatch
|
|
||||||
key: client-id
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_USER
|
|
||||||
value: default
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: staging-redis
|
|
||||||
key: redis-password
|
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/envFrom/-
|
path: /spec/template/spec/containers/0/envFrom/-
|
||||||
value:
|
value:
|
||||||
|
|||||||
@@ -19,3 +19,9 @@ patches:
|
|||||||
path: deployment_patch.yaml
|
path: deployment_patch.yaml
|
||||||
resources:
|
resources:
|
||||||
- ../base
|
- ../base
|
||||||
|
- secrets.yaml
|
||||||
|
- tracing.yaml
|
||||||
|
- bindings.yaml
|
||||||
|
- pubsub.yaml
|
||||||
|
- statestore.yaml
|
||||||
|
- subscriptions.yaml
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Component
|
||||||
|
metadata:
|
||||||
|
name: pubsub
|
||||||
|
spec:
|
||||||
|
version: v1
|
||||||
|
type: pubsub.rabbitmq
|
||||||
|
metadata:
|
||||||
|
- name: hostname
|
||||||
|
value: staging
|
||||||
|
- name: username
|
||||||
|
value: user
|
||||||
|
- name: password
|
||||||
|
secretKeyRef:
|
||||||
|
name: staging-rabbitmq
|
||||||
|
key: rabbitmq-password
|
||||||
|
- name: protocol
|
||||||
|
value: amqp
|
||||||
|
- name: durable
|
||||||
|
value: true
|
||||||
|
- name: deletedWhenUnused
|
||||||
|
value: false
|
||||||
|
- name: autoAck
|
||||||
|
value: false
|
||||||
|
- name: deliveryMode
|
||||||
|
value: 1
|
||||||
|
- name: requeueInFailure
|
||||||
|
value: false
|
||||||
|
- name: prefetchCount
|
||||||
|
value: 0
|
||||||
|
- name: reconnectWait
|
||||||
|
value: 0
|
||||||
|
- name: concurrencyMode
|
||||||
|
value: parallel
|
||||||
|
- name: publisherConfirm
|
||||||
|
value: false
|
||||||
|
- name: backOffPolicy
|
||||||
|
value: exponential
|
||||||
|
- name: backOffInitialInterval
|
||||||
|
value: 100
|
||||||
|
- name: backOffMaxRetries
|
||||||
|
value: 16
|
||||||
|
- name: enableDeadLetter # Optional enable dead Letter or not
|
||||||
|
value: true
|
||||||
|
- name: maxLen # Optional max message count in a queue
|
||||||
|
value: 3000
|
||||||
|
- name: maxLenBytes # Optional maximum length in bytes of a queue.
|
||||||
|
value: 10485760
|
||||||
|
- name: exchangeKind
|
||||||
|
value: fanout
|
||||||
|
- name: clientName
|
||||||
|
value: "{appID}"
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kyverno/clone: "true"
|
||||||
|
name: staging-rabbitmq
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Component
|
||||||
|
metadata:
|
||||||
|
name: statestore
|
||||||
|
spec:
|
||||||
|
type: state.redis
|
||||||
|
version: v1
|
||||||
|
metadata:
|
||||||
|
- name: redisHost
|
||||||
|
value: <x>-redis-master:6379
|
||||||
|
- name: redisUsername
|
||||||
|
value: default
|
||||||
|
- name: redisPassword
|
||||||
|
secretKeyRef:
|
||||||
|
name: <x>-redis
|
||||||
|
key: redis-password
|
||||||
|
- name: actorStateStore
|
||||||
|
value: "true"
|
||||||
|
- name: redisDB
|
||||||
|
value: "1"
|
||||||
|
scopes:
|
||||||
|
- atlantis
|
||||||
+3
-7
@@ -2,30 +2,26 @@ apiVersion: dapr.io/v2alpha1
|
|||||||
kind: Subscription
|
kind: Subscription
|
||||||
metadata:
|
metadata:
|
||||||
name: hipster-events
|
name: hipster-events
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
spec:
|
||||||
topic: hipster
|
topic: hipster
|
||||||
routes:
|
routes:
|
||||||
default: /hipster-events
|
default: /events/hipster
|
||||||
pubsubname: pubsub
|
pubsubname: pubsub
|
||||||
metadata:
|
metadata:
|
||||||
queueType: quorum
|
queueType: quorum
|
||||||
scopes:
|
scopes:
|
||||||
- atlantis
|
- atlantis
|
||||||
- {{ .Release.Name}}-atlantis
|
|
||||||
---
|
---
|
||||||
apiVersion: dapr.io/v2alpha1
|
apiVersion: dapr.io/v2alpha1
|
||||||
kind: Subscription
|
kind: Subscription
|
||||||
metadata:
|
metadata:
|
||||||
name: inbox-events
|
name: inbox-events
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
spec:
|
||||||
topic: inbox
|
topic: inbox
|
||||||
routes:
|
routes:
|
||||||
default: /inbox-events
|
default: /events/inbox
|
||||||
pubsubname: pubsub
|
pubsubname: pubsub
|
||||||
metadata:
|
metadata:
|
||||||
queueType: quorum
|
queueType: quorum
|
||||||
scopes:
|
scopes:
|
||||||
- atlantis
|
- atlantis
|
||||||
- {{ .Release.Name}}-atlantis
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: dapr.io/v1alpha1
|
||||||
|
kind: Configuration
|
||||||
|
metadata:
|
||||||
|
name: tracing
|
||||||
|
spec:
|
||||||
|
tracing:
|
||||||
|
samplingRate: "1"
|
||||||
|
zipkin:
|
||||||
|
endpointAddress: "http://opentelemetry-collector.otel:9411/api/v2/spans"
|
||||||
@@ -22,6 +22,27 @@ ingress:
|
|||||||
- maps.oceanbox.io
|
- maps.oceanbox.io
|
||||||
secretName: atlantis-tls
|
secretName: atlantis-tls
|
||||||
|
|
||||||
|
env:
|
||||||
|
- name: REDIS_USER
|
||||||
|
value: default
|
||||||
|
- name: REDIS_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: prod-redis
|
||||||
|
key: redis-password
|
||||||
|
- name: BARENTSWATCH_CLIENT_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: prod-atlantis-barentswatch
|
||||||
|
key: secret
|
||||||
|
optional: true
|
||||||
|
- name: BARENTSWATCH_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: prod-atlantis-barentswatch
|
||||||
|
key: client-id
|
||||||
|
optional: true
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
|||||||
@@ -2,8 +2,10 @@ replicaCount: 2
|
|||||||
|
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
dapr.io/app-id: "staging-atlantis"
|
dapr.io/app-id: "staging-atlantis"
|
||||||
|
|
||||||
image:
|
image:
|
||||||
tag: 7f3512e0-debug
|
tag: 7f3512e0-debug
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
@@ -32,6 +34,28 @@ ingress:
|
|||||||
- atlas.oceanbox.io
|
- atlas.oceanbox.io
|
||||||
- beta.oceanbox.io
|
- beta.oceanbox.io
|
||||||
secretName: staging-atlantis-tls
|
secretName: staging-atlantis-tls
|
||||||
|
|
||||||
|
env:
|
||||||
|
- name: REDIS_USER
|
||||||
|
value: default
|
||||||
|
- name: REDIS_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: staging-redis
|
||||||
|
key: redis-password
|
||||||
|
- name: BARENTSWATCH_CLIENT_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: staging-atlantis-barentswatch
|
||||||
|
key: secret
|
||||||
|
optional: true
|
||||||
|
- name: BARENTSWATCH_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: staging-atlantis-barentswatch
|
||||||
|
key: client-id
|
||||||
|
optional: true
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
|
|
||||||
podAnnotations:
|
podAnnotations:
|
||||||
dapr.io/enabled: "true"
|
dapr.io/enabled: "true"
|
||||||
dapr.io/app-port: "8000"
|
dapr.io/app-port: "8085"
|
||||||
dapr.io/config: "tracing"
|
dapr.io/config: "tracing"
|
||||||
dapr.io/app-protocol: "http"
|
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"
|
dapr.io/log-as-json: "true"
|
||||||
|
dapr.io/sidecar-cpu-request: "10m"
|
||||||
|
dapr.io/sidecar-memory-request: "50Mi"
|
||||||
|
# dapr.io/sidecar-cpu-limit: "100m"
|
||||||
|
# dapr.io/sidecar-memory-limit: "1000Mi"
|
||||||
|
|||||||
Reference in New Issue
Block a user