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
b873dce2
Commit
b873dce2
authored
Nov 11, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16006 from paralin/remove-experimental-api-env
Auto commit by PR queue bot
parents
3d66f0fe
d61d57ad
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
50 additions
and
101 deletions
+50
-101
config-default.sh
cluster/aws/config-default.sh
+6
-7
config-test.sh
cluster/aws/config-test.sh
+4
-7
create-dynamic-salt-files.sh
cluster/aws/templates/create-dynamic-salt-files.sh
+0
-6
util.sh
cluster/aws/util.sh
+23
-19
config-default.sh
cluster/gce/config-default.sh
+7
-13
config-test.sh
cluster/gce/config-test.sh
+4
-13
configure-vm.sh
cluster/gce/configure-vm.sh
+0
-5
helper.sh
cluster/gce/coreos/helper.sh
+0
-1
helper.sh
cluster/gce/debian/helper.sh
+0
-1
util.sh
cluster/gce/util.sh
+6
-13
config-default.sh
cluster/kubemark/config-default.sh
+0
-1
config-default.sh
cluster/vagrant/config-default.sh
+0
-3
util.sh
cluster/vagrant/util.sh
+0
-12
No files found.
cluster/aws/config-default.sh
View file @
b873dce2
...
@@ -81,8 +81,13 @@ MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
...
@@ -81,8 +81,13 @@ MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
# If set to auto, a new Elastic IP will be acquired
# If set to auto, a new Elastic IP will be acquired
# Otherwise amazon-given public ip will be used (it'll change with reboot).
# Otherwise amazon-given public ip will be used (it'll change with reboot).
MASTER_RESERVED_IP
=
"
${
MASTER_RESERVED_IP
:-}
"
MASTER_RESERVED_IP
=
"
${
MASTER_RESERVED_IP
:-}
"
# Runtime config
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
ENABLE_EXPERIMENTAL_API
=
"
${
KUBE_ENABLE_EXPERIMENTAL_API
:-
false
}
"
# Enable various v1beta1 features
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-}
"
ENABLE_DAEMONSETS
=
"
${
KUBE_ENABLE_DAEMONSETS
:-}
"
# Optional: Cluster monitoring to setup as part of the cluster bring up:
# Optional: Cluster monitoring to setup as part of the cluster bring up:
# none - No cluster monitoring setup
# none - No cluster monitoring setup
...
@@ -120,12 +125,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
...
@@ -120,12 +125,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
TARGET_NODE_UTILIZATION
=
"
${
KUBE_TARGET_NODE_UTILIZATION
:-
0
.7
}
"
TARGET_NODE_UTILIZATION
=
"
${
KUBE_TARGET_NODE_UTILIZATION
:-
0
.7
}
"
fi
fi
# Optional: Enable deployment experimental feature, not ready for production use.
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-
false
}
"
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
ENABLE_EXPERIMENTAL_API
=
true
fi
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
...
...
cluster/aws/config-test.sh
View file @
b873dce2
...
@@ -80,7 +80,10 @@ MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
...
@@ -80,7 +80,10 @@ MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
# Otherwise amazon-given public ip will be used (it'll change with reboot).
# Otherwise amazon-given public ip will be used (it'll change with reboot).
MASTER_RESERVED_IP
=
"
${
MASTER_RESERVED_IP
:-}
"
MASTER_RESERVED_IP
=
"
${
MASTER_RESERVED_IP
:-}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
ENABLE_EXPERIMENTAL_API
=
"
${
KUBE_ENABLE_EXPERIMENTAL_API
:-
false
}
"
# Enable various v1beta1 features
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-}
"
ENABLE_DAEMONSETS
=
"
${
KUBE_ENABLE_DAEMONSETS
:-}
"
# Optional: Cluster monitoring to setup as part of the cluster bring up:
# Optional: Cluster monitoring to setup as part of the cluster bring up:
# none - No cluster monitoring setup
# none - No cluster monitoring setup
...
@@ -118,12 +121,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
...
@@ -118,12 +121,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
TARGET_NODE_UTILIZATION
=
"
${
KUBE_TARGET_NODE_UTILIZATION
:-
0
.7
}
"
TARGET_NODE_UTILIZATION
=
"
${
KUBE_TARGET_NODE_UTILIZATION
:-
0
.7
}
"
fi
fi
# Optional: Enable deployment experimental feature, not ready for production use.
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-
false
}
"
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
ENABLE_EXPERIMENTAL_API
=
true
fi
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
...
...
cluster/aws/templates/create-dynamic-salt-files.sh
View file @
b873dce2
...
@@ -44,12 +44,6 @@ num_nodes: $(echo "${NUM_MINIONS}")
...
@@ -44,12 +44,6 @@ num_nodes: $(echo "${NUM_MINIONS}")
e2e_storage_test_environment: '
$(
echo
"
$E2E_STORAGE_TEST_ENVIRONMENT
"
|
sed
-e
"s/'/''/g"
)
'
e2e_storage_test_environment: '
$(
echo
"
$E2E_STORAGE_TEST_ENVIRONMENT
"
|
sed
-e
"s/'/''/g"
)
'
EOF
EOF
if
[
-n
"
${
ENABLE_EXPERIMENTAL_API
:-}
"
]
;
then
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
enable_experimental_api: '
$(
echo
"
$ENABLE_EXPERIMENTAL_API
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
readonly
BASIC_AUTH_FILE
=
"/srv/salt-overlay/salt/kube-apiserver/basic_auth.csv"
readonly
BASIC_AUTH_FILE
=
"/srv/salt-overlay/salt/kube-apiserver/basic_auth.csv"
if
[
!
-e
"
${
BASIC_AUTH_FILE
}
"
]
;
then
if
[
!
-e
"
${
BASIC_AUTH_FILE
}
"
]
;
then
mkdir
-p
/srv/salt-overlay/salt/kube-apiserver
mkdir
-p
/srv/salt-overlay/salt/kube-apiserver
...
...
cluster/aws/util.sh
View file @
b873dce2
...
@@ -468,24 +468,7 @@ function create-dhcp-option-set () {
...
@@ -468,24 +468,7 @@ function create-dhcp-option-set () {
# Verify prereqs
# Verify prereqs
function
verify-prereqs
{
function
verify-prereqs
{
if
[[
"
${
ENABLE_EXPERIMENTAL_API
}
"
==
"true"
]]
;
then
build-runtime-config
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1=true"
else
# TODO: add checking if RUNTIME_CONFIG contains "extensions/v1beta1=false" and appending "extensions/v1beta1=true" if not.
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1=true"
;
then
echo
"Experimental API should be turned on, but is not turned on in RUNTIME_CONFIG!"
exit
1
fi
fi
fi
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/deployments=true"
else
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/deployments=true"
fi
fi
if
[[
"
$(
which aws
)
"
==
""
]]
;
then
if
[[
"
$(
which aws
)
"
==
""
]]
;
then
echo
"Can't find aws in PATH, please fix and retry."
echo
"Can't find aws in PATH, please fix and retry."
...
@@ -885,7 +868,6 @@ function start-master() {
...
@@ -885,7 +868,6 @@ function start-master() {
echo
"readonly ELASTICSEARCH_LOGGING_REPLICAS='
${
ELASTICSEARCH_LOGGING_REPLICAS
:-}
'"
echo
"readonly ELASTICSEARCH_LOGGING_REPLICAS='
${
ELASTICSEARCH_LOGGING_REPLICAS
:-}
'"
echo
"readonly ENABLE_CLUSTER_DNS='
${
ENABLE_CLUSTER_DNS
:-
false
}
'"
echo
"readonly ENABLE_CLUSTER_DNS='
${
ENABLE_CLUSTER_DNS
:-
false
}
'"
echo
"readonly ENABLE_CLUSTER_UI='
${
ENABLE_CLUSTER_UI
:-
false
}
'"
echo
"readonly ENABLE_CLUSTER_UI='
${
ENABLE_CLUSTER_UI
:-
false
}
'"
echo
"readonly ENABLE_EXPERIMENTAL_API='
${
ENABLE_EXPERIMENTAL_API
:-
false
}
'"
echo
"readonly RUNTIME_CONFIG='
${
RUNTIME_CONFIG
}
'"
echo
"readonly RUNTIME_CONFIG='
${
RUNTIME_CONFIG
}
'"
echo
"readonly DNS_REPLICAS='
${
DNS_REPLICAS
:-}
'"
echo
"readonly DNS_REPLICAS='
${
DNS_REPLICAS
:-}
'"
echo
"readonly DNS_SERVER_IP='
${
DNS_SERVER_IP
:-}
'"
echo
"readonly DNS_SERVER_IP='
${
DNS_SERVER_IP
:-}
'"
...
@@ -1433,3 +1415,25 @@ function get-tokens() {
...
@@ -1433,3 +1415,25 @@ function get-tokens() {
KUBELET_TOKEN
=
$(
dd
if
=
/dev/urandom
bs
=
128
count
=
1 2>/dev/null |
base64
|
tr
-d
"=+/"
|
dd
bs
=
32
count
=
1 2>/dev/null
)
KUBELET_TOKEN
=
$(
dd
if
=
/dev/urandom
bs
=
128
count
=
1 2>/dev/null |
base64
|
tr
-d
"=+/"
|
dd
bs
=
32
count
=
1 2>/dev/null
)
KUBE_PROXY_TOKEN
=
$(
dd
if
=
/dev/urandom
bs
=
128
count
=
1 2>/dev/null |
base64
|
tr
-d
"=+/"
|
dd
bs
=
32
count
=
1 2>/dev/null
)
KUBE_PROXY_TOKEN
=
$(
dd
if
=
/dev/urandom
bs
=
128
count
=
1 2>/dev/null |
base64
|
tr
-d
"=+/"
|
dd
bs
=
32
count
=
1 2>/dev/null
)
}
}
# Builds the RUNTIME_CONFIG var from other feature enable options
function
build-runtime-config
()
{
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/deployments=true"
else
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1/deployments=true"
;
then
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/deployments=true"
fi
fi
fi
if
[[
"
${
ENABLE_DAEMONSETS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/daemonsets=true"
else
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1/daemonsets=true"
;
then
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/daemonsets=true"
fi
fi
fi
}
cluster/gce/config-default.sh
View file @
b873dce2
...
@@ -44,8 +44,6 @@ MINION_TAG="${INSTANCE_PREFIX}-minion"
...
@@ -44,8 +44,6 @@ MINION_TAG="${INSTANCE_PREFIX}-minion"
MASTER_IP_RANGE
=
"
${
MASTER_IP_RANGE
:-
10
.246.0.0/24
}
"
MASTER_IP_RANGE
=
"
${
MASTER_IP_RANGE
:-
10
.246.0.0/24
}
"
CLUSTER_IP_RANGE
=
"
${
CLUSTER_IP_RANGE
:-
10
.244.0.0/16
}
"
CLUSTER_IP_RANGE
=
"
${
CLUSTER_IP_RANGE
:-
10
.244.0.0/16
}
"
MINION_SCOPES
=
"
${
MINION_SCOPES
:-
compute
-rw,monitoring,logging-write,storage-ro
}
"
MINION_SCOPES
=
"
${
MINION_SCOPES
:-
compute
-rw,monitoring,logging-write,storage-ro
}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
ENABLE_EXPERIMENTAL_API
=
"
${
KUBE_ENABLE_EXPERIMENTAL_API
:-
false
}
"
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
POLL_SLEEP_INTERVAL
=
"
${
POLL_SLEEP_INTERVAL
:-
3
}
"
POLL_SLEEP_INTERVAL
=
"
${
POLL_SLEEP_INTERVAL
:-
3
}
"
...
@@ -77,6 +75,13 @@ if [[ ${KUBE_ENABLE_INSECURE_REGISTRY:-false} == "true" ]]; then
...
@@ -77,6 +75,13 @@ if [[ ${KUBE_ENABLE_INSECURE_REGISTRY:-false} == "true" ]]; then
EXTRA_DOCKER_OPTS
=
"--insecure-registry 10.0.0.0/8"
EXTRA_DOCKER_OPTS
=
"--insecure-registry 10.0.0.0/8"
fi
fi
# Optional: customize runtime config
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
# Optional: enable v1beta1 related features
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-}
"
ENABLE_DAEMONSETS
=
"
${
KUBE_ENABLE_DAEMONSETS
:-}
"
# Optional: Install cluster DNS.
# Optional: Install cluster DNS.
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
DNS_SERVER_IP
=
"10.0.0.10"
DNS_SERVER_IP
=
"10.0.0.10"
...
@@ -101,17 +106,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
...
@@ -101,17 +106,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
ENABLE_CLUSTER_MONITORING
=
googleinfluxdb
ENABLE_CLUSTER_MONITORING
=
googleinfluxdb
fi
fi
# Optional: Enable deployment experimental feature, not ready for production use.
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-
false
}
"
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
ENABLE_EXPERIMENTAL_API
=
true
fi
# Optional: Enable daemonset experimental feature, not ready for production use.
ENABLE_DAEMONSETS
=
"
${
KUBE_ENABLE_DAEMONSETS
:-
false
}
"
if
[[
"
${
ENABLE_DAEMONSETS
}
"
==
"true"
]]
;
then
ENABLE_EXPERIMENTAL_API
=
true
fi
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,ResourceQuota
...
...
cluster/gce/config-test.sh
View file @
b873dce2
...
@@ -46,9 +46,12 @@ CLUSTER_IP_RANGE="${CLUSTER_IP_RANGE:-10.245.0.0/16}"
...
@@ -46,9 +46,12 @@ CLUSTER_IP_RANGE="${CLUSTER_IP_RANGE:-10.245.0.0/16}"
MASTER_IP_RANGE
=
"
${
MASTER_IP_RANGE
:-
10
.246.0.0/24
}
"
MASTER_IP_RANGE
=
"
${
MASTER_IP_RANGE
:-
10
.246.0.0/24
}
"
MINION_SCOPES
=
"
${
MINION_SCOPES
:-
compute
-rw,monitoring,logging-write,storage-ro
}
"
MINION_SCOPES
=
"
${
MINION_SCOPES
:-
compute
-rw,monitoring,logging-write,storage-ro
}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
ENABLE_EXPERIMENTAL_API
=
"
${
KUBE_ENABLE_EXPERIMENTAL_API
:-
true
}
"
TERMINATED_POD_GC_THRESHOLD
=
${
TERMINATED_POD_GC_THRESHOLD
:-
100
}
TERMINATED_POD_GC_THRESHOLD
=
${
TERMINATED_POD_GC_THRESHOLD
:-
100
}
# Optional: enable v1beta1 related features
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-
true
}
"
ENABLE_DAEMONSETS
=
"
${
KUBE_ENABLE_DAEMONSETS
:-
true
}
"
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
POLL_SLEEP_INTERVAL
=
3
POLL_SLEEP_INTERVAL
=
3
SERVICE_CLUSTER_IP_RANGE
=
"10.0.0.0/16"
# formerly PORTAL_NET
SERVICE_CLUSTER_IP_RANGE
=
"10.0.0.0/16"
# formerly PORTAL_NET
...
@@ -110,18 +113,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
...
@@ -110,18 +113,6 @@ if [[ "${ENABLE_NODE_AUTOSCALER}" == "true" ]]; then
TARGET_NODE_UTILIZATION
=
"
${
KUBE_TARGET_NODE_UTILIZATION
:-
0
.7
}
"
TARGET_NODE_UTILIZATION
=
"
${
KUBE_TARGET_NODE_UTILIZATION
:-
0
.7
}
"
fi
fi
# Optional: Enable deployment experimental feature, not ready for production use.
ENABLE_DEPLOYMENTS
=
"
${
KUBE_ENABLE_DEPLOYMENTS
:-
true
}
"
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
ENABLE_EXPERIMENTAL_API
=
true
fi
# Optional: Enable daemonset experimental feature, not ready for production use.
ENABLE_DAEMONSETS
=
"
${
KUBE_ENABLE_DAEMONSETS
:-
true
}
"
if
[[
"
${
ENABLE_DAEMONSETS
}
"
==
"true"
]]
;
then
ENABLE_EXPERIMENTAL_API
=
true
fi
ADMISSION_CONTROL
=
"
${
KUBE_ADMISSION_CONTROL
:-
NamespaceLifecycle
,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
}
"
ADMISSION_CONTROL
=
"
${
KUBE_ADMISSION_CONTROL
:-
NamespaceLifecycle
,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
}
"
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
...
...
cluster/gce/configure-vm.sh
View file @
b873dce2
...
@@ -322,11 +322,6 @@ cluster_registry_disk_size: $(convert-bytes-gce-kube ${CLUSTER_REGISTRY_DISK_SIZ
...
@@ -322,11 +322,6 @@ cluster_registry_disk_size: $(convert-bytes-gce-kube ${CLUSTER_REGISTRY_DISK_SIZ
cluster_registry_disk_name:
${
CLUSTER_REGISTRY_DISK
}
cluster_registry_disk_name:
${
CLUSTER_REGISTRY_DISK
}
EOF
EOF
fi
fi
if
[
-n
"
${
ENABLE_EXPERIMENTAL_API
:-}
"
]
;
then
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
enable_experimental_api: '
$(
echo
"
$ENABLE_EXPERIMENTAL_API
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
if
[
-n
"
${
TERMINATED_POD_GC_THRESHOLD
:-}
"
]
;
then
if
[
-n
"
${
TERMINATED_POD_GC_THRESHOLD
:-}
"
]
;
then
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
terminated_pod_gc_threshold: '
$(
echo
"
${
TERMINATED_POD_GC_THRESHOLD
}
"
|
sed
-e
"s/'/''/g"
)
'
terminated_pod_gc_threshold: '
$(
echo
"
${
TERMINATED_POD_GC_THRESHOLD
}
"
|
sed
-e
"s/'/''/g"
)
'
...
...
cluster/gce/coreos/helper.sh
View file @
b873dce2
...
@@ -58,7 +58,6 @@ KUBELET_TOKEN: $(yaml-quote ${KUBELET_TOKEN:-})
...
@@ -58,7 +58,6 @@ KUBELET_TOKEN: $(yaml-quote ${KUBELET_TOKEN:-})
KUBE_PROXY_TOKEN:
$(
yaml-quote
${
KUBE_PROXY_TOKEN
:-})
KUBE_PROXY_TOKEN:
$(
yaml-quote
${
KUBE_PROXY_TOKEN
:-})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
MASTER_IP_RANGE:
$(
yaml-quote
${
MASTER_IP_RANGE
})
MASTER_IP_RANGE:
$(
yaml-quote
${
MASTER_IP_RANGE
})
ENABLE_EXPERIMENTAL_API:
$(
yaml-quote
${
ENABLE_EXPERIMENTAL_API
})
RUNTIME_CONFIG:
$(
yaml-quote
${
RUNTIME_CONFIG
})
RUNTIME_CONFIG:
$(
yaml-quote
${
RUNTIME_CONFIG
})
KUBERNETES_MASTER_NAME:
$(
yaml-quote
${
MASTER_NAME
})
KUBERNETES_MASTER_NAME:
$(
yaml-quote
${
MASTER_NAME
})
KUBERNETES_CONTAINER_RUNTIME:
$(
yaml-quote
${
CONTAINER_RUNTIME
})
KUBERNETES_CONTAINER_RUNTIME:
$(
yaml-quote
${
CONTAINER_RUNTIME
})
...
...
cluster/gce/debian/helper.sh
View file @
b873dce2
...
@@ -54,7 +54,6 @@ KUBELET_TOKEN: $(yaml-quote ${KUBELET_TOKEN:-})
...
@@ -54,7 +54,6 @@ KUBELET_TOKEN: $(yaml-quote ${KUBELET_TOKEN:-})
KUBE_PROXY_TOKEN:
$(
yaml-quote
${
KUBE_PROXY_TOKEN
:-})
KUBE_PROXY_TOKEN:
$(
yaml-quote
${
KUBE_PROXY_TOKEN
:-})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
MASTER_IP_RANGE:
$(
yaml-quote
${
MASTER_IP_RANGE
})
MASTER_IP_RANGE:
$(
yaml-quote
${
MASTER_IP_RANGE
})
ENABLE_EXPERIMENTAL_API:
$(
yaml-quote
${
ENABLE_EXPERIMENTAL_API
})
RUNTIME_CONFIG:
$(
yaml-quote
${
RUNTIME_CONFIG
})
RUNTIME_CONFIG:
$(
yaml-quote
${
RUNTIME_CONFIG
})
CA_CERT:
$(
yaml-quote
${
CA_CERT_BASE64
:-})
CA_CERT:
$(
yaml-quote
${
CA_CERT_BASE64
:-})
KUBELET_CERT:
$(
yaml-quote
${
KUBELET_CERT_BASE64
:-})
KUBELET_CERT:
$(
yaml-quote
${
KUBELET_CERT_BASE64
:-})
...
...
cluster/gce/util.sh
View file @
b873dce2
...
@@ -1234,29 +1234,22 @@ function prepare-e2e() {
...
@@ -1234,29 +1234,22 @@ function prepare-e2e() {
# Builds the RUNTIME_CONFIG var from other feature enable options
# Builds the RUNTIME_CONFIG var from other feature enable options
function
build-runtime-config
()
{
function
build-runtime-config
()
{
if
[[
"
${
ENABLE_EXPERIMENTAL_API
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1=true"
else
# TODO: add checking if RUNTIME_CONFIG contains "extensions/v1beta1=false" and appending "extensions/v1beta1=true" if not.
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1=true"
;
then
echo
"Experimental API should be turned on, but is not turned on in RUNTIME_CONFIG!"
>
&2
exit
1
fi
fi
fi
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/deployments=true"
RUNTIME_CONFIG
=
"extensions/v1beta1/deployments=true"
else
else
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/deployments=true"
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1/deployments=true"
;
then
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/deployments=true"
fi
fi
fi
fi
fi
if
[[
"
${
ENABLE_DAEMONSETS
}
"
==
"true"
]]
;
then
if
[[
"
${
ENABLE_DAEMONSETS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/daemonsets=true"
RUNTIME_CONFIG
=
"extensions/v1beta1/daemonsets=true"
else
else
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/daemonsets=true"
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1/daemonsets=true"
;
then
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/daemonsets=true"
fi
fi
fi
fi
fi
}
}
cluster/kubemark/config-default.sh
View file @
b873dce2
...
@@ -39,7 +39,6 @@ MASTER_TAG="kubemark-master"
...
@@ -39,7 +39,6 @@ MASTER_TAG="kubemark-master"
MASTER_IP_RANGE
=
"
${
MASTER_IP_RANGE
:-
10
.246.0.0/24
}
"
MASTER_IP_RANGE
=
"
${
MASTER_IP_RANGE
:-
10
.246.0.0/24
}
"
CLUSTER_IP_RANGE
=
"
${
CLUSTER_IP_RANGE
:-
10
.244.0.0/16
}
"
CLUSTER_IP_RANGE
=
"
${
CLUSTER_IP_RANGE
:-
10
.244.0.0/16
}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
RUNTIME_CONFIG
=
"
${
KUBE_RUNTIME_CONFIG
:-}
"
ENABLE_EXPERIMENTAL_API
=
"
${
KUBE_ENABLE_EXPERIMENTAL_API
:-
false
}
"
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
# Increase the sleep interval value if concerned about API rate limits. 3, in seconds, is the default.
POLL_SLEEP_INTERVAL
=
3
POLL_SLEEP_INTERVAL
=
3
...
...
cluster/vagrant/config-default.sh
View file @
b873dce2
...
@@ -55,9 +55,6 @@ MASTER_PASSWD=vagrant
...
@@ -55,9 +55,6 @@ MASTER_PASSWD=vagrant
# Admission Controllers to invoke prior to persisting objects in cluster
# Admission Controllers to invoke prior to persisting objects in cluster
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
# Optional: Enable experimental API features
ENABLE_EXPERIMENTAL_API
=
"
${
KUBE_ENABLE_EXPERIMENTAL_API
:-
true
}
"
# Optional: Enable node logging.
# Optional: Enable node logging.
ENABLE_NODE_LOGGING
=
false
ENABLE_NODE_LOGGING
=
false
LOGGING_DESTINATION
=
elasticsearch
LOGGING_DESTINATION
=
elasticsearch
...
...
cluster/vagrant/util.sh
View file @
b873dce2
...
@@ -34,18 +34,6 @@ function detect-minions {
...
@@ -34,18 +34,6 @@ function detect-minions {
# Verify prereqs on host machine Also sets exports USING_KUBE_SCRIPTS=true so
# Verify prereqs on host machine Also sets exports USING_KUBE_SCRIPTS=true so
# that our Vagrantfile doesn't error out.
# that our Vagrantfile doesn't error out.
function
verify-prereqs
{
function
verify-prereqs
{
if
[[
"
${
ENABLE_EXPERIMENTAL_API
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1"
else
# TODO: add checking if RUNTIME_CONFIG contains "experimental/v1=false" and appending "experimental/v1=true" if not.
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1=true"
;
then
echo
"Experimental API should be turned on, but is not turned on in RUNTIME_CONFIG!"
exit
1
fi
fi
fi
for
x
in
vagrant
;
do
for
x
in
vagrant
;
do
if
!
which
"
$x
"
>
/dev/null
;
then
if
!
which
"
$x
"
>
/dev/null
;
then
echo
"Can't find
$x
in PATH, please fix and retry."
echo
"Can't find
$x
in PATH, please fix and retry."
...
...
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