Go to file
Seth Call d7bda1aeb1 feat: add admin argo app, act-runner, and gitea configuration 2026-03-09 16:44:27 -05:00
docker 1.0.11 2026-01-07 08:27:29 -06:00
k8s feat: add admin argo app, act-runner, and gitea configuration 2026-03-09 16:44:27 -05:00
k8s-notes more 2025-04-06 17:58:43 -05:00
scripts feat: add admin argo app, act-runner, and gitea configuration 2026-03-09 16:44:27 -05:00
tasks 1.0.11 2026-01-07 08:27:29 -06:00
terraform k8s version 2026-02-18 20:56:32 -06:00
.gitignore autherial and terraform 2026-02-15 16:18:21 -06:00
.hadolint.yaml Let's test deploying automatically from dev to prod 2026-01-11 16:13:08 -06:00
NOTES.md healthcheck and monitoring 2025-10-05 17:43:16 -05:00
README.md poke 2026-01-03 23:50:58 -06:00
bitbucket-pipelines.yml Try server-side apply 2026-02-06 22:13:25 -06:00
jkctl Staging redis/resque stood up 2026-03-05 19:49:03 -06:00

README.md

README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?

Development Setup

  1. Install Pre-commit Hooks (Required for CRD management):
    ./scripts/setup-hooks.sh
    
    This ensures that k8s/crds/all-crds.yaml is automatically updated whenever you modify the monitoring Helm chart.

Monitoring Chart Patch (Critical)

The included chart k8s/monitoring/charts/kube-prometheus-stack-75.12.0.tgz is MANUALLY PATCHED.

Why? The upstream chart (v65.x+) introduced a field trackTimestampsStaleness in the ServiceMonitor CRD. Our cluster is running an older version of the Prometheus Operator/CRDs that does not support this field. The upstream chart renders this field unconditionally in some templates (specifically kubelet), causing ArgoCD sync to fail with a schema validation error ("field not declared in schema").

How was it patched?

  1. Unpacked the official kube-prometheus-stack-75.12.0.tgz.
  2. Modified templates/exporters/kubelet/servicemonitor.yaml.
  3. Wrapped trackTimestampsStaleness in a conditional block:
    {{- if .Values.kubelet.serviceMonitor.trackTimestampsStaleness }}
    trackTimestampsStaleness: {{ .Values.kubelet.serviceMonitor.trackTimestampsStaleness }}
    {{- end }}
    
  4. Repackaged the chart using tar -czf.
  5. Force added to git (git add -f) because charts/*.tgz is ignored.

When to delete? You can revert to the official upstream chart once the Prometheus Operator CRDs on the cluster are upgraded to a version that includes trackTimestampsStaleness in the ServiceMonitor schema (likely Prometheus Operator >= v0.68.0 or similar).

How do I get set up?

  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions

Contribution guidelines

  • Writing tests
  • Code review
  • Other guidelines

Who do I talk to?

  • Repo owner or admin
  • Other community or team contact

Apply terraform

Install ArgoCD

kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

Add Bitbucket SSH Key secret