-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config.rb and extra addon: Grafana
- Loading branch information
Julien Lenne
committed
Nov 23, 2016
1 parent
59e2cbb
commit c843450
Showing
10 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.vagrant | ||
config.rb | ||
admin.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# If you change, Keep the structure with the dot. [0-9 a-f] | ||
$token = "56225f.9096af3559800a6a" | ||
# Total memory of master | ||
$master_memory = 1536 | ||
# Increment to have more nodes | ||
$worker_count = 2 | ||
# Total memory of nodes | ||
$worker_memory = 1536 | ||
# Add Grafana with InfluxDB (work with heapster) | ||
$grafana = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: monitoring-grafana | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
task: monitoring | ||
k8s-app: grafana | ||
spec: | ||
volumes: | ||
- name: grafana-storage | ||
emptyDir: {} | ||
containers: | ||
- name: grafana | ||
image: gcr.io/google_containers/heapster_grafana:v3.1.1 | ||
ports: | ||
- containerPort: 3000 | ||
protocol: TCP | ||
volumeMounts: | ||
- mountPath: /var | ||
name: grafana-storage | ||
env: | ||
- name: INFLUXDB_HOST | ||
value: monitoring-influxdb | ||
- name: GRAFANA_PORT | ||
value: "3000" | ||
# The following env variables are required to make Grafana accessible via | ||
# the kubernetes api-server proxy. On production clusters, we recommend | ||
# removing these env variables, setup auth for grafana, and expose the grafana | ||
# service using a LoadBalancer or a public IP. | ||
- name: GF_AUTH_BASIC_ENABLED | ||
value: "false" | ||
- name: GF_AUTH_ANONYMOUS_ENABLED | ||
value: "true" | ||
- name: GF_AUTH_ANONYMOUS_ORG_ROLE | ||
value: Admin | ||
- name: GF_SERVER_ROOT_URL | ||
value: /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/ | ||
#value: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) | ||
# If you are NOT using this as an addon, you should comment out this line. | ||
kubernetes.io/cluster-service: 'true' | ||
kubernetes.io/name: monitoring-grafana | ||
name: monitoring-grafana | ||
namespace: kube-system | ||
spec: | ||
# In a production setup, we recommend accessing Grafana through an external Loadbalancer | ||
# or through a public IP. | ||
# type: LoadBalancer | ||
type: NodePort | ||
ports: | ||
- port: 80 | ||
targetPort: 3000 | ||
selector: | ||
k8s-app: grafana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
task: monitoring | ||
k8s-app: heapster | ||
version: v6 | ||
spec: | ||
containers: | ||
- name: heapster | ||
image: gcr.io/google_containers/heapster:v1.2.0 | ||
imagePullPolicy: Always | ||
command: | ||
- /heapster | ||
- --source=kubernetes:https://kubernetes.default | ||
- --sink=influxdb:http://monitoring-influxdb:8086 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
task: monitoring | ||
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) | ||
# If you are NOT using this as an addon, you should comment out this line. | ||
kubernetes.io/cluster-service: 'true' | ||
kubernetes.io/name: Heapster | ||
name: heapster | ||
namespace: kube-system | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8082 | ||
selector: | ||
k8s-app: heapster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: monitoring-influxdb | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
task: monitoring | ||
k8s-app: influxdb | ||
spec: | ||
volumes: | ||
- name: influxdb-storage | ||
emptyDir: {} | ||
containers: | ||
- name: influxdb | ||
image: kubernetes/heapster_influxdb:v0.6 | ||
volumeMounts: | ||
- mountPath: /data | ||
name: influxdb-storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
task: monitoring | ||
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) | ||
# If you are NOT using this as an addon, you should comment out this line. | ||
kubernetes.io/cluster-service: 'true' | ||
kubernetes.io/name: monitoring-influxdb | ||
name: monitoring-influxdb | ||
namespace: kube-system | ||
spec: | ||
# InfluxDB has a UI that can be used to query, uncomment the `http` port and expose | ||
# to access this service. | ||
# type: NodePort | ||
ports: | ||
# - name: http | ||
# port: 80 | ||
# targetPort: 8083 | ||
- name: api | ||
port: 8086 | ||
targetPort: 8086 | ||
selector: | ||
k8s-app: influxdb |