-
Notifications
You must be signed in to change notification settings - Fork 6
migrate monitoring stack to argocd #1515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b936886
c91b4a3
4f1dc4e
98ac486
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| {{- if .Values.monitoring.enabled }} | ||
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: monitoring | ||
| namespace: argocd | ||
| annotations: | ||
| argocd.argoproj.io/sync-wave: "0" | ||
| spec: | ||
| destination: | ||
| namespace: monitoring | ||
| server: {{ .Values.destination.server }} | ||
| project: default | ||
| source: | ||
| repoURL: https://github.com/DiamondLightSource/workflows.git | ||
| path: charts/monitoring | ||
| targetRevision: {{ .Values.monitoring.targetRevision }} | ||
| helm: | ||
| valueFiles: | ||
| - values.yaml | ||
| {{- if .Values.monitoring.extraValueFiles }} | ||
| {{- .Values.monitoring.extraValueFiles | toYaml | nindent 8 }} | ||
| {{- end }} | ||
| {{- if .Values.monitoring.valuesObject }} | ||
| valuesObject: | ||
| {{- .Values.monitoring.valuesObject | toYaml | nindent 8 }} | ||
| {{- end }} | ||
| syncPolicy: | ||
| automated: | ||
| prune: true | ||
| selfHeal: true | ||
| {{- end }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,15 +3,15 @@ apiVersion: bitnami.com/v1alpha1 | |
| kind: SealedSecret | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above comment. All sealed secrets have been migrated to: This eliminates the need for us to run and manage our own SealedSecrets controller. |
||
| metadata: | ||
| name: grafana-oauth | ||
| namespace: workflows | ||
| namespace: monitoring | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has to be workflows (referring to the namespace the vcluster is installed in). It is then mapped in both the values.yaml and staging-values.yaml to its destination namespace within the vcluster
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The monitoring chart is rendered inside the vcluster, with monitoring namespace as the destination. So, this template must be in the monitoring namespace |
||
| spec: | ||
| encryptedData: | ||
| client-id: AgB6cWGK5n9LSkX29hVE82ERqV8B3+PU5va4O4s4Dbmk6/IRiJ0P8dn+Xkc0D57dx71HkhkZ4I0mQKj/T4ZfSE0NK7yW4OXCobQMQC3532MQHlBU6gweaAcak89fKgACLM9xCe23JKr9IlSROaNTHEhrpFktoq89PRh8u4zVo0wFsUNpxqqc/LZo/ICC/2CGht3AMxKlcDV66f1XE9GEYMNEHV5qXxq4dCrzBXnTgJZ5aTLUpW0xHUfYvPSmZ2kynGS2UTSrArbp++nphO9hzKg6Id6hPuqeptXO907gDeR1rykEXZkFmVuROWXMdGna/4Cgd5whAktkt9LeURvwa5zQ3UA6y+P2bCHPtKMN4760k+1GTiC3fP+YJkRIjgGTF+TJVKdSzJ6fZ5794IVZ/apdlrapxED7+v8uGRdW+RymrHUMZ26tj0FiSiW0wjvVq4v4GgpxTqmnHF+0U/Rv5402FkASh5/0G52gOAKX7Y/Cur2qozbxy/RVstpiV7BZJb3+8+0PdyUr5znY1tHCJjHeF6T8f5p5BQaMARkIFCkpxW9Q3Lt5iyGLWDsRevuw+nGuQTBfXbcTA6ThMIK1g7qNMH60Roj+robO4SKdWXedB+qEdLMerVOlmagC/EeF9gGZ2NCjTfu3blNjkLdhCV25fJAxhyQC/OwBug585nHA8Kz9jowsFND4+xn0jMNm1nq586687rbc3F4J1fMNQ/FOkg== | ||
| client-secret: AgB+r2lmnpgSCCnPVfLa24mC1u+nut4WXUVfVWgcDVZQKzVIniZWWa6HPxO+B/V1apcZ60XuyFZGCaEXo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qgKg== | ||
| template: | ||
| metadata: | ||
| name: grafana-oauth | ||
| namespace: workflows | ||
| namespace: monitoring | ||
| type: Opaque | ||
| {{- else if eq .Values.cluster "pollux" }} | ||
| apiVersion: bitnami.com/v1alpha1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -143,12 +143,12 @@ thanos: | |
| replicaCount: 1 | ||
| persistence: | ||
| enabled: false | ||
| retention: | ||
| resolutionRaw: 30d | ||
| resolution5m: 30d | ||
| resolution1h: 1y | ||
| extraArgs: | ||
| - --retention.resolution-raw=30d | ||
| - --retention.resolution-5m=30d | ||
| - --retention.resolution-1h=1y | ||
| - --consistency-delay=30m | ||
| - --wait | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is removal of --wait intentional?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| resources: | ||
| requests: | ||
| cpu: "1" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why it’s switched off in staging?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SInce we don't have a sealedsecret controller inside the vcluster in pollux, thought it might be better to wait for your openbao migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SealedSecrets controller should also be disabled in production. See:
workflows/charts/apps/values.yaml
Line 119 in d858c70
The current strategy is to seal secrets in the host cluster,
deploy them via the secrets charts:
https://github.com/DiamondLightSource/workflows/tree/main/charts/workflows-cluster/charts/secrets
Copy them to the vCluster via vCluster syncing:
workflows/charts/workflows-cluster/values.yaml
Line 142 in d858c70