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
23c9c405
Commit
23c9c405
authored
Mar 11, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5347 from vishh/cleanup_firewall
Remove firewall rules for monitoring. Enable monitoring in other cluster providers
parents
7629b616
e7aca5c3
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
17 additions
and
103 deletions
+17
-103
config-default.sh
cluster/aws/config-default.sh
+1
-1
util.sh
cluster/aws/util.sh
+0
-18
config-default.sh
cluster/azure/config-default.sh
+3
-0
util.sh
cluster/azure/util.sh
+0
-9
config-default.sh
cluster/gce/config-default.sh
+1
-1
util.sh
cluster/gce/util.sh
+0
-26
config-default.sh
cluster/gke/config-default.sh
+3
-0
util.sh
cluster/gke/util.sh
+0
-12
kube-down.sh
cluster/kube-down.sh
+0
-1
kube-up.sh
cluster/kube-up.sh
+0
-3
util.sh
cluster/libvirt-coreos/util.sh
+0
-8
config-default.sh
cluster/rackspace/config-default.sh
+3
-0
util.sh
cluster/rackspace/util.sh
+0
-8
config-default.sh
cluster/vagrant/config-default.sh
+3
-0
util.sh
cluster/vagrant/util.sh
+0
-8
config-default.sh
cluster/vsphere/config-default.sh
+3
-0
util.sh
cluster/vsphere/util.sh
+0
-8
No files found.
cluster/aws/config-default.sh
View file @
23c9c405
...
@@ -46,7 +46,7 @@ ENABLE_DOCKER_REGISTRY_CACHE=true
...
@@ -46,7 +46,7 @@ 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: When set to true, heapster
, Influxdb and Grafana
will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Optional: Enable node logging.
# Optional: Enable node logging.
...
...
cluster/aws/util.sh
View file @
23c9c405
...
@@ -699,24 +699,6 @@ function restart-apiserver {
...
@@ -699,24 +699,6 @@ function restart-apiserver {
ssh-to-node
"
$1
"
"sudo /etc/init.d/kube-apiserver restart"
ssh-to-node
"
$1
"
"sudo /etc/init.d/kube-apiserver restart"
}
}
# Setup monitoring firewalls using heapster and InfluxDB
function
setup-monitoring-firewall
{
if
[[
"
${
ENABLE_CLUSTER_MONITORING
}
"
!=
"true"
]]
;
then
return
fi
# TODO: Support monitoring firewall
echo
"Cluster monitoring setup is not (yet) supported on AWS"
}
function
teardown-monitoring-firewall
{
if
[[
"
${
ENABLE_CLUSTER_MONITORING
}
"
!=
"true"
]]
;
then
return
fi
# TODO: Support monitoring firewall
}
function
setup-logging-firewall
{
function
setup-logging-firewall
{
# If logging with Fluentd to Elasticsearch is enabled then create pods
# If logging with Fluentd to Elasticsearch is enabled then create pods
# and services for Elasticsearch (for ingesting logs) and Kibana (for
# and services for Elasticsearch (for ingesting logs) and Kibana (for
...
...
cluster/azure/config-default.sh
View file @
23c9c405
...
@@ -45,5 +45,8 @@ LOGGING_DESTINATION=elasticsearch # options: elasticsearch, gcp
...
@@ -45,5 +45,8 @@ LOGGING_DESTINATION=elasticsearch # options: elasticsearch, gcp
ENABLE_CLUSTER_LOGGING
=
false
ENABLE_CLUSTER_LOGGING
=
false
ELASTICSEARCH_LOGGING_REPLICAS
=
1
ELASTICSEARCH_LOGGING_REPLICAS
=
1
# Optional: When set to true, heapster, Influxdb and grafana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceAutoProvision,LimitRanger,ResourceQuota
ADMISSION_CONTROL
=
NamespaceAutoProvision,LimitRanger,ResourceQuota
cluster/azure/util.sh
View file @
23c9c405
...
@@ -562,15 +562,6 @@ function restart-apiserver {
...
@@ -562,15 +562,6 @@ function restart-apiserver {
ssh-to-node
"
$1
"
"sudo /etc/init.d/kube-apiserver restart"
ssh-to-node
"
$1
"
"sudo /etc/init.d/kube-apiserver restart"
}
}
# Setup monitoring using heapster and InfluxDB
function
setup-monitoring-firewall
{
echo
"not implemented"
>
/dev/null
}
function
teardown-monitoring-firewall
{
echo
"not implemented"
>
/dev/null
}
function
setup-logging-firewall
{
function
setup-logging-firewall
{
echo
"TODO: setup logging"
echo
"TODO: setup logging"
}
}
...
...
cluster/gce/config-default.sh
View file @
23c9c405
...
@@ -86,7 +86,7 @@ ENABLE_DOCKER_REGISTRY_CACHE=true
...
@@ -86,7 +86,7 @@ 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: When set to true, heapster
, Influxdb and Grafana
will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING="
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
ENABLE_CLUSTER_MONITORING="
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Optional: Enable node logging.
# Optional: Enable node logging.
...
...
cluster/gce/util.sh
View file @
23c9c405
...
@@ -925,32 +925,6 @@ function restart-apiserver {
...
@@ -925,32 +925,6 @@ function restart-apiserver {
ssh-to-node
"
$1
"
"sudo /etc/init.d/kube-apiserver restart"
ssh-to-node
"
$1
"
"sudo /etc/init.d/kube-apiserver restart"
}
}
# Setup monitoring firewalls using heapster and InfluxDB
function
setup-monitoring-firewall
{
if
[[
"
${
ENABLE_CLUSTER_MONITORING
}
"
!=
"true"
]]
;
then
return
fi
echo
"Setting up firewalls to Heapster based cluster monitoring."
detect-project
gcloud compute firewall-rules create
"
${
INSTANCE_PREFIX
}
-monitoring-heapster"
--project
"
${
PROJECT
}
"
\
--allow
tcp:80 tcp:8083 tcp:8086
--target-tags
=
"
${
MINION_TAG
}
"
--network
=
"
${
NETWORK
}
"
echo
echo
-e
"
${
color_green
}
Grafana dashboard will be available at
${
color_yellow
}
https://
${
KUBE_MASTER_IP
}
/api/v1beta1/proxy/services/monitoring-grafana/
${
color_green
}
. Wait for the monitoring dashboard to be online.
${
color_norm
}
"
echo
}
function
teardown-monitoring-firewall
{
if
[[
"
${
ENABLE_CLUSTER_MONITORING
}
"
!=
"true"
]]
;
then
return
fi
detect-project
gcloud compute firewall-rules delete
-q
"
${
INSTANCE_PREFIX
}
-monitoring-heapster"
--project
"
${
PROJECT
}
"
||
true
}
function
setup-logging-firewall
{
function
setup-logging-firewall
{
# If logging with Fluentd to Elasticsearch is enabled then create pods
# If logging with Fluentd to Elasticsearch is enabled then create pods
# and services for Elasticsearch (for ingesting logs) and Kibana (for
# and services for Elasticsearch (for ingesting logs) and Kibana (for
...
...
cluster/gke/config-default.sh
View file @
23c9c405
...
@@ -29,3 +29,6 @@ LOGGING_DESTINATION=gcp # options: elasticsearch, gcp
...
@@ -29,3 +29,6 @@ LOGGING_DESTINATION=gcp # options: elasticsearch, gcp
# Optional: When set to true, Elasticsearch and Kibana will be setup as part of the cluster bring up.
# Optional: When set to true, Elasticsearch and Kibana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_LOGGING
=
false
ENABLE_CLUSTER_LOGGING
=
false
ELASTICSEARCH_LOGGING_REPLICAS
=
1
ELASTICSEARCH_LOGGING_REPLICAS
=
1
# Optional: When set to true, heapster, Influxdb and Grafana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
false
}
"
cluster/gke/util.sh
View file @
23c9c405
...
@@ -114,12 +114,6 @@ function kube-up() {
...
@@ -114,12 +114,6 @@ function kube-up() {
--network
=
"
${
NETWORK
}
"
--network
=
"
${
NETWORK
}
"
}
}
# Called during cluster/kube-up.sh
function
setup-monitoring-firewall
()
{
echo
"... in setup-monitoring-firewall()"
>
&2
# TODO(mbforbes): This isn't currently supported in GKE.
}
# Execute prior to running tests to initialize required structure. This is
# Execute prior to running tests to initialize required structure. This is
# called from hack/e2e-go only when running -up (it is run after kube-up, so
# called from hack/e2e-go only when running -up (it is run after kube-up, so
# the cluster already exists at this point).
# the cluster already exists at this point).
...
@@ -261,12 +255,6 @@ function test-teardown() {
...
@@ -261,12 +255,6 @@ function test-teardown() {
"
${
KUBE_ROOT
}
/cluster/kube-down.sh"
"
${
KUBE_ROOT
}
/cluster/kube-down.sh"
}
}
# Tears down monitoring.
function
teardown-monitoring-firewall
()
{
echo
"... in teardown-monitoring-firewall()"
>
&2
# TODO(mbforbes): This isn't currently supported in GKE.
}
# Actually take down the cluster. This is called from test-teardown.
# Actually take down the cluster. This is called from test-teardown.
#
#
# Assumed vars:
# Assumed vars:
...
...
cluster/kube-down.sh
View file @
23c9c405
...
@@ -27,7 +27,6 @@ source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
...
@@ -27,7 +27,6 @@ source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
echo
"Bringing down cluster using provider:
$KUBERNETES_PROVIDER
"
echo
"Bringing down cluster using provider:
$KUBERNETES_PROVIDER
"
verify-prereqs
verify-prereqs
teardown-monitoring-firewall
teardown-logging-firewall
teardown-logging-firewall
kube-down
kube-down
...
...
cluster/kube-up.sh
View file @
23c9c405
...
@@ -39,9 +39,6 @@ kube-up
...
@@ -39,9 +39,6 @@ kube-up
echo
"... calling validate-cluster"
>
&2
echo
"... calling validate-cluster"
>
&2
"
${
KUBE_ROOT
}
/cluster/validate-cluster.sh"
"
${
KUBE_ROOT
}
/cluster/validate-cluster.sh"
echo
"... calling setup-monitoring-firewall"
>
&2
setup-monitoring-firewall
echo
"... calling setup-logging-firewall"
>
&2
echo
"... calling setup-logging-firewall"
>
&2
setup-logging-firewall
setup-logging-firewall
...
...
cluster/libvirt-coreos/util.sh
View file @
23c9c405
...
@@ -286,14 +286,6 @@ function get-password {
...
@@ -286,14 +286,6 @@ function get-password {
echo
"TODO get-password"
echo
"TODO get-password"
}
}
function
setup-monitoring-firewall
{
echo
"TODO"
1>&2
}
function
teardown-monitoring-firewall
{
echo
"TODO"
1>&2
}
# Perform preparations required to run e2e tests
# Perform preparations required to run e2e tests
function
prepare-e2e
()
{
function
prepare-e2e
()
{
echo
"libvirt-coreos doesn't need special preparations for e2e tests"
1>&2
echo
"libvirt-coreos doesn't need special preparations for e2e tests"
1>&2
...
...
cluster/rackspace/config-default.sh
View file @
23c9c405
...
@@ -49,6 +49,9 @@ LOGGING_DESTINATION=elasticsearch
...
@@ -49,6 +49,9 @@ LOGGING_DESTINATION=elasticsearch
ENABLE_CLUSTER_LOGGING
=
false
ENABLE_CLUSTER_LOGGING
=
false
ELASTICSEARCH_LOGGING_REPLICAS
=
1
ELASTICSEARCH_LOGGING_REPLICAS
=
1
# Optional: When set to true, heapster, Influxdb and Grafana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Optional: Install cluster DNS.
# Optional: Install cluster DNS.
ENABLE_CLUSTER_DNS
=
true
ENABLE_CLUSTER_DNS
=
true
DNS_SERVER_IP
=
"10.0.0.10"
DNS_SERVER_IP
=
"10.0.0.10"
...
...
cluster/rackspace/util.sh
View file @
23c9c405
...
@@ -347,14 +347,6 @@ kube-up() {
...
@@ -347,14 +347,6 @@ kube-up() {
echo
echo
}
}
function
setup-monitoring-firewall
{
echo
"TODO"
}
function
teardown-monitoring-firewall
{
echo
"TODO"
}
function
setup-logging-firewall
{
function
setup-logging-firewall
{
echo
"TODO: setup logging"
echo
"TODO: setup logging"
}
}
...
...
cluster/vagrant/config-default.sh
View file @
23c9c405
...
@@ -62,6 +62,9 @@ LOGGING_DESTINATION=elasticsearch
...
@@ -62,6 +62,9 @@ LOGGING_DESTINATION=elasticsearch
ENABLE_CLUSTER_LOGGING
=
false
ENABLE_CLUSTER_LOGGING
=
false
ELASTICSEARCH_LOGGING_REPLICAS
=
1
ELASTICSEARCH_LOGGING_REPLICAS
=
1
# Optional: When set to true, heapster, Influxdb and Grafana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Extra options to set on the Docker command line. This is useful for setting
# Extra options to set on the Docker command line. This is useful for setting
# --insecure-registry for local registries.
# --insecure-registry for local registries.
DOCKER_OPTS
=
""
DOCKER_OPTS
=
""
...
...
cluster/vagrant/util.sh
View file @
23c9c405
...
@@ -333,14 +333,6 @@ function restart-apiserver {
...
@@ -333,14 +333,6 @@ function restart-apiserver {
ssh-to-node
"
$1
"
"sudo systemctl restart kube-apiserver"
ssh-to-node
"
$1
"
"sudo systemctl restart kube-apiserver"
}
}
function
setup-monitoring-firewall
{
echo
"TODO"
1>&2
}
function
teardown-monitoring-firewall
{
echo
"TODO"
1>&2
}
# Perform preparations required to run e2e tests
# Perform preparations required to run e2e tests
function
prepare-e2e
()
{
function
prepare-e2e
()
{
echo
"Vagrant doesn't need special preparations for e2e tests"
1>&2
echo
"Vagrant doesn't need special preparations for e2e tests"
1>&2
...
...
cluster/vsphere/config-default.sh
View file @
23c9c405
...
@@ -44,6 +44,9 @@ LOGGING_DESTINATION=elasticsearch
...
@@ -44,6 +44,9 @@ LOGGING_DESTINATION=elasticsearch
ENABLE_CLUSTER_LOGGING
=
false
ENABLE_CLUSTER_LOGGING
=
false
ELASTICSEARCH_LOGGING_REPLICAS
=
1
ELASTICSEARCH_LOGGING_REPLICAS
=
1
# Optional: When set to true, heapster, Influxdb and Grafana will be setup as part of the cluster bring up.
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
true
}
"
# Optional: Install cluster DNS.
# Optional: Install cluster DNS.
ENABLE_CLUSTER_DNS
=
true
ENABLE_CLUSTER_DNS
=
true
DNS_SERVER_IP
=
"10.244.240.240"
DNS_SERVER_IP
=
"10.244.240.240"
...
...
cluster/vsphere/util.sh
View file @
23c9c405
...
@@ -479,14 +479,6 @@ function test-teardown {
...
@@ -479,14 +479,6 @@ function test-teardown {
echo
"TODO"
echo
"TODO"
}
}
function
setup-monitoring-firewall
{
echo
"TODO"
}
function
teardown-monitoring-firewall
{
echo
"TODO"
}
function
setup-logging-firewall
{
function
setup-logging-firewall
{
echo
"TODO: setup logging"
echo
"TODO: setup logging"
}
}
...
...
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