-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add redis and cnpg postgress to the app * Add secrets management * Move env vars from configmap into deployment * Remove gafaelfawr ingress for time being (until gf gets deployed to usdf cm vclusters) * Add volume configuration support for service output dir * Adjust to run service as user `lsstsvc1` * Add condor-capable worker deployment * Move deployment from `idfdemo` to `usdf-cm`
- Loading branch information
Showing
17 changed files
with
448 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
redis-password: | ||
description: >- | ||
Password used to authenticate cm-service to its internal Redis server, | ||
deployed as part of the same Argo CD application. This secret can be | ||
changed at any time, but both the Redis server and the cm-service | ||
deployments will then have to be restarted to pick up the new value. | ||
generate: | ||
type: password | ||
postgres-password: | ||
description: >- | ||
Password used to authenticate cm-service to its internal cnpg Postgres | ||
server, deployed as part of the same Argo CD application. This secret can | ||
be changed at any time, but both the Redis server and the cm-service | ||
deployments will then have to be restarted to pick up the new value. | ||
generate: | ||
type: password |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: cm-service-pg | ||
labels: | ||
{{- include "cm-service.labels" . | nindent 4 }} | ||
spec: | ||
instances: 1 | ||
bootstrap: | ||
initdb: | ||
database: cm-service | ||
owner: cm-service | ||
secret: | ||
name: postgres-secret | ||
storage: | ||
size: 1Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: cm-service-output | ||
labels: | ||
{{- include "cm-service.labels" . | nindent 4 }} | ||
spec: | ||
{{- with .Values.config.outputVolume.storageClassName }} | ||
storageClassName: {{ . }} | ||
{{- end }} | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: {{ .Values.config.outputVolume.storage }} | ||
{{- with .Values.worker.htcondor.fsRemoteDir }} | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: cm-service-htcondor | ||
labels: | ||
{{- include "cm-service.labels" $ | nindent 4 }} | ||
spec: | ||
{{- with .storageClassName }} | ||
storageClassName: {{ . }} | ||
{{- end }} | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: {{ .storage }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: ricoberger.de/v1alpha1 | ||
kind: VaultSecret | ||
metadata: | ||
name: redis-secret | ||
labels: | ||
{{- include "cm-service.labels" . | nindent 4 }} | ||
spec: | ||
path: "{{ .Values.global.vaultSecretsPath }}/cm-service" | ||
templates: | ||
password: >- | ||
{% index .Secrets "redis-password" %} | ||
type: Opaque | ||
--- | ||
apiVersion: ricoberger.de/v1alpha1 | ||
kind: VaultSecret | ||
metadata: | ||
name: postgres-secret | ||
labels: | ||
{{- include "cm-service.labels" . | nindent 4 }} | ||
spec: | ||
path: "{{ .Values.global.vaultSecretsPath }}/cm-service" | ||
templates: | ||
username: cm-service | ||
password: >- | ||
{% index .Secrets "postgres-password" %} | ||
type: kubernetes.io/basic-auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "cm-service-config-worker" | ||
labels: | ||
{{- include "cm-service.labels" . | nindent 4 }} | ||
data: | ||
{{- with .Values.worker.htcondor.config }} | ||
config: | | ||
{{- .contents | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.worker.htcondor.scheddAddress }} | ||
scheddAddress: | | ||
{{- .contents | nindent 4 }} | ||
{{- end }} |
Oops, something went wrong.