1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765
| install.go:194: [debug] Original chart version: "" install.go:211: [debug] CHART PATH: /mnt/grafana NAME: grafana LAST DEPLOYED: Mon May 8 11:01:51 2023 NAMESPACE: monitoring STATUS: deployed REVISION: 1 USER-SUPPLIED VALUES: {}
COMPUTED VALUES: admin: existingSecret: "" passwordKey: admin-password userKey: admin-user adminUser: admin affinity: {} alerting: {} autoscaling: behavior: {} enabled: false maxReplicas: 5 minReplicas: 1 targetCPU: "60" targetMemory: "" containerSecurityContext: capabilities: drop: - ALL seccompProfile: type: RuntimeDefault createConfigmap: true dashboardProviders: {} dashboards: {} dashboardsConfigMaps: {} datasources: {} deploymentStrategy: type: RollingUpdate downloadDashboards: env: {} envFromSecret: "" envValueFrom: {} resources: {} securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL seccompProfile: type: RuntimeDefault downloadDashboardsImage: pullPolicy: IfNotPresent repository: docker.io/curlimages/curl sha: "" tag: 7.85.0 enableKubeBackwardCompatibility: false enableServiceLinks: true env: {} envFromConfigMaps: [] envFromSecret: "" envFromSecrets: [] envRenderSecret: {} envValueFrom: {} extraConfigmapMounts: [] extraContainerVolumes: [] extraContainers: "" extraEmptyDirMounts: [] extraExposePorts: [] extraInitContainers: [] extraLabels: {} extraObjects: [] extraSecretMounts: [] extraVolumeMounts: [] global: imagePullSecrets: [] gossipPortName: gossip grafana.ini: analytics: check_for_updates: true grafana_net: url: https://grafana.net log: mode: console paths: data: /var/lib/grafana/ logs: /var/log/grafana plugins: /var/lib/grafana/plugins provisioning: /etc/grafana/provisioning server: domain: '{{ if (and .Values.ingress.enabled .Values.ingress.hosts) }}{{ .Values.ingress.hosts | first }}{{ else }}''''{{ end }}' headlessService: false hostAliases: [] image: pullPolicy: IfNotPresent pullSecrets: [] repository: docker.io/grafana/grafana sha: "" tag: "" imageRenderer: affinity: {} autoscaling: behavior: {} enabled: false maxReplicas: 5 minReplicas: 1 targetCPU: "60" targetMemory: "" containerSecurityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true seccompProfile: type: RuntimeDefault deploymentStrategy: {} enabled: false env: HTTP_HOST: 0.0.0.0 grafanaProtocol: http grafanaSubPath: "" hostAliases: [] image: pullPolicy: Always repository: docker.io/grafana/grafana-image-renderer sha: "" tag: latest networkPolicy: extraIngressSelectors: [] limitEgress: false limitIngress: true nodeSelector: {} podPortName: http priorityClassName: "" replicas: 1 resources: {} revisionHistoryLimit: 10 securityContext: {} service: appProtocol: "" enabled: true port: 8081 portName: http targetPort: 8081 serviceAccountName: "" serviceMonitor: enabled: false interval: 1m labels: {} path: /metrics relabelings: [] scheme: http scrapeTimeout: 30s targetLabels: [] tlsConfig: {} tolerations: [] ingress: annotations: {} enabled: false extraPaths: [] hosts: - chart-example.local labels: {} path: / pathType: Prefix tls: [] initChownData: enabled: true image: pullPolicy: IfNotPresent repository: docker.io/library/busybox sha: "" tag: 1.31.1 resources: {} securityContext: capabilities: add: - CHOWN runAsNonRoot: false runAsUser: 0 seccompProfile: type: RuntimeDefault ldap: config: "" enabled: false existingSecret: "" lifecycleHooks: {} livenessProbe: failureThreshold: 10 httpGet: path: /api/health port: 3000 initialDelaySeconds: 60 timeoutSeconds: 30 namespaceOverride: "" networkPolicy: allowExternal: true egress: enabled: false ports: [] enabled: false explicitNamespacesSelector: {} ingress: true nodeSelector: {} notifiers: {} persistence: accessModes: - ReadWriteOnce enabled: true extraPvcLabels: {} finalizers: - kubernetes.io/pvc-protection inMemory: enabled: false size: 10Gi storageClassName: nas-sc type: pvc plugins: [] podDisruptionBudget: {} podPortName: grafana rbac: create: true extraClusterRoleRules: [] extraRoleRules: [] namespaced: false pspEnabled: false pspUseAppArmor: false readinessProbe: httpGet: path: /api/health port: 3000 replicas: 1 resources: {} revisionHistoryLimit: 10 securityContext: fsGroup: 472 runAsGroup: 472 runAsNonRoot: true runAsUser: 472 service: annotations: {} appProtocol: "" enabled: true labels: {} port: 80 portName: service targetPort: 3000 type: ClusterIP serviceAccount: autoMount: true create: true labels: {} name: null nameTest: null serviceMonitor: enabled: false interval: 1m labels: {} path: /metrics relabelings: [] scheme: http scrapeTimeout: 30s targetLabels: [] tlsConfig: {} sidecar: alerts: enabled: false env: {} label: grafana_alert labelValue: "" reloadURL: http://localhost:3000/api/admin/provisioning/alerting/reload resource: both script: null searchNamespace: null sizeLimit: {} skipReload: false watchMethod: WATCH dashboards: SCProvider: true defaultFolderName: null enabled: false env: {} extraMounts: [] folder: /tmp/dashboards folderAnnotation: null label: grafana_dashboard labelValue: "" provider: allowUiUpdates: false disableDelete: false folder: "" foldersFromFilesStructure: false name: sidecarProvider orgid: 1 type: file reloadURL: http://localhost:3000/api/admin/provisioning/dashboards/reload resource: both script: null searchNamespace: null sizeLimit: {} skipReload: false watchMethod: WATCH datasources: enabled: false env: {} initDatasources: false label: grafana_datasource labelValue: "" reloadURL: http://localhost:3000/api/admin/provisioning/datasources/reload resource: both script: null searchNamespace: null sizeLimit: {} skipReload: false watchMethod: WATCH enableUniqueFilenames: false image: repository: quay.io/kiwigrid/k8s-sidecar sha: "" tag: 1.22.0 imagePullPolicy: IfNotPresent livenessProbe: {} notifiers: enabled: false env: {} initNotifiers: false label: grafana_notifier labelValue: "" reloadURL: http://localhost:3000/api/admin/provisioning/notifications/reload resource: both script: null searchNamespace: null sizeLimit: {} skipReload: false watchMethod: WATCH plugins: enabled: false env: {} initPlugins: false label: grafana_plugin labelValue: "" reloadURL: http://localhost:3000/api/admin/provisioning/plugins/reload resource: both script: null searchNamespace: null sizeLimit: {} skipReload: false watchMethod: WATCH readinessProbe: {} resources: {} securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL seccompProfile: type: RuntimeDefault smtp: existingSecret: "" passwordKey: password userKey: user testFramework: enabled: true image: docker.io/bats/bats imagePullPolicy: IfNotPresent securityContext: {} tag: v1.4.1 tolerations: [] topologySpreadConstraints: [] useStatefulSet: false
HOOKS: ---
apiVersion: v1 kind: ServiceAccount metadata: labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm name: grafana-test namespace: monitoring annotations: "helm.sh/hook": test-success "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded" ---
apiVersion: v1 kind: ConfigMap metadata: name: grafana-test namespace: monitoring annotations: "helm.sh/hook": test-success "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded" labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm data: run.sh: |- @test "Test Health" { url="http://grafana/api/health"
code=$(wget --server-response --spider --timeout 90 --tries 10 ${url} 2>&1 | awk '/^ HTTP/{print $2}') [ "$code" == "200" ] } ---
apiVersion: v1 kind: Pod metadata: name: grafana-test labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm annotations: "helm.sh/hook": test-success "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded" namespace: monitoring spec: serviceAccountName: grafana-test containers: - name: grafana-test image: "docker.io/bats/bats:v1.4.1" imagePullPolicy: "IfNotPresent" command: ["/opt/bats/bin/bats", "-t", "/tests/run.sh"] volumeMounts: - mountPath: /tests name: tests readOnly: true volumes: - name: tests configMap: name: grafana-test restartPolicy: Never MANIFEST: ---
apiVersion: v1 kind: ServiceAccount metadata: labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm name: grafana namespace: monitoring ---
apiVersion: v1 kind: Secret metadata: name: grafana namespace: monitoring labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm type: Opaque data: admin-user: "YWRtaW4=" admin-password: "MTRaTGxWeXNLWHJrYnhyUW9DV3dYZjM5ZjlCQ3lsMU1RNmVMYVdnUw==" ldap-toml: "" ---
apiVersion: v1 kind: ConfigMap metadata: name: grafana namespace: monitoring labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm data: grafana.ini: | [analytics] check_for_updates = true [grafana_net] url = https://grafana.net [log] mode = console [paths] data = /var/lib/grafana/ logs = /var/log/grafana plugins = /var/lib/grafana/plugins provisioning = /etc/grafana/provisioning [server] domain = '' ---
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: grafana namespace: monitoring labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm finalizers: - kubernetes.io/pvc-protection spec: accessModes: - "ReadWriteOnce" resources: requests: storage: "10Gi" storageClassName: nas-sc ---
kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm name: grafana-clusterrole rules: [] ---
kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: grafana-clusterrolebinding labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm subjects: - kind: ServiceAccount name: grafana namespace: monitoring roleRef: kind: ClusterRole name: grafana-clusterrole apiGroup: rbac.authorization.k8s.io ---
apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: grafana namespace: monitoring labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm rules: [] ---
apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: grafana namespace: monitoring labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: grafana subjects: - kind: ServiceAccount name: grafana namespace: monitoring ---
apiVersion: v1 kind: Service metadata: name: grafana namespace: monitoring labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP ports: - name: service port: 80 protocol: TCP targetPort: 3000 selector: app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana ---
apiVersion: apps/v1 kind: Deployment metadata: name: grafana namespace: monitoring labels: helm.sh/chart: grafana-6.56.1 app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana app.kubernetes.io/version: "9.5.1" app.kubernetes.io/managed-by: Helm spec: replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana strategy: type: RollingUpdate template: metadata: labels: app.kubernetes.io/name: grafana app.kubernetes.io/instance: grafana annotations: checksum/config: 19d2af365db97b8a27f9f902f631ebd5a0739c98c77e20c41f479c8789695773 checksum/dashboards-json-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b checksum/secret: e5bdf8d22f5bd1f9f151274a9673630e92a4dd2d29d4b390f0f0f61e466712c3 kubectl.kubernetes.io/default-container: grafana spec: serviceAccountName: grafana automountServiceAccountToken: true securityContext: fsGroup: 472 runAsGroup: 472 runAsNonRoot: true runAsUser: 472 initContainers: - name: init-chown-data image: "docker.io/library/busybox:1.31.1" imagePullPolicy: IfNotPresent securityContext: capabilities: add: - CHOWN runAsNonRoot: false runAsUser: 0 seccompProfile: type: RuntimeDefault command: - chown - -R - 472:472 - /var/lib/grafana volumeMounts: - name: storage mountPath: "/var/lib/grafana" enableServiceLinks: true containers: - name: grafana image: "docker.io/grafana/grafana:9.5.1" imagePullPolicy: IfNotPresent securityContext: capabilities: drop: - ALL seccompProfile: type: RuntimeDefault volumeMounts: - name: config mountPath: "/etc/grafana/grafana.ini" subPath: grafana.ini - name: storage mountPath: "/var/lib/grafana" ports: - name: grafana containerPort: 3000 protocol: TCP - name: gossip-tcp containerPort: 9094 protocol: TCP - name: gossip-udp containerPort: 9094 protocol: UDP env: - name: POD_IP valueFrom: fieldRef: fieldPath: status.podIP - name: GF_SECURITY_ADMIN_USER valueFrom: secretKeyRef: name: grafana key: admin-user - name: GF_SECURITY_ADMIN_PASSWORD valueFrom: secretKeyRef: name: grafana key: admin-password - name: GF_PATHS_DATA value: /var/lib/grafana/ - name: GF_PATHS_LOGS value: /var/log/grafana - name: GF_PATHS_PLUGINS value: /var/lib/grafana/plugins - name: GF_PATHS_PROVISIONING value: /etc/grafana/provisioning livenessProbe: failureThreshold: 10 httpGet: path: /api/health port: 3000 initialDelaySeconds: 60 timeoutSeconds: 30 readinessProbe: httpGet: path: /api/health port: 3000 volumes: - name: config configMap: name: grafana - name: storage persistentVolumeClaim: claimName: grafana
NOTES: 1. Get your 'admin' user password by running:
kubectl get secret --namespace monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
2. The Grafana server can be accessed via port 80 on the following DNS name from within your cluster:
grafana.monitoring.svc.cluster.local
Get the Grafana URL to visit by running these commands in the same shell: export POD_NAME=$(kubectl get pods --namespace monitoring -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}") kubectl --namespace monitoring port-forward $POD_NAME 3000
3. Login with the password from step 1 and the username: admin
|