rancher-charts/charts/rancher-monitoring/rancher-monitoring-crd/14.5.100-rc00/templates/rbac.yaml

73 lines
1.5 KiB
YAML
Raw Normal View History

Rebase Monitoring to 14.5.0 and update all dependencies (#1072) * Switch rancher-monitoring to Git-based package Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com> * Move Monitoring dependencies to separate packages * Switch rancher-grafana to Git-based and add annotations * Switch rancher-kube-state-metrics to Git-based and add annotations * Switch rancher-prometheus-adapter to Git-based and add annotations * Switch rancher-node-exporter to Git-based and add annotations * Rebase to kube-prometheus-stack-10.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-10.0.0 * Rebase to kube-prometheus-stack-11.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-11.0.0 * Rebase to kube-prometheus-stack-12.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-12.0.0 * Rebase to kube-prometheus-stack-13.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-13.0.0 * Rebase to kube-prometheus-stack-14.0.0 * Update rancher-monitoring to new base kube-prometheus-stack-14.0.0 * Rebase to kube-prometheus-stack-14.5.0 * Update rancher-monitoring to new base kube-prometheus-stack-14.5.0 * fixup rancher-monitoring * Switch nginx port for Prometheus to 8081 This is necessary since prometheusConfigReloaderImage now takes port 8080 in the Prometheus pod due to a change introduced in Prometheus Operator v0.43.0 in https://github.com/prometheus-operator/prometheus-operator/commit/dcf34c55bc7596fe9135b6a37344c7578586c80d. This value is hard-coded in the operator in https://github.com/prometheus-operator/prometheus-operator/blob/bcf61aacda782d6c8ffc79f55ea1def9cfd97933/pkg/operator/statefulset.go#L25. * Rebase to grafana-5.7.7 * Update rancher-grafana to new base grafana-5.7.7 * Rebase to grafana-6.0.0 * Update rancher-grafana to new base grafana-6.0.0 * Rebase to grafana-6.6.4 * Update rancher-grafana to new base grafana-6.6.4 * fixup rancher-grafana * Add linux annotations to image-renderer * Use default grafana serviceAccount if unavailable for image-renderer * Rebase to kube-state-metrics-helm-chart-2.13.1 * Update rancher-kube-state-metrics to new base kube-state-metrics-helm-chart-2.13.1 * fixup kube-state-metrics * Rebase to prometheus-node-exporter-1.16.2 * Update rancher-node-exporter to new base prometheus-node-exporter-1.16.2 * fixup node-exporter * Rebase to prometheus-adapter-2.12.1 * Update rancher-prometheus-adapter to new base prometheus-adapter-2.12.1 * fixup prometheus-adapter * Update CRD chart version * Add original chart before all commits were made * Add chart after all commits were made * Delete charts * Patch the chart version to 1 and reset packageVersion to 00 * Patch CRD chart version
2021-04-07 19:45:48 +00:00
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Chart.Name }}-manager
labels:
app: {{ .Chart.Name }}-manager
rules:
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs: ['create', 'get', 'patch', 'delete']
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- {{ .Chart.Name }}-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Chart.Name }}-manager
labels:
app: {{ .Chart.Name }}-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Chart.Name }}-manager
subjects:
- kind: ServiceAccount
name: {{ .Chart.Name }}-manager
namespace: {{ .Release.Namespace }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Chart.Name }}-manager
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}-manager
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: {{ .Chart.Name }}-manager
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}-manager
spec:
privileged: false
allowPrivilegeEscalation: false
hostNetwork: false
hostIPC: false
hostPID: false
runAsUser:
rule: 'MustRunAsNonRoot'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'MustRunAs'
ranges:
- min: 1
max: 65535
fsGroup:
rule: 'MustRunAs'
ranges:
- min: 1
max: 65535
readOnlyRootFilesystem: false
volumes:
- 'configMap'
- 'secret'