-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: install radix-prometheus-proxy in extmon (#2417)
* feat: install radix-prometheus-proxy in extmon * fix helm repo * dont use nightly or pr tags * dont use main tags * add ingress section * addet ingress * fix ingress * use cluster cert issuer * fix certmanager annotations
- Loading branch information
Showing
8 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
35 changes: 35 additions & 0 deletions
35
clusters/monitoring/overlay/radix-platform/radix-prometheus-proxy/helmRelease.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: radix-prometheus-proxy | ||
namespace: monitor | ||
spec: | ||
targetNamespace: monitor | ||
interval: 5m | ||
install: | ||
createNamespace: true | ||
remediation: | ||
retries: 3 | ||
chart: | ||
spec: | ||
chart: radix-prometheus-proxy | ||
version: ${RADIX_PROMETHEUS_PROXY_TAG} | ||
sourceRef: | ||
kind: HelmRepository | ||
name: radix-prometheus-proxy | ||
namespace: flux-system | ||
values: | ||
prometheusUrl: http://prometheus-operator-prometheus:9090 | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/os | ||
operator: In | ||
values: | ||
- linux | ||
- key: kubernetes.io/arch | ||
operator: In | ||
values: | ||
- arm64 |
This file contains 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
8 changes: 8 additions & 0 deletions
8
components/radix-platform/radix-prometheus-proxy/helmRepo.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: source.toolkit.fluxcd.io/v1 | ||
kind: HelmRepository | ||
metadata: | ||
name: radix-prometheus-proxy | ||
namespace: flux-system | ||
spec: | ||
interval: 5m | ||
url: https://equinor.github.io/radix-prometheus-proxy |
11 changes: 11 additions & 0 deletions
11
components/radix-platform/radix-prometheus-proxy/imagePolicy.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: image.toolkit.fluxcd.io/v1beta1 | ||
kind: ImagePolicy | ||
metadata: | ||
name: radix-prometheus-proxy | ||
namespace: flux-system | ||
spec: | ||
imageRepositoryRef: | ||
name: radix-prometheus-proxy | ||
policy: | ||
semver: | ||
range: '>=1.0.0' |
16 changes: 16 additions & 0 deletions
16
components/radix-platform/radix-prometheus-proxy/imageRepo.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This is a hack, since image update automation cant scan HelmRepositories | ||
apiVersion: image.toolkit.fluxcd.io/v1beta1 | ||
kind: ImageRepository | ||
metadata: | ||
name: radix-prometheus-proxy | ||
namespace: flux-system | ||
spec: | ||
image: ghcr.io/equinor/radix-prometheus-proxy | ||
interval: 1m0s | ||
exclusionList: | ||
- "^.*\\.sig$" | ||
- "^pr.*" | ||
- "^latest.*" | ||
- "^main.*" | ||
|
||
|
39 changes: 39 additions & 0 deletions
39
components/radix-platform/radix-prometheus-proxy/ingress.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
ingress.kubernetes.io/force-ssl-redirect: "true" | ||
cert-manager.io/cluster-issuer: ${RADIX_WILDCARD_CERTIFICATE_ISSUER} | ||
labels: | ||
radix-app: radix-prometheus-proxy | ||
radix-component: radix-prometheus-proxy | ||
name: radix-prometheus-proxy | ||
namespace: monitor | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: uptime.${AZ_RESOURCE_DNS:=tba} | ||
http: | ||
paths: | ||
- path: "/" | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: monitor-radix-prometheus-proxy | ||
port: | ||
number: 8000 | ||
- host: uptme.${clusterName:=tba}.${AZ_RESOURCE_DNS:=tba} | ||
http: | ||
paths: | ||
- path: "/" | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: monitor-radix-prometheus-proxy | ||
port: | ||
number: 8000 | ||
tls: | ||
- hosts: | ||
- uptime.${AZ_RESOURCE_DNS:=tba} | ||
- uptime.${clusterName:=tba}.${AZ_RESOURCE_DNS:=tba} | ||
secretName: "uptime-cert" |
7 changes: 7 additions & 0 deletions
7
components/radix-platform/radix-prometheus-proxy/kustomization.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- helmRepo.yaml | ||
- imageRepo.yaml | ||
- imagePolicy.yaml | ||
- ingress.yaml |