Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions applications/mlflow/charts/postgres-support/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v2
name: postgres-support
description: Support bundle specs for CloudnativePG PostgreSQL
type: application
version: 0.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{{- define "postgres-support.supportbundle" -}}
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: postgres-supportbundle
spec:
collectors:
- logs:
name: cnpg-operator-logs
namespace: {{ .Release.Namespace }}
selector:
- app.kubernetes.io/name=cloudnative-pg
limits:
maxAge: 720h
maxLines: 10000
- logs:
name: postgres-cluster-logs
namespace: {{ .Release.Namespace }}
selector:
- cnpg.io/cluster
limits:
maxAge: 720h
maxLines: 10000
- exec:
name: cnpg-cluster-status
namespace: {{ .Release.Namespace }}
selector:
- cnpg.io/cluster
command: ["pg_isready"]
args: ["-U", "postgres"]
timeout: 10s
- clusterResources:
name: cnpg-clusters
- clusterResources:
name: postgres-pvcs
analyzers:
- textAnalyze:
checkName: CloudnativePG Operator Running
fileName: cnpg-operator-logs/*.log
regex: "Starting manager"
outcomes:
- pass:
when: "true"
message: CloudnativePG operator is running
- fail:
when: "false"
message: CloudnativePG operator may not be running — check operator pod logs
- textAnalyze:
checkName: PostgreSQL Cluster Healthy
fileName: postgres-cluster-logs/*.log
regex: "database system is ready to accept connections"
outcomes:
- pass:
when: "true"
message: PostgreSQL cluster is accepting connections
- fail:
when: "false"
message: PostgreSQL cluster may not be healthy — check cluster pod logs
- textAnalyze:
checkName: PostgreSQL Ready Check
fileName: cnpg-cluster-status/*/pg_isready-*.txt
regex: "accepting connections"
outcomes:
- pass:
when: "true"
message: PostgreSQL is accepting connections
- fail:
when: "false"
message: PostgreSQL is not accepting connections
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: postgres-supportbundle
labels:
troubleshoot.sh/kind: support-bundle
type: Opaque
stringData:
support-bundle-spec: |
{{ include "postgres-support.supportbundle" . | indent 4 }}
12 changes: 12 additions & 0 deletions applications/mlflow/release/postgres-support-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kots.io/v1beta2
kind: HelmChart
metadata:
name: postgres-support
spec:
chart:
name: postgres-support
chartVersion: 0.1.0
exclude: 'repl{{ ConfigOptionEquals `postgres_type` `external_postgres` }}'
weight: -5
values: {}
builder: {}
Loading