feat(dgraph): add optional PodDisruptionBudget, ServiceMonitor, PrometheusRule, and NetworkPolicy - #146
Open
mlwelles wants to merge 1 commit into
Open
feat(dgraph): add optional PodDisruptionBudget, ServiceMonitor, PrometheusRule, and NetworkPolicy#146mlwelles wants to merge 1 commit into
mlwelles wants to merge 1 commit into
Conversation
…theusRule, and NetworkPolicy All four resources default off. - pdb.yaml: alpha/zero PodDisruptionBudgets, default-off to avoid the single-replica drain deadlock (minAvailable >= replicaCount blocks kubectl drain / cluster-autoscaler eviction indefinitely). - servicemonitor.yaml: companion to commit 2's headless-Service ports; scoped to the ClusterIP Services via the monitor label. - prometheusrule.yaml: conservative default alerts on stable metrics (up, kube_job_status_failed); extraRules for image-specific alerts. - networkpolicy.yaml: ingress-only, intra-cluster allow plus clientPodLabels-gated alpha client access. ServiceMonitor/PrometheusRule require the Prometheus Operator CRDs; default-off means a stock install imposes no CRD dependency.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add four optional, default-off resources: PodDisruptionBudget (alpha and zero), ServiceMonitor (scoped to the ClusterIP Services via the
monitorlabel so headless Services are not double-scraped), PrometheusRule (conservative up/backup alerts), and NetworkPolicy (ingress). All are absent from a stock render; each renders only when its own flag is enabled.Part of splitting #140 into per-area PRs. The change was built and validated on that branch; the merge of all split PRs reproduces #140's tree byte-for-byte. #140 is being closed as superseded.