mirror of
https://github.com/siderolabs/sidero.git
synced 2025-09-24 23:31:22 +02:00
chore: add v0.6.x to metadata, fix metrics service
Part of #1070 Signed-off-by: Gerard de Leeuw <gdeleeuw@leeuwit.nl> Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
parent
e433504087
commit
ef65ff05a9
@ -14,6 +14,7 @@ bases:
|
|||||||
- ../manager
|
- ../manager
|
||||||
|
|
||||||
patchesStrategicMerge:
|
patchesStrategicMerge:
|
||||||
|
- manager_auth_proxy_patch.yaml
|
||||||
- manager_webhook_patch.yaml
|
- manager_webhook_patch.yaml
|
||||||
- webhookcainjection_patch.yaml
|
- webhookcainjection_patch.yaml
|
||||||
|
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
# This patch inject a sidecar container which is an HTTP proxy for the controller manager,
|
||||||
|
# it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: controller-manager
|
||||||
|
namespace: system
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: kube-rbac-proxy
|
||||||
|
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.4.1
|
||||||
|
args:
|
||||||
|
- "--secure-listen-address=0.0.0.0:8443"
|
||||||
|
- "--upstream=http://127.0.0.1:8080/"
|
||||||
|
- "--logtostderr=true"
|
||||||
|
- "--v=10"
|
||||||
|
ports:
|
||||||
|
- containerPort: 8443
|
||||||
|
name: https
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
# Prometheus Monitor Service (Metrics)
|
# Prometheus Monitor Service (Metrics)
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
|
@ -6,6 +6,6 @@ resources:
|
|||||||
# Comment the following 3 lines if you want to disable
|
# Comment the following 3 lines if you want to disable
|
||||||
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
|
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
|
||||||
# which protects your /metrics endpoint.
|
# which protects your /metrics endpoint.
|
||||||
# - auth_proxy_service.yaml
|
- auth_proxy_service.yaml
|
||||||
# - auth_proxy_role.yaml
|
- auth_proxy_role.yaml
|
||||||
# - auth_proxy_role_binding.yaml
|
- auth_proxy_role_binding.yaml
|
||||||
|
@ -16,13 +16,13 @@ patchesStrategicMerge:
|
|||||||
# Protect the /metrics endpoint by putting it behind auth.
|
# Protect the /metrics endpoint by putting it behind auth.
|
||||||
# Only one of manager_auth_proxy_patch.yaml and
|
# Only one of manager_auth_proxy_patch.yaml and
|
||||||
# manager_prometheus_metrics_patch.yaml should be enabled.
|
# manager_prometheus_metrics_patch.yaml should be enabled.
|
||||||
#- manager_auth_proxy_patch.yaml
|
- manager_auth_proxy_patch.yaml
|
||||||
# If you want your controller-manager to expose the /metrics
|
# If you want your controller-manager to expose the /metrics
|
||||||
# endpoint w/o any authn/z, uncomment the following line and
|
# endpoint w/o any authn/z, uncomment the following line and
|
||||||
# comment manager_auth_proxy_patch.yaml.
|
# comment manager_auth_proxy_patch.yaml.
|
||||||
# Only one of manager_auth_proxy_patch.yaml and
|
# Only one of manager_auth_proxy_patch.yaml and
|
||||||
# manager_prometheus_metrics_patch.yaml should be enabled.
|
# manager_prometheus_metrics_patch.yaml should be enabled.
|
||||||
#- manager_prometheus_metrics_patch.yaml
|
#- manager_prometheus_metrics_patch.yaml
|
||||||
- manager_webhook_patch.yaml
|
- manager_webhook_patch.yaml
|
||||||
- webhookcainjection_patch.yaml
|
- webhookcainjection_patch.yaml
|
||||||
vars:
|
vars:
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
# This patch inject a sidecar container which is an HTTP proxy for the controller manager,
|
||||||
|
# it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews.
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: controller-manager
|
||||||
|
namespace: system
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: kube-rbac-proxy
|
||||||
|
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.4.1
|
||||||
|
args:
|
||||||
|
- "--secure-listen-address=0.0.0.0:8443"
|
||||||
|
- "--upstream=http://127.0.0.1:8080/"
|
||||||
|
- "--logtostderr=true"
|
||||||
|
- "--v=10"
|
||||||
|
ports:
|
||||||
|
- containerPort: 8443
|
||||||
|
name: https
|
@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
|||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
control-plane: caps-controller-manager
|
control-plane: sidero-controller-manager
|
||||||
name: metrics-monitor
|
name: metrics-monitor
|
||||||
namespace: system
|
namespace: system
|
||||||
spec:
|
spec:
|
||||||
@ -11,4 +11,4 @@ spec:
|
|||||||
- path: /metrics
|
- path: /metrics
|
||||||
port: https
|
port: https
|
||||||
selector:
|
selector:
|
||||||
control-plane: caps-controller-manager
|
control-plane: sidero-controller-manager
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
control-plane: caps-controller-manager
|
control-plane: sidero-controller-manager
|
||||||
name: controller-manager-metrics-service
|
name: controller-manager-metrics-service
|
||||||
namespace: system
|
namespace: system
|
||||||
spec:
|
spec:
|
||||||
@ -11,4 +11,4 @@ spec:
|
|||||||
port: 8443
|
port: 8443
|
||||||
targetPort: https
|
targetPort: https
|
||||||
selector:
|
selector:
|
||||||
control-plane: caps-controller-manager
|
control-plane: sidero-controller-manager
|
||||||
|
@ -16,3 +16,6 @@ releaseSeries:
|
|||||||
- major: 0
|
- major: 0
|
||||||
minor: 5
|
minor: 5
|
||||||
contract: v1beta1
|
contract: v1beta1
|
||||||
|
- major: 0
|
||||||
|
minor: 6
|
||||||
|
contract: v1beta1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user