2
0
mirror of https://github.com/nofusscomputing/kubernetes.git synced 2025-08-02 04:22:42 +00:00
Files
kubernetes/manifests/grafana-operator/base/deployment.yaml
2025-06-11 22:20:09 +09:30

70 lines
1.8 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: controller
name: controller-manager
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: controller
strategy: {}
template:
metadata:
labels:
app.kubernetes.io/component: controller
spec:
containers:
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=0.0.0.0:9090
- --leader-elect
image: ghcr.io/grafana/grafana-operator:v5.15.1
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
name: manager
ports:
- containerPort: 9090
name: metrics
protocol: TCP
- containerPort: 8888
name: pprof
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 100m
memory: 20Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
volumeMounts:
- mountPath: /tmp/dashboards
name: dashboards-dir
securityContext:
runAsNonRoot: true
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: dashboards-dir