github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/manual/services/mon/grafana/kube.cue (about)

     1  package kube
     2  
     3  deployment: grafana: {
     4  	image: "grafana/grafana:4.5.2"
     5  
     6  	expose: port: grafana: 3000
     7  	port: web: 8080
     8  
     9  	volume: "grafana-volume": {
    10  		mountPath: "/var/lib/grafana"
    11  		spec: gcePersistentDisk: {
    12  			pdName: "grafana-volume"
    13  			fsType: "ext4"
    14  		}
    15  	}
    16  
    17  	// This variable is required to setup templates in Grafana.
    18  	// The following env variables are required to make Grafana accessible via
    19  	// the kubernetes api-server proxy. On production clusters, we recommend
    20  	// removing these env variables, setup auth for grafana, and expose the grafana
    21  	// service using a LoadBalancer or a public IP.
    22  	env: GF_AUTH_BASIC_ENABLED:      "false"
    23  	env: GF_AUTH_ANONYMOUS_ENABLED:  "true"
    24  	env: GF_AUTH_ANONYMOUS_ORG_ROLE: "admin"
    25  
    26  	kubernetes: spec: template: spec: containers: [{
    27  		// keep request = limit to keep this container in guaranteed class
    28  		resources: limits: {
    29  			cpu:    "100m"
    30  			memory: "100Mi"
    31  		}
    32  		resources: requests: {
    33  			cpu:    "100m"
    34  			memory: "100Mi"
    35  		}
    36  	}]
    37  }