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
4569de7a
Commit
4569de7a
authored
May 04, 2015
by
saadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Google Cloud Monitoring and Google Cloud Logging instead of
Influxdb for Google Compute Engine deployments.
parent
7ce75689
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
90 additions
and
172 deletions
+90
-172
common.sh
build/common.sh
+2
-2
heapster-controller.yaml
...addons/cluster-monitoring/google/heapster-controller.yaml
+6
-9
grafana-service.yaml
cluster/addons/cluster-monitoring/grafana-service.yaml
+0
-10
heapster-controller.yaml
cluster/addons/cluster-monitoring/heapster-controller.yaml
+0
-36
heapster-service.yaml
cluster/addons/cluster-monitoring/heapster-service.yaml
+0
-10
influxdb-grafana-controller.yaml
...ddons/cluster-monitoring/influxdb-grafana-controller.yaml
+0
-35
influxdb-service.yaml
cluster/addons/cluster-monitoring/influxdb-service.yaml
+0
-9
grafana-service.yaml
...r/addons/cluster-monitoring/influxdb/grafana-service.yaml
+1
-3
heapster-controller.yaml
...dons/cluster-monitoring/influxdb/heapster-controller.yaml
+32
-0
influxdb-grafana-controller.yaml
...ster-monitoring/influxdb/influxdb-grafana-controller.yaml
+10
-9
influxdb-service.yaml
.../addons/cluster-monitoring/influxdb/influxdb-service.yaml
+7
-3
heapster-service.yaml
...r/addons/cluster-monitoring/v1beta3/heapster-service.yaml
+0
-16
influxdb-ui-service.yaml
...ddons/cluster-monitoring/v1beta3/influxdb-ui-service.yaml
+0
-14
config-default.sh
cluster/gce/config-default.sh
+5
-2
config-test.sh
cluster/gce/config-test.sh
+5
-2
helper.sh
cluster/gce/coreos/helper.sh
+2
-2
helper.sh
cluster/gce/debian/helper.sh
+1
-1
init.sls
cluster/saltbase/salt/kube-addons/init.sls
+15
-4
kube-addons.sh
cluster/saltbase/salt/kube-addons/kube-addons.sh
+1
-1
monitoring.go
test/e2e/monitoring.go
+3
-4
No files found.
build/common.sh
View file @
4569de7a
...
@@ -651,11 +651,11 @@ function kube::release::package_salt_tarball() {
...
@@ -651,11 +651,11 @@ function kube::release::package_salt_tarball() {
cp
-R
"
${
KUBE_ROOT
}
/cluster/saltbase"
"
${
release_stage
}
/"
cp
-R
"
${
KUBE_ROOT
}
/cluster/saltbase"
"
${
release_stage
}
/"
# TODO(#3579): This is a temporary hack. It gathers up the yaml,
# TODO(#3579): This is a temporary hack. It gathers up the yaml,
# yaml.in files in cluster/addons (minus any demos) and overlays
# yaml.in
, json
files in cluster/addons (minus any demos) and overlays
# them into kube-addons, where we expect them. (This pipeline is a
# them into kube-addons, where we expect them. (This pipeline is a
# fancy copy, stripping anything but the files we don't want.)
# fancy copy, stripping anything but the files we don't want.)
local
objects
local
objects
objects
=
$(
cd
"
${
KUBE_ROOT
}
/cluster/addons"
&&
find
.
-name
\*
.yaml
-or
-name
\*
.yaml.in
|
grep
-v
demo
)
objects
=
$(
cd
"
${
KUBE_ROOT
}
/cluster/addons"
&&
find
.
\(
-name
\*
.yaml
-or
-name
\*
.yaml.in
-or
-name
\*
.json
\)
|
grep
-v
demo
)
tar
c
-C
"
${
KUBE_ROOT
}
/cluster/addons"
${
objects
}
|
tar
x
-C
"
${
release_stage
}
/saltbase/salt/kube-addons"
tar
c
-C
"
${
KUBE_ROOT
}
/cluster/addons"
${
objects
}
|
tar
x
-C
"
${
release_stage
}
/saltbase/salt/kube-addons"
kube::release::clean_cruft
kube::release::clean_cruft
...
...
cluster/addons/cluster-monitoring/
v1beta3
/heapster-controller.yaml
→
cluster/addons/cluster-monitoring/
google
/heapster-controller.yaml
View file @
4569de7a
...
@@ -19,17 +19,14 @@ spec:
...
@@ -19,17 +19,14 @@ spec:
-
image
:
gcr.io/google_containers/heapster:v0.11.0
-
image
:
gcr.io/google_containers/heapster:v0.11.0
name
:
heapster
name
:
heapster
env
:
env
:
-
name
:
"
INFLUXDB_HOST"
-
name
:
FLAGS
value
:
"
http://monitoring-influxdb"
value
:
"
--poll_duration=2m
--stats_resolution=1m
--sink=gcm
--sink=gcl"
-
name
:
"
SINK"
volumeMounts
:
value
:
"
influxdb"
volumeMounts
:
-
name
:
ssl-certs
-
name
:
ssl-certs
mountPath
:
/etc/ssl/certs
mountPath
:
/etc/ssl/certs
readOnly
:
true
readOnly
:
true
volumes
:
volumes
:
-
name
:
ssl-certs
-
name
:
ssl-certs
source
:
hostPath
:
hostDir
:
path
:
/etc/ssl/certs
path
:
/etc/ssl/certs
cluster/addons/cluster-monitoring/grafana-service.yaml
deleted
100644 → 0
View file @
7ce75689
apiVersion
:
v1beta1
kind
:
Service
id
:
monitoring-grafana
port
:
80
containerPort
:
8080
labels
:
name
:
grafana
kubernetes.io/cluster-service
:
"
true"
selector
:
name
:
influxGrafana
cluster/addons/cluster-monitoring/heapster-controller.yaml
deleted
100644 → 0
View file @
7ce75689
apiVersion
:
v1beta1
id
:
monitoring-heapster-controller
kind
:
ReplicationController
desiredState
:
replicas
:
1
replicaSelector
:
name
:
heapster
podTemplate
:
desiredState
:
manifest
:
version
:
v1beta1
id
:
monitoring-heapster
containers
:
-
name
:
heapster
image
:
gcr.io/google_containers/heapster:v0.11.0
env
:
-
name
:
"
INFLUXDB_HOST"
value
:
"
monitoring-influxdb"
-
name
:
"
SINK"
value
:
"
influxdb"
volumeMounts
:
-
name
:
ssl-certs
mountPath
:
/etc/ssl/certs
readOnly
:
true
volumes
:
-
name
:
ssl-certs
source
:
hostDir
:
path
:
/etc/ssl/certs
labels
:
name
:
heapster
uses
:
monitoring-influxdb
kubernetes.io/cluster-service
:
"
true"
labels
:
name
:
heapster
kubernetes.io/cluster-service
:
"
true"
cluster/addons/cluster-monitoring/heapster-service.yaml
deleted
100644 → 0
View file @
7ce75689
apiVersion
:
v1beta1
kind
:
Service
id
:
monitoring-heapster
port
:
80
containerPort
:
8082
labels
:
name
:
heapster
kubernetes.io/cluster-service
:
"
true"
selector
:
name
:
heapster
cluster/addons/cluster-monitoring/influxdb-grafana-controller.yaml
deleted
100644 → 0
View file @
7ce75689
apiVersion
:
v1beta1
kind
:
ReplicationController
id
:
monitoring-influx-grafana-controller
desiredState
:
replicas
:
1
replicaSelector
:
name
:
influxGrafana
podTemplate
:
labels
:
name
:
influxGrafana
kubernetes.io/cluster-service
:
"
true"
desiredState
:
manifest
:
version
:
v1beta1
id
:
monitoring-influx-grafana
containers
:
-
name
:
influxdb
image
:
gcr.io/google_containers/heapster_influxdb:v0.3
ports
:
-
containerPort
:
8083
hostPort
:
8083
-
containerPort
:
8086
hostPort
:
8086
-
name
:
grafana
image
:
gcr.io/google_containers/heapster_grafana:v0.7
env
:
-
name
:
"
INFLUXDB_EXTERNAL_URL"
value
:
'
/api/v1beta1/proxy/services/monitoring-grafana/db/'
-
name
:
"
INFLUXDB_HOST"
value
:
'
monitoring-influxdb'
-
name
:
"
INFLUXDB_PORT"
value
:
'
80'
labels
:
name
:
influxGrafana
kubernetes.io/cluster-service
:
"
true"
cluster/addons/cluster-monitoring/influxdb-service.yaml
deleted
100644 → 0
View file @
7ce75689
apiVersion
:
v1beta1
kind
:
Service
id
:
monitoring-influxdb
port
:
80
containerPort
:
8086
labels
:
name
:
influxdb
selector
:
name
:
influxGrafana
cluster/addons/cluster-monitoring/
v1beta3
/grafana-service.yaml
→
cluster/addons/cluster-monitoring/
influxdb
/grafana-service.yaml
View file @
4569de7a
...
@@ -6,11 +6,9 @@ metadata:
...
@@ -6,11 +6,9 @@ metadata:
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
name
:
monitoring-grafana
name
:
monitoring-grafana
spec
:
spec
:
ports
:
ports
:
-
port
:
80
-
port
:
80
targetPort
:
8080
targetPort
:
8080
selector
:
selector
:
name
:
influxGrafana
name
:
influxGrafana
kubernetes.io/cluster-service
:
"
true"
cluster/addons/cluster-monitoring/influxdb/heapster-controller.yaml
0 → 100644
View file @
4569de7a
apiVersion
:
v1beta3
kind
:
ReplicationController
metadata
:
labels
:
name
:
heapster
kubernetes.io/cluster-service
:
"
true"
name
:
monitoring-heapster-controller
spec
:
replicas
:
1
selector
:
name
:
heapster
template
:
metadata
:
labels
:
name
:
heapster
kubernetes.io/cluster-service
:
"
true"
spec
:
containers
:
-
image
:
gcr.io/google_containers/heapster:v0.11.0
name
:
heapster
env
:
-
name
:
FLAGS
value
:
"
--poll_duration=2m
--stats_resolution=1m
--sink
influxdb:http://monitoring-influxdb.default.kubernetes.local:8086"
volumeMounts
:
-
name
:
ssl-certs
mountPath
:
/etc/ssl/certs
readOnly
:
true
volumes
:
-
name
:
ssl-certs
hostPath
:
path
:
"
/etc/ssl/certs"
cluster/addons/cluster-monitoring/
v1beta3
/influxdb-grafana-controller.yaml
→
cluster/addons/cluster-monitoring/
influxdb
/influxdb-grafana-controller.yaml
View file @
4569de7a
...
@@ -18,17 +18,18 @@ spec:
...
@@ -18,17 +18,18 @@ spec:
containers
:
containers
:
-
image
:
gcr.io/google_containers/heapster_influxdb:v0.3
-
image
:
gcr.io/google_containers/heapster_influxdb:v0.3
name
:
influxdb
name
:
influxdb
ports
:
ports
:
-
containerPort
:
8083
-
containerPort
:
8083
hostPort
:
8083
hostPort
:
8083
-
containerPort
:
8086
-
containerPort
:
8086
hostPort
:
8086
hostPort
:
8086
-
name
:
grafana
-
image
:
gcr.io/google_containers/heapster_grafana:v0.7
image
:
gcr.io/google_containers/heapster_grafana:v0.7
name
:
grafana
env
:
env
:
-
name
:
"
INFLUXDB_EXTERNAL_URL"
-
name
:
INFLUXDB_EXTERNAL_URL
value
:
'
/api/v1beta1/proxy/services/monitoring-grafana/db/'
value
:
/api/v1beta1/proxy/services/monitoring-grafana/db/
-
name
:
"
INFLUXDB_HOST"
-
name
:
INFLUXDB_HOST
value
:
'
monitoring-influxdb'
value
:
monitoring-influxdb
-
name
:
"
INFLUXDB_PORT"
-
name
:
INFLUXDB_PORT
value
:
'
80'
value
:
"
80"
cluster/addons/cluster-monitoring/
v1beta3
/influxdb-service.yaml
→
cluster/addons/cluster-monitoring/
influxdb
/influxdb-service.yaml
View file @
4569de7a
...
@@ -3,12 +3,16 @@ kind: Service
...
@@ -3,12 +3,16 @@ kind: Service
metadata
:
metadata
:
labels
:
labels
:
name
:
influxGrafana
name
:
influxGrafana
kubernetes.io/cluster-service
:
"
true"
name
:
monitoring-influxdb
name
:
monitoring-influxdb
spec
:
spec
:
ports
:
ports
:
-
port
:
80
-
name
:
http
port
:
8083
targetPort
:
8083
-
name
:
api
port
:
8086
targetPort
:
8086
targetPort
:
8086
selector
:
selector
:
name
:
influxGrafana
name
:
influxGrafana
cluster/addons/cluster-monitoring/v1beta3/heapster-service.yaml
deleted
100644 → 0
View file @
7ce75689
apiVersion
:
v1beta3
kind
:
Service
metadata
:
labels
:
name
:
heapster
kubernetes.io/cluster-service
:
"
true"
name
:
monitoring-heapster
spec
:
ports
:
-
port
:
80
targetPort
:
8082
selector
:
name
:
heapster
kubernetes.io/cluster-service
:
"
true"
cluster/addons/cluster-monitoring/v1beta3/influxdb-ui-service.yaml
deleted
100644 → 0
View file @
7ce75689
apiVersion
:
v1beta3
kind
:
Service
metadata
:
labels
:
name
:
influxGrafana
name
:
monitoring-influxdb-ui
spec
:
ports
:
-
port
:
80
targetPort
:
8083
selector
:
name
:
influxGrafana
cluster/gce/config-default.sh
View file @
4569de7a
...
@@ -50,8 +50,11 @@ ENABLE_DOCKER_REGISTRY_CACHE=true
...
@@ -50,8 +50,11 @@ ENABLE_DOCKER_REGISTRY_CACHE=true
# Optional: Install node monitoring.
# Optional: Install node monitoring.
ENABLE_NODE_MONITORING
=
"
${
KUBE_ENABLE_NODE_MONITORING
:-
true
}
"
ENABLE_NODE_MONITORING
=
"
${
KUBE_ENABLE_NODE_MONITORING
:-
true
}
"
# Optional: When set to true, heapster, Influxdb and Grafana will be setup as part of the cluster bring up.
# Optional: Cluster monitoring to setup as part of the cluster bring up:
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# 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
}
"
# Optional: Enable node logging.
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
...
...
cluster/gce/config-test.sh
View file @
4569de7a
...
@@ -49,8 +49,11 @@ ENABLE_DOCKER_REGISTRY_CACHE=true
...
@@ -49,8 +49,11 @@ ENABLE_DOCKER_REGISTRY_CACHE=true
# Optional: Install node monitoring.
# Optional: Install node monitoring.
ENABLE_NODE_MONITORING
=
"
${
KUBE_ENABLE_NODE_MONITORING
:-
true
}
"
ENABLE_NODE_MONITORING
=
"
${
KUBE_ENABLE_NODE_MONITORING
:-
true
}
"
# Optional: When set to true, heapster will be setup as part of the cluster bring up.
# Optional: Cluster monitoring to setup as part of the cluster bring up:
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# 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
:-
influxdb
}
"
# Optional: Enable node logging.
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
ENABLE_NODE_LOGGING
=
"
${
KUBE_ENABLE_NODE_LOGGING
:-
true
}
"
...
...
cluster/gce/coreos/helper.sh
View file @
4569de7a
...
@@ -33,7 +33,7 @@ SERVER_BINARY_TAR_URL: $(yaml-quote ${SERVER_BINARY_TAR_URL})
...
@@ -33,7 +33,7 @@ SERVER_BINARY_TAR_URL: $(yaml-quote ${SERVER_BINARY_TAR_URL})
SALT_TAR_URL:
$(
yaml-quote
${
SALT_TAR_URL
})
SALT_TAR_URL:
$(
yaml-quote
${
SALT_TAR_URL
})
PORTAL_NET:
$(
yaml-quote
${
PORTAL_NET
})
PORTAL_NET:
$(
yaml-quote
${
PORTAL_NET
})
ALLOCATE_NODE_CIDRS:
$(
yaml-quote
${
ALLOCATE_NODE_CIDRS
:-
false
})
ALLOCATE_NODE_CIDRS:
$(
yaml-quote
${
ALLOCATE_NODE_CIDRS
:-
false
})
ENABLE_CLUSTER_MONITORING:
$(
yaml-quote
${
ENABLE_CLUSTER_MONITORING
:-
fals
e
})
ENABLE_CLUSTER_MONITORING:
$(
yaml-quote
${
ENABLE_CLUSTER_MONITORING
:-
non
e
})
ENABLE_NODE_MONITORING:
$(
yaml-quote
${
ENABLE_NODE_MONITORING
:-
false
})
ENABLE_NODE_MONITORING:
$(
yaml-quote
${
ENABLE_NODE_MONITORING
:-
false
})
ENABLE_CLUSTER_LOGGING:
$(
yaml-quote
${
ENABLE_CLUSTER_LOGGING
:-
false
})
ENABLE_CLUSTER_LOGGING:
$(
yaml-quote
${
ENABLE_CLUSTER_LOGGING
:-
false
})
ENABLE_NODE_LOGGING:
$(
yaml-quote
${
ENABLE_NODE_LOGGING
:-
false
})
ENABLE_NODE_LOGGING:
$(
yaml-quote
${
ENABLE_NODE_LOGGING
:-
false
})
...
@@ -59,7 +59,7 @@ INSTANCE_PREFIX=$(yaml-quote ${INSTANCE_PREFIX})
...
@@ -59,7 +59,7 @@ INSTANCE_PREFIX=$(yaml-quote ${INSTANCE_PREFIX})
NODE_INSTANCE_PREFIX=
$(
yaml-quote
${
NODE_INSTANCE_PREFIX
})
NODE_INSTANCE_PREFIX=
$(
yaml-quote
${
NODE_INSTANCE_PREFIX
})
SERVER_BINARY_TAR_URL=
$(
yaml-quote
${
SERVER_BINARY_TAR_URL
})
SERVER_BINARY_TAR_URL=
$(
yaml-quote
${
SERVER_BINARY_TAR_URL
})
PORTAL_NET=
$(
yaml-quote
${
PORTAL_NET
})
PORTAL_NET=
$(
yaml-quote
${
PORTAL_NET
})
ENABLE_CLUSTER_MONITORING=
$(
yaml-quote
${
ENABLE_CLUSTER_MONITORING
:-
fals
e
})
ENABLE_CLUSTER_MONITORING=
$(
yaml-quote
${
ENABLE_CLUSTER_MONITORING
:-
non
e
})
ENABLE_NODE_MONITORING=
$(
yaml-quote
${
ENABLE_NODE_MONITORING
:-
false
})
ENABLE_NODE_MONITORING=
$(
yaml-quote
${
ENABLE_NODE_MONITORING
:-
false
})
ENABLE_CLUSTER_LOGGING=
$(
yaml-quote
${
ENABLE_CLUSTER_LOGGING
:-
false
})
ENABLE_CLUSTER_LOGGING=
$(
yaml-quote
${
ENABLE_CLUSTER_LOGGING
:-
false
})
ENABLE_NODE_LOGGING=
$(
yaml-quote
${
ENABLE_NODE_LOGGING
:-
false
})
ENABLE_NODE_LOGGING=
$(
yaml-quote
${
ENABLE_NODE_LOGGING
:-
false
})
...
...
cluster/gce/debian/helper.sh
View file @
4569de7a
...
@@ -31,7 +31,7 @@ SERVER_BINARY_TAR_URL: $(yaml-quote ${SERVER_BINARY_TAR_URL})
...
@@ -31,7 +31,7 @@ SERVER_BINARY_TAR_URL: $(yaml-quote ${SERVER_BINARY_TAR_URL})
SALT_TAR_URL:
$(
yaml-quote
${
SALT_TAR_URL
})
SALT_TAR_URL:
$(
yaml-quote
${
SALT_TAR_URL
})
PORTAL_NET:
$(
yaml-quote
${
PORTAL_NET
})
PORTAL_NET:
$(
yaml-quote
${
PORTAL_NET
})
ALLOCATE_NODE_CIDRS:
$(
yaml-quote
${
ALLOCATE_NODE_CIDRS
:-
false
})
ALLOCATE_NODE_CIDRS:
$(
yaml-quote
${
ALLOCATE_NODE_CIDRS
:-
false
})
ENABLE_CLUSTER_MONITORING:
$(
yaml-quote
${
ENABLE_CLUSTER_MONITORING
:-
fals
e
})
ENABLE_CLUSTER_MONITORING:
$(
yaml-quote
${
ENABLE_CLUSTER_MONITORING
:-
non
e
})
ENABLE_NODE_MONITORING:
$(
yaml-quote
${
ENABLE_NODE_MONITORING
:-
false
})
ENABLE_NODE_MONITORING:
$(
yaml-quote
${
ENABLE_NODE_MONITORING
:-
false
})
ENABLE_CLUSTER_LOGGING:
$(
yaml-quote
${
ENABLE_CLUSTER_LOGGING
:-
false
})
ENABLE_CLUSTER_LOGGING:
$(
yaml-quote
${
ENABLE_CLUSTER_LOGGING
:-
false
})
ENABLE_NODE_LOGGING:
$(
yaml-quote
${
ENABLE_NODE_LOGGING
:-
false
})
ENABLE_NODE_LOGGING:
$(
yaml-quote
${
ENABLE_NODE_LOGGING
:-
false
})
...
...
cluster/saltbase/salt/kube-addons/init.sls
View file @
4569de7a
{% if pillar.get('enable_cluster_monitoring', '').lower() == '
true
' %}
{% if pillar.get('enable_cluster_monitoring', '').lower() == '
influxdb
' %}
/etc/kubernetes/addons/cluster-monitoring:
/etc/kubernetes/addons/cluster-monitoring
/influxdb
:
file.recurse:
file.recurse:
- source: salt://kube-addons/cluster-monitoring
- source: salt://kube-addons/cluster-monitoring/influxdb
- include_pat: E@^.+\.yaml$
- include_pat: E@(^.+\.yaml$|^.+\.json$)
- user: root
- group: root
- dir_mode: 755
- file_mode: 644
{% endif %}
{% if pillar.get('enable_cluster_monitoring', '').lower() == 'google' %}
/etc/kubernetes/addons/cluster-monitoring/google:
file.recurse:
- source: salt://kube-addons/cluster-monitoring/google
- include_pat: E@(^.+\.yaml$|^.+\.json$)
- user: root
- user: root
- group: root
- group: root
- dir_mode: 755
- dir_mode: 755
...
...
cluster/saltbase/salt/kube-addons/kube-addons.sh
View file @
4569de7a
...
@@ -110,7 +110,7 @@ while read line; do
...
@@ -110,7 +110,7 @@ while read line; do
create-kubeconfig-secret
"
${
token
}
"
"
${
username
}
"
create-kubeconfig-secret
"
${
token
}
"
"
${
username
}
"
done
< /srv/kubernetes/known_tokens.csv
done
< /srv/kubernetes/known_tokens.csv
for
obj
in
$(
find /etc/kubernetes/addons
-name
\*
.yaml
)
;
do
for
obj
in
$(
find /etc/kubernetes/addons
\(
-name
\*
.yaml
-o
-name
\*
.json
\)
)
;
do
start_addon
${
obj
}
100 10 &
start_addon
${
obj
}
100 10 &
echo
"++ addon
${
obj
}
starting in pid
$!
++"
echo
"++ addon
${
obj
}
starting in pid
$!
++"
done
done
...
...
test/e2e/monitoring.go
View file @
4569de7a
...
@@ -68,9 +68,8 @@ var (
...
@@ -68,9 +68,8 @@ var (
"monitoring-influx-grafana-controller"
:
false
,
"monitoring-influx-grafana-controller"
:
false
,
}
}
expectedServices
=
map
[
string
]
bool
{
expectedServices
=
map
[
string
]
bool
{
influxdbService
:
false
,
influxdbService
:
false
,
"monitoring-heapster"
:
false
,
"monitoring-grafana"
:
false
,
"monitoring-grafana"
:
false
,
}
}
)
)
...
@@ -209,7 +208,7 @@ func testMonitoringUsingHeapsterInfluxdb(c *client.Client) {
...
@@ -209,7 +208,7 @@ func testMonitoringUsingHeapsterInfluxdb(c *client.Client) {
if
!
ok
{
if
!
ok
{
Failf
(
"failed to get master http client"
)
Failf
(
"failed to get master http client"
)
}
}
proxyUrl
:=
fmt
.
Sprintf
(
"%s/api/v1beta3/proxy/namespaces/default/services/%s/"
,
getMasterHost
(),
influxdbService
)
proxyUrl
:=
fmt
.
Sprintf
(
"%s/api/v1beta3/proxy/namespaces/default/services/%s
:api
/"
,
getMasterHost
(),
influxdbService
)
config
:=
&
influxdb
.
ClientConfig
{
config
:=
&
influxdb
.
ClientConfig
{
Host
:
proxyUrl
,
Host
:
proxyUrl
,
// TODO(vishh): Infer username and pw from the Pod spec.
// TODO(vishh): Infer username and pw from the Pod spec.
...
...
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