video-iac/k8s
Seth Call eade1b7847 fix level 2025-12-14 12:58:03 -06:00
..
applications Let's see if this fixes 2025-12-14 08:08:25 -06:00
argocd Argocd server-side-apply 2025-11-20 06:44:34 -06:00
cert-manager refactor 2021-11-16 00:17:54 +01:00
coturn Try to fix nginx issue, coturn/webrtc_be rtp settings 2025-12-01 11:30:45 -06:00
coturn-dns healthchecks 2025-04-06 17:57:45 -05:00
crds Try to sync crds always with pre-commit 2025-12-12 15:31:23 -06:00
external-dns Match staging to production 2025-12-13 14:39:44 -06:00
loki fix level 2025-12-14 12:58:03 -06:00
monitoring Fix prod creds 2025-12-14 10:58:46 -06:00
probers Probers 1st attempt 2025-11-18 20:21:03 -06:00
promtail remove promtail 2025-12-06 18:59:21 -06:00
webrtc-be try to show webrtc-be in loki 2025-12-14 11:30:06 -06:00
DEBUGGING.md Adding loki support 2025-12-11 22:57:03 -06:00
README.md Apply grafana dashboard sidecare 2025-12-07 15:37:46 -06:00
activate-stg Adding loki support 2025-12-11 22:57:03 -06:00

README.md

Kubernetes Configuration

This directory contains Kubernetes manifests and configuration for the video infrastructure.

Managing CRDs

The file all-crds.yaml contains all Custom Resource Definitions (CRDs) required by the monitoring stack (Prometheus Operator).

When to update CRDs

You should regenerate all-crds.yaml by running scripts/update-crds.sh when:

  1. Upgrading the kube-prometheus-stack Helm chart: If you bump the chart version in k8s/monitoring/Chart.yaml and update the dependencies, you must also update the CRDs to match the new version.

  2. Missing CRD fields: If you encounter errors like field not declared in schema during ArgoCD syncs, it likely means the installed CRDs are outdated.

  3. Apply the CRDs: Since Helm does not manage CRD upgrades, you must apply the updated CRDs manually. You may need --force-conflicts if ArgoCD previously managed these resources:

    kubectl apply --server-side --force-conflicts -f k8s/all-crds.yaml
    
  4. Commit and Push: Commit the updated k8s/all-crds.yaml to the repository.

    git add k8s/all-crds.yaml
    git commit -m "Update Prometheus CRDs"
    git push
    

How to update

Run the update script from the repository root:

./scripts/update-crds.sh

This script extracts the CRDs from the local kube-prometheus-stack chart package and concatenates them into k8s/all-crds.yaml.