Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
bc53533c
Commit
bc53533c
authored
Jun 04, 2015
by
saadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable InfluxDB/Grafana for GCE in addition to GCM/GCL
parent
44f2c8f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
4 deletions
+65
-4
heapster-controller-combined.yaml
...nitoring/googleinfluxdb/heapster-controller-combined.yaml
+48
-0
config-default.sh
cluster/gce/config-default.sh
+5
-4
init.sls
cluster/saltbase/salt/kube-addons/init.sls
+12
-0
No files found.
cluster/addons/cluster-monitoring/googleinfluxdb/heapster-controller-combined.yaml
0 → 100644
View file @
bc53533c
apiVersion
:
v1beta3
kind
:
ReplicationController
metadata
:
name
:
monitoring-heapster-v1
namespace
:
default
labels
:
k8s-app
:
heapster
version
:
v1
kubernetes.io/cluster-service
:
"
true"
spec
:
replicas
:
1
selector
:
k8s-app
:
heapster
version
:
v1
template
:
metadata
:
labels
:
k8s-app
:
heapster
version
:
v1
kubernetes.io/cluster-service
:
"
true"
spec
:
containers
:
-
image
:
gcr.io/google_containers/heapster:v0.13.0
name
:
heapster
command
:
-
/heapster
-
--source=kubernetes:https://kubernetes
-
--sink=gcm
-
--sink=gcl
-
--sink=influxdb:http://monitoring-influxdb:8086
-
--poll_duration=2m
-
--stats_resolution=1m
volumeMounts
:
-
name
:
ssl-certs
mountPath
:
/etc/ssl/certs
readOnly
:
true
-
name
:
monitoring-token
mountPath
:
/etc/kubernetes/kubeconfig
readOnly
:
true
volumes
:
-
name
:
ssl-certs
hostPath
:
path
:
/etc/ssl/certs
-
name
:
monitoring-token
secret
:
secretName
:
token-system-monitoring
cluster/gce/config-default.sh
View file @
bc53533c
...
...
@@ -54,10 +54,11 @@ ENABLE_DOCKER_REGISTRY_CACHE=true
ENABLE_NODE_MONITORING
=
"
${
KUBE_ENABLE_NODE_MONITORING
:-
true
}
"
# Optional: Cluster monitoring to setup as part of the cluster bring up:
# none - No cluster monitoring setup
# influxdb - Heapster, InfluxDB, and Grafana
# google - Heapster, Google Cloud Monitoring, and Google Cloud Logging
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
google
}
"
# none - No cluster monitoring setup
# influxdb - Heapster, InfluxDB, and Grafana
# google - Heapster, Google Cloud Monitoring, and Google Cloud Logging
# googleinfluxdb - Enable influxdb and google
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
googleinfluxdb
}
"
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
...
...
cluster/saltbase/salt/kube-addons/init.sls
View file @
bc53533c
...
...
@@ -20,6 +20,18 @@
- file_mode: 644
{% endif %}
{% if pillar.get('enable_cluster_monitoring', '').lower() == 'googleinfluxdb' %}
/etc/kubernetes/addons/cluster-monitoring/googleinfluxdb:
file.recurse:
- source: salt://kube-addons/cluster-monitoring
- include_pat: E@(^.+\.yaml$|^.+\.json$)
- exclude_pat: E@(^.+heapster-controller\.yaml$|^.+heapster-controller\.json$)
- user: root
- group: root
- dir_mode: 755
- file_mode: 644
{% endif %}
{% if pillar.get('enable_cluster_dns', '').lower() == 'true' %}
/etc/kubernetes/addons/dns/skydns-svc.yaml:
file.managed:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment