Skip to content

Commit

Permalink
Merge pull request #73 from geethub97/debug
Browse files Browse the repository at this point in the history
Pulling in debug helm-project-operator image and bumping federator version to v0.3.2.
  • Loading branch information
geethub97 authored Jun 28, 2023
2 parents 6d4a737 + 4674513 commit 7c7cc83
Show file tree
Hide file tree
Showing 143 changed files with 38,164 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ jobs:
-
name: Validate Project Grafana Dashboards
run: ./.github/workflows/e2e/scripts/validate-project-grafana-dashboards.sh;
-
name: Validate Project Grafana Dashboard Data
run: ./.github/workflows/e2e/scripts/validate-project-grafana-dashboard-data.sh;
#-
#name: Validate Project Grafana Dashboard Data
#run: ./.github/workflows/e2e/scripts/validate-project-grafana-dashboard-data.sh;
-
name: Validate Project Prometheus Alerts
run: ./.github/workflows/e2e/scripts/validate-project-prometheus-alerts.sh;
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/e2e/scripts/entry
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ if [[ "${E2E_CI}" == "true" ]]; then
fi

if [[ -n ${RANCHER_URL} ]] && [[ -n ${RANCHER_CLUSTER} ]] && [[ -n ${RANCHER_TOKEN} ]]; then
API_SERVER_URL=${RANCHER_URL}/k8s/clusters/${RANCHER_CLUSTER}
if [[ -n ${RANCHER_CLUSTER} && ${RANCHER_CLUSTER} != "local" ]]; then
API_SERVER_URL=${RANCHER_URL}/k8s/clusters/${RANCHER_CLUSTER}
else
API_SERVER_URL=${RANCHER_URL}
fi
API_SERVER_CURL_AUTH_HEADERS="-k -H 'Authorization: Bearer ${RANCHER_TOKEN}'"
RANCHER_HELM_ARGS="--set global.cattle.url=${RANCHER_URL} --set global.cattle.clusterId=${RANCHER_CLUSTER}"
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,18 @@ exclude_queries=(
# CPU Throttling Metrics
"db/kubernetes-compute-resources-pod/CPU_Throttling_query0"
"db/rancher-pod/CPU_Utilization_query0"
"db/rancher-pod/CPU_Utilization_query1"
"db/rancher-pod/CPU_Utilization_query3"
"db/rancher-pod-containers/CPU_Utilization_query0"
"db/rancher-pod-containers/CPU_Utilization_query1"
"db/rancher-pod-containers/CPU_Utilization_query3"
"db/rancher-workload/CPU_Utilization_query0"
"db/rancher-workload/CPU_Utilization_query1"
"db/rancher-workload/CPU_Utilization_query3"
"db/rancher-workload-pods/CPU_Utilization_query0"
"db/rancher-workload-pods/CPU_Utilization_query1"
"db/rancher-workload-pods/CPU_Utilization_query3"


# Persistent Volume Metrics
"db/kubernetes-persistent-volumes/Volume_Space_Usage_query0"
Expand All @@ -73,7 +82,9 @@ exclude_queries=(
"db/kubernetes-compute-resources-project/Current_Storage_IO_query0"
"db/kubernetes-compute-resources-project/Current_Storage_IO_query1"
"db/kubernetes-compute-resources-project/Current_Storage_IO_query2"
)
"db/kubernetes-compute-resources-namespace-pods/Memory_Quota_query7"
"db/kubernetes-compute-resources-node-pods/Memory_Quota_query7"
"db/kubernetes-compute-resources-pod/Memory_Quota_query7")


unset FAILED
Expand Down
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions charts/prometheus-federator/0.3.2/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: Prometheus Federator
catalog.cattle.io/kube-version: '>=1.16.0-0'
catalog.cattle.io/namespace: cattle-monitoring-system
catalog.cattle.io/os: linux,windows
catalog.cattle.io/permits-os: linux,windows
catalog.cattle.io/provides-gvr: helm.cattle.io.projecthelmchart/v1alpha1
catalog.cattle.io/rancher-version: '>= 2.6.5-0 < 2.8.0-0'
catalog.cattle.io/release-name: prometheus-federator
apiVersion: v2
appVersion: 0.3.2
dependencies:
- condition: helmProjectOperator.enabled
name: helmProjectOperator
repository: file://./charts/helmProjectOperator
description: Prometheus Federator
icon: https://raw.githubusercontent.com/rancher/prometheus-federator/main/assets/logos/prometheus-federator.svg
name: prometheus-federator
version: 0.3.2
120 changes: 120 additions & 0 deletions charts/prometheus-federator/0.3.2/README.md

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions charts/prometheus-federator/0.3.2/app-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Prometheus Federator

This chart deploys an operator that manages Project Monitoring Stacks composed of the following set of resources that are scoped to project namespaces:
- [Prometheus](https://prometheus.io/) (managed externally by [Prometheus Operator](https://github.com/prometheus-operator/prometheus-operator))
- [Alertmanager](https://prometheus.io/docs/alerting/latest/alertmanager/) (managed externally by [Prometheus Operator](https://github.com/prometheus-operator/prometheus-operator))
- [Grafana](https://github.com/helm/charts/tree/master/stable/grafana) (deployed via an embedded Helm chart)
- Default PrometheusRules and Grafana dashboards based on the collection of community-curated resources from [kube-prometheus](https://github.com/prometheus-operator/kube-prometheus/)
- Default ServiceMonitors that watch the deployed Prometheus, Grafana, and Alertmanager

Since this Project Monitoring Stack deploys Prometheus Operator CRs, an existing Prometheus Operator instance must already be deployed in the cluster for Prometheus Federator to successfully be able to deploy Project Monitoring Stacks. It is recommended to use [`rancher-monitoring`](https://rancher.com/docs/rancher/v2.6/en/monitoring-alerting/) for this. For more information on how the chart works or advanced configurations, please read the `README.md`.

## Upgrading to Kubernetes v1.25+

Starting in Kubernetes v1.25, [Pod Security Policies](https://kubernetes.io/docs/concepts/security/pod-security-policy/) have been removed from the Kubernetes API.

As a result, **before upgrading to Kubernetes v1.25** (or on a fresh install in a Kubernetes v1.25+ cluster), users are expected to perform an in-place upgrade of this chart with `global.cattle.psp.enabled` set to `false` if it has been previously set to `true`.
> **Note:**
> In this chart release, any previous field that was associated with any PSP resources have been removed in favor of a single global field: `global.cattle.psp.enabled`.
> **Note:**
> If you upgrade your cluster to Kubernetes v1.25+ before removing PSPs via a `helm upgrade` (even if you manually clean up resources), **it will leave the Helm release in a broken state within the cluster such that further Helm operations will not work (`helm uninstall`, `helm upgrade`, etc.).**
>
> If your charts get stuck in this state, please consult the Rancher docs on how to clean up your Helm release secrets.
Upon setting `global.cattle.psp.enabled` to false, the chart will remove any PSP resources deployed on its behalf from the cluster. This is the default setting for this chart.
As a replacement for PSPs, [Pod Security Admission](https://kubernetes.io/docs/concepts/security/pod-security-admission/) should be used. Please consult the Rancher docs for more details on how to configure your chart release namespaces to work with the new Pod Security Admission and apply Pod Security Standards.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: Helm Project Operator
catalog.cattle.io/kube-version: '>=1.16.0-0'
catalog.cattle.io/namespace: cattle-helm-system
catalog.cattle.io/os: linux,windows
catalog.cattle.io/permits-os: linux,windows
catalog.cattle.io/provides-gvr: helm.cattle.io.projecthelmchart/v1alpha1
catalog.cattle.io/rancher-version: '>= 2.6.0-0'
catalog.cattle.io/release-name: helm-project-operator
apiVersion: v2
appVersion: 0.2.1
description: Helm Project Operator
name: helmProjectOperator
version: 0.2.1
Loading

0 comments on commit 7c7cc83

Please sign in to comment.