fix: update hipster deployment setup

This commit is contained in:
Jonas Juselius
2024-02-14 11:49:25 +01:00
parent 71f3d0f4c4
commit c084edf6cd
16 changed files with 63 additions and 42 deletions
-3
View File
@@ -37,9 +37,6 @@ spec:
string: '{{ .env }}'
- name: hostname
string: '{{ .hostname }}'
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: dev
path: charts/hipster/manifests
templatePatch: |
{{- if .autoSync }}
spec:
-2
View File
@@ -5,12 +5,10 @@ patches:
version: v1
group: apps
kind: Deployment
name: hipster
path: deployment_patch.yaml
- target:
version: v1
kind: Service
name: hipster
path: service_patch.yaml
resources:
- _manifest.yaml
+1 -1
View File
@@ -6,7 +6,7 @@ replicaCount: 1
image:
repository: registry.gitlab.com/oceanbox/hipster
tag: latest
tag: v2.5.0
pullPolicy: IfNotPresent
init:
@@ -1,8 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: hipster-env
namespace: atlantis
stringData:
SEQ_APIKEY: bFdYPKLDvnau3fQa1vRV
type: Opaque
+3 -3
View File
@@ -4,11 +4,11 @@
"slurmApi": "slurm/v0.0.38/",
"dbdApi": "slurmdbd/v0.0.38/",
"user": "serf",
"password": "wooqueiLee3ao0ha"
"password": ""
},
"amqp": {
"auth": "user:bunny",
"host": "10.1.8.60:30673"
"auth": "",
"host": "prod-rabbitmq.rabbitmq.svc"
},
"archmeister": "https://archmeister.srv.oceanbox.io",
"pubsubName": "pubsub",
@@ -17,17 +17,14 @@ spec:
- name: username
value: user
- name: password
value:
secretKeyRef:
name: rabbitmq-secret
secretKeyRef:
name: prod-rabbitmq
key: rabbitmq-password
- name: queueName
value: <x>-slurm-job-events
value: prod-hipster-slurm-job-events
- name: durable
value: true
- name: contentType
value: "application/json"
scopes:
- staging-hipster
- production-hipster
- x-review-hipster
- hipster
+2
View File
@@ -0,0 +1,2 @@
SLURM_PASSWORD=wooqueiLee3ao0ha
SEQ_APIKEY=bFdYPKLDvnau3fQa1vRV
+6 -1
View File
@@ -25,6 +25,11 @@
- op: replace
path: /spec/template/spec/containers/0/readinessProbe/httpGet/path
value: /healthz
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: AMQP_USER
value: user
- op: add
path: /spec/template/spec/containers/0/env/-
value:
@@ -37,4 +42,4 @@
path: /spec/template/spec/containers/0/envFrom/-
value:
secretRef:
name: hipster-env
name: prod-hipster-env
+6 -5
View File
@@ -1,16 +1,17 @@
namePrefix: production-
generatorOptions:
disableNameSuffixHash: true
secretGenerator:
- name: hipster-appsettings
files:
- appsettings.json
- name: prod-hipster-appsettings
files:
- appsettings.json
- name: prod-hipster-env
envs:
- default.env
patches:
- target:
group: apps
version: v1
kind: Deployment
name: hipster
path: deployment_patch.yaml
resources:
- ../base
+2 -2
View File
@@ -7,8 +7,8 @@
"password": "wooqueiLee3ao0ha"
},
"amqp": {
"auth": "user:bunny",
"host": "10.1.8.60:30673"
"auth": "",
"host": "staging-rabbitmq.rabbitmq.svc"
},
"archmeister": "https://archmeister.beta.oceanbox.io",
"pubsubName": "pubsub",
+30
View File
@@ -0,0 +1,30 @@
#
# Create a queue binding for receiving events from RabbitMQ.
# Used by Hipster to get info about changes in job status from slurm.
#
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: slurm-events
spec:
type: bindings.rabbitmq
version: v1
metadata:
- name: hostname
value: staging-rabbitmq.rabbitmq.svc
- name: protocol
value: amqp
- name: username
value: user
- name: password
secretKeyRef:
name: staging-rabbitmq
key: rabbitmq-password
- name: queueName
value: staging-hipster-slurm-job-events
- name: durable
value: true
- name: contentType
value: "application/json"
scopes:
- hipster
+2
View File
@@ -0,0 +1,2 @@
SLURM_PASSWORD=wooqueiLee3ao0ha
SEQ_APIKEY=bFdYPKLDvnau3fQa1vRV
+1 -1
View File
@@ -42,4 +42,4 @@
path: /spec/template/spec/containers/0/envFrom/-
value:
secretRef:
name: hipster-env
name: staging-hipster-env
+6 -5
View File
@@ -1,16 +1,17 @@
namePrefix: staging-
generatorOptions:
disableNameSuffixHash: true
secretGenerator:
- name: hipster-appsettings
files:
- appsettings.json
- name: staging-hipster-appsettings
files:
- appsettings.json
- name: staging-hipster-env
envs:
- default.env
patches:
- target:
group: apps
version: v1
kind: Deployment
name: hipster
path: deployment_patch.yaml
resources:
- ../base
-2
View File
@@ -1,5 +1,3 @@
fullnameOverride: hipster
ingress:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
-2
View File
@@ -1,5 +1,3 @@
fullnameOverride: hipster
image:
tag: d3af2100-debug