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 }}' string: '{{ .env }}'
- name: hostname - name: hostname
string: '{{ .hostname }}' string: '{{ .hostname }}'
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: dev
path: charts/hipster/manifests
templatePatch: | templatePatch: |
{{- if .autoSync }} {{- if .autoSync }}
spec: spec:
-2
View File
@@ -5,12 +5,10 @@ patches:
version: v1 version: v1
group: apps group: apps
kind: Deployment kind: Deployment
name: hipster
path: deployment_patch.yaml path: deployment_patch.yaml
- target: - target:
version: v1 version: v1
kind: Service kind: Service
name: hipster
path: service_patch.yaml path: service_patch.yaml
resources: resources:
- _manifest.yaml - _manifest.yaml
+1 -1
View File
@@ -6,7 +6,7 @@ replicaCount: 1
image: image:
repository: registry.gitlab.com/oceanbox/hipster repository: registry.gitlab.com/oceanbox/hipster
tag: latest tag: v2.5.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
init: 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/", "slurmApi": "slurm/v0.0.38/",
"dbdApi": "slurmdbd/v0.0.38/", "dbdApi": "slurmdbd/v0.0.38/",
"user": "serf", "user": "serf",
"password": "wooqueiLee3ao0ha" "password": ""
}, },
"amqp": { "amqp": {
"auth": "user:bunny", "auth": "",
"host": "10.1.8.60:30673" "host": "prod-rabbitmq.rabbitmq.svc"
}, },
"archmeister": "https://archmeister.srv.oceanbox.io", "archmeister": "https://archmeister.srv.oceanbox.io",
"pubsubName": "pubsub", "pubsubName": "pubsub",
@@ -17,17 +17,14 @@ spec:
- name: username - name: username
value: user value: user
- name: password - name: password
value: secretKeyRef:
secretKeyRef: name: prod-rabbitmq
name: rabbitmq-secret
key: rabbitmq-password key: rabbitmq-password
- name: queueName - name: queueName
value: <x>-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:
- staging-hipster - hipster
- production-hipster
- x-review-hipster
+2
View File
@@ -0,0 +1,2 @@
SLURM_PASSWORD=wooqueiLee3ao0ha
SEQ_APIKEY=bFdYPKLDvnau3fQa1vRV
+6 -1
View File
@@ -25,6 +25,11 @@
- op: replace - op: replace
path: /spec/template/spec/containers/0/readinessProbe/httpGet/path path: /spec/template/spec/containers/0/readinessProbe/httpGet/path
value: /healthz value: /healthz
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: AMQP_USER
value: user
- op: add - op: add
path: /spec/template/spec/containers/0/env/- path: /spec/template/spec/containers/0/env/-
value: value:
@@ -37,4 +42,4 @@
path: /spec/template/spec/containers/0/envFrom/- path: /spec/template/spec/containers/0/envFrom/-
value: value:
secretRef: secretRef:
name: hipster-env name: prod-hipster-env
+6 -5
View File
@@ -1,16 +1,17 @@
namePrefix: production-
generatorOptions: generatorOptions:
disableNameSuffixHash: true disableNameSuffixHash: true
secretGenerator: secretGenerator:
- name: hipster-appsettings - name: prod-hipster-appsettings
files: files:
- appsettings.json - appsettings.json
- name: prod-hipster-env
envs:
- default.env
patches: patches:
- target: - target:
group: apps group: apps
version: v1 version: v1
kind: Deployment kind: Deployment
name: hipster
path: deployment_patch.yaml path: deployment_patch.yaml
resources: resources:
- ../base - ../base
+2 -2
View File
@@ -7,8 +7,8 @@
"password": "wooqueiLee3ao0ha" "password": "wooqueiLee3ao0ha"
}, },
"amqp": { "amqp": {
"auth": "user:bunny", "auth": "",
"host": "10.1.8.60:30673" "host": "staging-rabbitmq.rabbitmq.svc"
}, },
"archmeister": "https://archmeister.beta.oceanbox.io", "archmeister": "https://archmeister.beta.oceanbox.io",
"pubsubName": "pubsub", "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/- path: /spec/template/spec/containers/0/envFrom/-
value: value:
secretRef: secretRef:
name: hipster-env name: staging-hipster-env
+6 -5
View File
@@ -1,16 +1,17 @@
namePrefix: staging-
generatorOptions: generatorOptions:
disableNameSuffixHash: true disableNameSuffixHash: true
secretGenerator: secretGenerator:
- name: hipster-appsettings - name: staging-hipster-appsettings
files: files:
- appsettings.json - appsettings.json
- name: staging-hipster-env
envs:
- default.env
patches: patches:
- target: - target:
group: apps group: apps
version: v1 version: v1
kind: Deployment kind: Deployment
name: hipster
path: deployment_patch.yaml path: deployment_patch.yaml
resources: resources:
- ../base - ../base
-2
View File
@@ -1,5 +1,3 @@
fullnameOverride: hipster
ingress: ingress:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-production cert-manager.io/cluster-issuer: letsencrypt-production
-2
View File
@@ -1,5 +1,3 @@
fullnameOverride: hipster
image: image:
tag: d3af2100-debug tag: d3af2100-debug