|
| 1 | +# Hardened values for rbac-manager v1.21.1 (app version v1.9.2) |
| 2 | +# RBAC Manager for automated RBAC management |
| 3 | +# Based on official Fairwinds chart values and documentation |
| 4 | + |
| 5 | +# Image configuration |
| 6 | +image: |
| 7 | + repository: quay.io/reactiveops/rbac-manager |
| 8 | + tag: v1.9.2 |
| 9 | + digest: "" |
| 10 | + pullPolicy: Always |
| 11 | + imagePullSecrets: [] |
| 12 | + |
| 13 | +# Install CRDs |
| 14 | +installCRDs: true |
| 15 | + |
| 16 | +# CRD configuration |
| 17 | +crds: |
| 18 | + additionalLabels: |
| 19 | + app.kubernetes.io/component: rbac-manager |
| 20 | + app.kubernetes.io/part-of: openCenter |
| 21 | + |
| 22 | +# RBAC configuration |
| 23 | +rbac: |
| 24 | + additionalLabels: |
| 25 | + app.kubernetes.io/component: rbac-manager |
| 26 | + app.kubernetes.io/part-of: openCenter |
| 27 | + |
| 28 | +# Resource management - aligned with official defaults but with hardened limits |
| 29 | +resources: |
| 30 | + requests: |
| 31 | + cpu: 100m |
| 32 | + memory: 128Mi |
| 33 | + limits: |
| 34 | + cpu: 200m # Increased from default 100m for better performance |
| 35 | + memory: 256Mi # Increased from default 128Mi for stability |
| 36 | + |
| 37 | +# Priority class for system-critical workload |
| 38 | +priorityClassName: "system-cluster-critical" |
| 39 | + |
| 40 | +# Node scheduling |
| 41 | +nodeSelector: |
| 42 | + kubernetes.io/os: linux |
| 43 | + |
| 44 | +# Tolerations for system nodes |
| 45 | +tolerations: |
| 46 | + - key: node-role.kubernetes.io/control-plane |
| 47 | + operator: Exists |
| 48 | + effect: NoSchedule |
| 49 | + - key: node-role.kubernetes.io/master |
| 50 | + operator: Exists |
| 51 | + effect: NoSchedule |
| 52 | + |
| 53 | +# Affinity for better distribution |
| 54 | +affinity: |
| 55 | + podAntiAffinity: |
| 56 | + preferredDuringSchedulingIgnoredDuringExecution: |
| 57 | + - weight: 100 |
| 58 | + podAffinityTerm: |
| 59 | + labelSelector: |
| 60 | + matchExpressions: |
| 61 | + - key: app.kubernetes.io/name |
| 62 | + operator: In |
| 63 | + values: |
| 64 | + - rbac-manager |
| 65 | + topologyKey: kubernetes.io/hostname |
| 66 | + |
| 67 | +# Pod annotations for enhanced monitoring |
| 68 | +podAnnotations: |
| 69 | + cluster-autoscaler.kubernetes.io/safe-to-evict: "false" |
| 70 | + prometheus.io/scrape: "true" |
| 71 | + prometheus.io/port: "8080" |
| 72 | + prometheus.io/path: "/metrics" |
| 73 | + |
| 74 | +# Pod labels |
| 75 | +podLabels: |
| 76 | + app.kubernetes.io/component: rbac-manager |
| 77 | + app.kubernetes.io/part-of: openCenter |
| 78 | + |
| 79 | +# Pod security context - enhanced security |
| 80 | +podSecurityContext: |
| 81 | + runAsNonRoot: true |
| 82 | + runAsUser: 65534 |
| 83 | + runAsGroup: 65534 |
| 84 | + fsGroup: 65534 |
| 85 | + seccompProfile: |
| 86 | + type: RuntimeDefault |
| 87 | + |
| 88 | +# Container security context - official recommendations with enhancements |
| 89 | +securityContext: |
| 90 | + allowPrivilegeEscalation: false |
| 91 | + privileged: false |
| 92 | + readOnlyRootFilesystem: true |
| 93 | + runAsNonRoot: true |
| 94 | + capabilities: |
| 95 | + drop: |
| 96 | + - ALL |
| 97 | + |
| 98 | +# Deployment labels |
| 99 | +deploymentLabels: |
| 100 | + app.kubernetes.io/component: rbac-manager |
| 101 | + app.kubernetes.io/part-of: openCenter |
| 102 | + |
| 103 | +# Service Monitor for Prometheus - enabled with proper configuration |
| 104 | +serviceMonitor: |
| 105 | + enabled: true |
| 106 | + additionalLabels: |
| 107 | + app.kubernetes.io/component: rbac-manager |
| 108 | + app.kubernetes.io/part-of: openCenter |
| 109 | + annotations: |
| 110 | + prometheus.io/scrape: "true" |
| 111 | + namespace: rbac-system |
| 112 | + interval: 30s |
| 113 | + relabelings: |
| 114 | + - sourceLabels: [__meta_kubernetes_pod_name] |
| 115 | + targetLabel: pod |
| 116 | + - sourceLabels: [__meta_kubernetes_namespace] |
| 117 | + targetLabel: namespace |
| 118 | + |
| 119 | +# Extra arguments for enhanced functionality |
| 120 | +extraArgs: |
| 121 | + # Enable metrics endpoint |
| 122 | + metrics-address: "0.0.0.0:8042" |
| 123 | + # Set log level |
| 124 | + v: "2" |
| 125 | + # Enable leader election for HA |
| 126 | + # leader-elect: "true" |
| 127 | + # Set reconcile period |
| 128 | + # sync-period: "30s" |
0 commit comments