Skip to content

Commit

Permalink
make charts
Browse files Browse the repository at this point in the history
Signed-off-by: Dharmit Shah <dharmit.shah@suse.com>
  • Loading branch information
dharmit committed Sep 2, 2024
1 parent 25cc292 commit 1b30c2d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,11 @@ global:
{{ $fullname }}-webhook.{{ $namespace }}.svc
{{- end }}
{{- end }}

{{- define "rke2-ingress-nginx.namespace" -}}
{{- if .Values.rke2IngressNginx.namespaceOverride -}}
{{- .Values.rke2IngressNginx.namespaceOverride -}}
{{- else -}}
{{- print "kube-system" -}}
{{- end -}}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.rke2IngressNginx.networkPolicy.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
annotations:
np.rke2.io/ingress: resolved
name: rke2-ingress-network-policy
namespace: {{ include "rke2-ingress-nginx.namespace" . }}
spec:
ingress:
- ports:
- port: {{ .Values.rke2IngressNginx.metricsPort }}
protocol: TCP
podSelector:
matchLabels:
app.kubernetes.io/name: rke2-ingress-nginx
policyTypes:
- Ingress
{{- end }}
4 changes: 3 additions & 1 deletion charts/rancher-monitoring/105.0.0-rc1+up57.0.3/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ rke2IngressNginx:
enabled: false
metricsPort: 10254
component: ingress-nginx
networkPolicy:
enabled: false
# in the RKE2 cluster, the ingress-nginx-controller is deployed
# as a non-hostNetwork workload starting at the following versions
# - >= v1.22.12+rke2r1 < 1.23.0-0
Expand All @@ -344,7 +346,7 @@ rke2IngressNginx:
# - >= v1.25.0+rke2r1
# As a result we do not need clients and proxies as we can directly create
# a service that targets the workload with the given app name
namespaceOverride: kube-system
namespaceOverride: ""
clients:
enabled: false
proxy:
Expand Down
4 changes: 2 additions & 2 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11042,7 +11042,7 @@ entries:
catalog.cattle.io/upstream-version: 57.0.3
apiVersion: v2
appVersion: v0.72.0
created: "2024-08-30T13:07:26.970499499-04:00"
created: "2024-09-02T13:58:38.615410013+05:30"
dependencies:
- condition: grafana.enabled
name: grafana
Expand Down Expand Up @@ -11114,7 +11114,7 @@ entries:
and Prometheus rules combined with documentation and scripts to provide easy
to operate end-to-end Kubernetes cluster monitoring with Prometheus using the
Prometheus Operator.
digest: 28511abf49633f29735d5ee28f94fc0d54737ff111486e91eadcf921db6bcf89
digest: f4f3540ef1b3af761a93396bcaac307c3fa246bce71e7877e0a7dab0b224d79c
home: https://github.com/prometheus-operator/kube-prometheus
icon: file://assets/logos/rancher-monitoring.png
keywords:
Expand Down

0 comments on commit 1b30c2d

Please sign in to comment.