@@ -2435,6 +2435,34 @@ rules:
24352435 - watch
24362436---
24372437apiVersion : rbac.authorization.k8s.io/v1
2438+ kind : ClusterRole
2439+ metadata :
2440+ name : baremetal-operator-metrics-auth-role
2441+ rules :
2442+ - apiGroups :
2443+ - authentication.k8s.io
2444+ resources :
2445+ - tokenreviews
2446+ verbs :
2447+ - create
2448+ - apiGroups :
2449+ - authorization.k8s.io
2450+ resources :
2451+ - subjectaccessreviews
2452+ verbs :
2453+ - create
2454+ ---
2455+ apiVersion : rbac.authorization.k8s.io/v1
2456+ kind : ClusterRole
2457+ metadata :
2458+ name : baremetal-operator-metrics-reader
2459+ rules :
2460+ - nonResourceURLs :
2461+ - /metrics
2462+ verbs :
2463+ - get
2464+ ---
2465+ apiVersion : rbac.authorization.k8s.io/v1
24382466kind : RoleBinding
24392467metadata :
24402468 name : baremetal-operator-leader-election-rolebinding
@@ -2461,6 +2489,19 @@ subjects:
24612489 name : baremetal-operator-controller-manager
24622490 namespace : baremetal-operator-system
24632491---
2492+ apiVersion : rbac.authorization.k8s.io/v1
2493+ kind : ClusterRoleBinding
2494+ metadata :
2495+ name : baremetal-operator-metrics-auth-rolebinding
2496+ roleRef :
2497+ apiGroup : rbac.authorization.k8s.io
2498+ kind : ClusterRole
2499+ name : baremetal-operator-metrics-auth-role
2500+ subjects :
2501+ - kind : ServiceAccount
2502+ name : baremetal-operator-controller-manager
2503+ namespace : baremetal-operator-system
2504+ ---
24642505apiVersion : v1
24652506data :
24662507 CACHEURL : http://172.22.0.1/images
@@ -2477,6 +2518,21 @@ metadata:
24772518---
24782519apiVersion : v1
24792520kind : Service
2521+ metadata :
2522+ labels :
2523+ control-plane : controller-manager
2524+ name : baremetal-operator-controller-manager-metrics-service
2525+ namespace : baremetal-operator-system
2526+ spec :
2527+ ports :
2528+ - name : https
2529+ port : 8443
2530+ targetPort : https
2531+ selector :
2532+ control-plane : controller-manager
2533+ ---
2534+ apiVersion : v1
2535+ kind : Service
24802536metadata :
24812537 name : baremetal-operator-webhook-service
24822538 namespace : baremetal-operator-system
@@ -2542,6 +2598,9 @@ spec:
25422598 - containerPort : 9443
25432599 name : webhook-server
25442600 protocol : TCP
2601+ - containerPort : 8443
2602+ name : https
2603+ protocol : TCP
25452604 readinessProbe :
25462605 failureThreshold : 10
25472606 httpGet :
0 commit comments