Advertisement
Guest User

Untitled

a guest
Aug 28th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1. rbac:
  2. install: false
  3. serviceAccountName: default
  4. # RBAC api version (currently either v1, v1beta1, or v1alpha1)
  5. apiVersion: v1
  6. # Role reference
  7. roleRef: cluster-admin
  8. # Role kind (RoleBinding or ClusterRoleBinding)
  9. roleBindingKind: ClusterRoleBinding
  10. serviceAccount:
  11. create: true
  12. name:
  13.  
  14. replicas: 1
  15.  
  16. deploymentStrategy: RollingUpdate
  17.  
  18. image:
  19. repository: grafana/grafana
  20. tag: 5.2.2
  21. pullPolicy: IfNotPresent
  22.  
  23. ## Optionally specify an array of imagePullSecrets.
  24. ## Secrets must be manually created in the namespace.
  25. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  26. ##
  27. # pullSecrets:
  28. # - myRegistrKeySecretName
  29.  
  30. securityContext:
  31. runAsUser: 472
  32. fsGroup: 472
  33.  
  34. downloadDashboardsImage:
  35. repository: appropriate/curl
  36. tag: latest
  37. pullPolicy: IfNotPresent
  38.  
  39. ## Pod Annotations
  40. # podAnnotations: {}
  41.  
  42. ## Deployment annotations
  43. # annotations: {}
  44.  
  45. ## Expose the grafana service to be accessed from outside the cluster (LoadBalancer service).
  46. ## or access it from within the cluster (ClusterIP service). Set the service type and the port to serve it.
  47. ## ref: http://kubernetes.io/docs/user-guide/services/
  48. ##
  49. service:
  50. type: LoadBalancer
  51. loadBalancerSourceRanges:
  52. - 0.0.0.0/0
  53. port: 3000
  54. annotations: {}
  55. labels: {}
  56.  
  57. ingress:
  58. enabled: false
  59. annotations: {}
  60. # kubernetes.io/ingress.class: nginx
  61. # kubernetes.io/tls-acme: "true"
  62. labels: {}
  63. path: /
  64. hosts:
  65. - chart-example.local
  66. tls: []
  67. # - secretName: chart-example-tls
  68. # hosts:
  69. # - chart-example.local
  70.  
  71. resources: {}
  72. # limits:
  73. # cpu: 100m
  74. # memory: 128Mi
  75. # requests:
  76. # cpu: 100m
  77. # memory: 128Mi
  78.  
  79. ## Node labels for pod assignment
  80. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  81. #
  82. nodeSelector: {}
  83.  
  84. ## Tolerations for pod assignment
  85. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  86. ##
  87. tolerations: []
  88.  
  89. ## Affinity for pod assignment
  90. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  91. ##
  92. affinity: {}
  93.  
  94. ## Enable persistence using Persistent Volume Claims
  95. ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
  96. ##
  97. persistence:
  98. enabled: true
  99. storageClassName: ""
  100. accessModes:
  101. - ReadWriteOnce
  102. size: 10Gi
  103. annotations: {}
  104. subPath: ""
  105. existingClaim:
  106.  
  107. adminUser: admin
  108. adminPassword: admin
  109.  
  110. ## Use an alternate scheduler, e.g. "stork".
  111. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  112. ##
  113. # schedulerName:
  114.  
  115. ## Extra environment variables that will be pass onto deployment pods
  116. env: {}
  117.  
  118. ## The name of a secret in the same kubernetes namespace which contain values to be added to the environment
  119. ## This can be useful for auth tokens, etc
  120. envFromSecret: ""
  121.  
  122. ## Additional grafana server secret mounts
  123. # Defines additional mounts with secrets. Secrets must be manually created in the namespace.
  124. extraSecretMounts: []
  125. # - name: secret-files
  126. # mountPath: /etc/secrets
  127. # secretName: grafana-secret-files
  128. # readOnly: true
  129.  
  130. # Pass the plugins you want installed as a comma separated list.
  131. # plugins: "digrich-bubblechart-panel,grafana-clock-panel"
  132. plugins: ""
  133.  
  134. ## Configure grafana datasources
  135. ## ref: http://docs.grafana.org/administration/provisioning/#datasources
  136. ##
  137. datasources:
  138. datasources.yaml:
  139. apiVersion: 1
  140. datasources:
  141. - name: Prometheus
  142. type: prometheus
  143. url: "http://prometheus-server.default.svc.cluster.local:9090"
  144. access: proxy
  145. isDefault: true
  146. editable: true
  147.  
  148. ## Configure grafana dashboard providers
  149. ## ref: http://docs.grafana.org/administration/provisioning/#dashboards
  150. ##
  151. ## `path` must be /var/lib/grafana/dashboards/<provider_name>
  152. ##
  153. dashboardProviders:
  154. dashboardproviders.yaml:
  155. apiVersion: 1
  156. providers:
  157. - name: 'Prometheus'
  158. orgId: 1
  159. folder: ''
  160. type: file
  161. disableDeletion: false
  162. editable: true
  163. options:
  164. folder: /var/lib/grafana/dashboards/
  165.  
  166. ## Configure grafana dashboard to import
  167. ## NOTE: To use dashboards you must also enable/configure dashboardProviders
  168. ## ref: https://grafana.com/dashboards
  169. ##
  170. ## dashboards per provider, use provider name as key.
  171. ##
  172. dashboards: {}
  173. # prometheus:
  174. # grafana-dashboard:
  175. # json: |
  176. # prometheus-stats:
  177. # gnetId: 2
  178. # revision: 2
  179. # datasource: Prometheus
  180. # local-dashboard:
  181. # url: https://grafana-dev.default.svc.cluster.local/repository/dashboards/grafana-dashboard.json
  182.  
  183. ## Reference to external ConfigMap per provider. Use provider name as key and ConfiMap name as value.
  184. ## A provider dashboards must be defined either by external ConfigMaps or in values.yaml, not in both.
  185. ## ConfigMap data example:
  186. ##
  187. ## data:
  188. ## example-dashboard.json: |
  189. ## RAW_JSON
  190. ##
  191. dashboardsConfigMaps: {}
  192. # default: ""
  193.  
  194. ## Grafana's primary configuration
  195. ## NOTE: values in map will be converted to ini format
  196. ## ref: http://docs.grafana.org/installation/configuration/
  197. ##
  198. grafana.ini:
  199. paths:
  200. data: /var/lib/grafana/data
  201. logs: /var/log/grafana
  202. plugins: /var/lib/grafana/plugins
  203. provisioning: /etc/grafana/provisioning
  204. analytics:
  205. check_for_updates: true
  206. log:
  207. mode: console
  208. grafana_net:
  209. url: https://grafana.net
  210. ## LDAP Authentication can be enabled with the following values on grafana.ini
  211. ## NOTE: Grafana will fail to start if the value for ldap.toml is invalid
  212. # auth.ldap:
  213. # enabled: true
  214. # allow_sign_up: true
  215. # config_file: /etc/grafana/ldap.toml
  216.  
  217. ## Grafana's LDAP configuration
  218. ## Templated by the template in _helpers.tpl
  219. ## NOTE: To enable the grafana.ini must be configured with auth.ldap.enabled
  220. ## ref: http://docs.grafana.org/installation/configuration/#auth-ldap
  221. ## ref: http://docs.grafana.org/installation/ldap/#configuration
  222. ldap:
  223. # `existingSecret` is a reference to an existing secret containing the ldap configuration
  224. # for Grafana in a key `ldap-toml`.
  225. existingSecret: ""
  226. # `config` is the content of `ldap.toml` that will be stored in the created secret
  227. config: ""
  228. # config: |-
  229. # verbose_logging = true
  230.  
  231. # [[servers]]
  232. # host = "my-ldap-server"
  233. # port = 636
  234. # use_ssl = true
  235. # start_tls = false
  236. # ssl_skip_verify = false
  237. # bind_dn = "uid=%s,ou=users,dc=myorg,dc=com"
  238.  
  239. ## Grafana's SMTP configuration
  240. ## NOTE: To enable, grafana.ini must be configured with smtp.enabled
  241. ## ref: http://docs.grafana.org/installation/configuration/#smtp
  242. smtp:
  243. # `existingSecret` is a reference to an existing secret containing the smtp configuration
  244. # for Grafana in keys `user` and `password`.
  245. existingSecret: ""
  246.  
  247. ## Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders
  248. ## Requires at least Grafana 5 to work and can't be used together with parameters dashboardProviders, datasources and dashboards
  249. sidecar:
  250. image: kiwigrid/k8s-sidecar:0.0.3
  251. imagePullPolicy: IfNotPresent
  252. resources:
  253. # limits:
  254. # cpu: 100m
  255. # memory: 100Mi
  256. # requests:
  257. # cpu: 50m
  258. # memory: 50Mi
  259. dashboards:
  260. enabled: false
  261. # label that the configmaps with dashboards are marked with
  262. label: grafana_dashboard
  263. # folder in the pod that should hold the collected dashboards
  264. folder: /tmp/dashboards
  265. datasources:
  266. enabled: false
  267. # label that the configmaps with datasources are marked with
  268. label: grafana_datasource
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement