apiVersion: apps/v1 kind: Deployment metadata: name: grafana namespace: default spec: replicas: 1 selector: matchLabels: app: grafana template: metadata: labels: app: grafana spec: containers: - name: grafana image: grafana/grafana:10.4.2 ports: - containerPort: 3000 env: - name: GF_SECURITY_ADMIN_USER value: "coslight" - name: GF_SECURITY_ADMIN_PASSWORD value: "coslight@tj" - name: GF_AUTH_ANONYMOUS_ENABLED value: "false" volumeMounts: - name: datasources mountPath: /etc/grafana/provisioning/datasources resources: limits: cpu: 500m memory: 512Mi requests: cpu: 100m memory: 128Mi volumes: - name: datasources configMap: name: grafana-datasources