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
679afea3
Commit
679afea3
authored
Aug 10, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
etcd3 support
parent
ccb9b2af
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
2 deletions
+20
-2
common.sh
cluster/common.sh
+1
-0
config-default.sh
cluster/gce/config-default.sh
+3
-0
config-test.sh
cluster/gce/config-test.sh
+3
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+1
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+3
-0
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+3
-0
kube-apiserver.manifest
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest
+5
-1
exceptions.txt
hack/verify-flags/exceptions.txt
+1
-1
No files found.
cluster/common.sh
View file @
679afea3
...
...
@@ -644,6 +644,7 @@ ENABLE_MANIFEST_URL: $(yaml-quote ${ENABLE_MANIFEST_URL:-false})
MANIFEST_URL:
$(
yaml-quote
${
MANIFEST_URL
:-})
MANIFEST_URL_HEADER:
$(
yaml-quote
${
MANIFEST_URL_HEADER
:-})
NUM_NODES:
$(
yaml-quote
${
NUM_NODES
})
STORAGE_BACKEND:
$(
yaml-quote
${
STORAGE_BACKEND
:-})
ENABLE_GARBAGE_COLLECTOR:
$(
yaml-quote
${
ENABLE_GARBAGE_COLLECTOR
:-
false
})
EOF
if
[
-n
"
${
APISERVER_TEST_ARGS
:-}
"
]
;
then
...
...
cluster/gce/config-default.sh
View file @
679afea3
...
...
@@ -135,6 +135,9 @@ ADMISSION_CONTROL=NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolume
# Optional: if set to true kube-up will automatically check for existing resources and clean them up.
KUBE_UP_AUTOMATIC_CLEANUP
=
${
KUBE_UP_AUTOMATIC_CLEANUP
:-
false
}
# Storage backend. 'etcd2' supported, 'etcd3' experimental.
STORAGE_BACKEND
=
${
STORAGE_BACKEND
:-
etcd2
}
# Networking plugin specific settings.
NETWORK_PROVIDER
=
"
${
NETWORK_PROVIDER
:-
kubenet
}
"
# none, opencontrail, flannel, kubenet
OPENCONTRAIL_TAG
=
"
${
OPENCONTRAIL_TAG
:-
R2
.20
}
"
...
...
cluster/gce/config-test.sh
View file @
679afea3
...
...
@@ -160,6 +160,9 @@ KUBE_UP_AUTOMATIC_CLEANUP=${KUBE_UP_AUTOMATIC_CLEANUP:-false}
# is only supported in trusty or GCI.
TEST_CLUSTER
=
"
${
TEST_CLUSTER
:-
true
}
"
# Storage backend. 'etcd2' supported, 'etcd3' experimental.
STORAGE_BACKEND
=
${
STORAGE_BACKEND
:-
etcd2
}
# OpenContrail networking plugin specific settings
NETWORK_PROVIDER
=
"
${
NETWORK_PROVIDER
:-
kubenet
}
"
# none, opencontrail, flannel, kubenet
OPENCONTRAIL_TAG
=
"
${
OPENCONTRAIL_TAG
:-
R2
.20
}
"
...
...
cluster/gce/configure-vm.sh
View file @
679afea3
...
...
@@ -442,6 +442,7 @@ dns_replicas: '$(echo "$DNS_REPLICAS" | sed -e "s/'/''/g")'
dns_server: '
$(
echo
"
$DNS_SERVER_IP
"
|
sed
-e
"s/'/''/g"
)
'
dns_domain: '
$(
echo
"
$DNS_DOMAIN
"
|
sed
-e
"s/'/''/g"
)
'
admission_control: '
$(
echo
"
$ADMISSION_CONTROL
"
|
sed
-e
"s/'/''/g"
)
'
storage_backend: '
$(
echo
"
$STORAGE_BACKEND
"
|
sed
-e
"s/'/''/g"
)
'
network_provider: '
$(
echo
"
$NETWORK_PROVIDER
"
|
sed
-e
"s/'/''/g"
)
'
prepull_e2e_images: '
$(
echo
"
$PREPULL_E2E_IMAGES
"
|
sed
-e
"s/'/''/g"
)
'
hairpin_mode: '
$(
echo
"
$HAIRPIN_MODE
"
|
sed
-e
"s/'/''/g"
)
'
...
...
cluster/gce/gci/configure-helper.sh
View file @
679afea3
...
...
@@ -632,6 +632,9 @@ function start-kube-apiserver {
params+
=
" --tls-cert-file=/etc/srv/kubernetes/server.cert"
params+
=
" --tls-private-key-file=/etc/srv/kubernetes/server.key"
params+
=
" --token-auth-file=/etc/srv/kubernetes/known_tokens.csv"
if
[[
-n
"
${
STORAGE_BACKEND
:-}
"
]]
;
then
params+
=
" --storage-backend=
${
STORAGE_BACKEND
}
"
fi
if
[[
-n
"
${
ENABLE_GARBAGE_COLLECTOR
:-}
"
]]
;
then
params+
=
" --enable-garbage-collector=
${
ENABLE_GARBAGE_COLLECTOR
}
"
fi
...
...
cluster/gce/trusty/configure-helper.sh
View file @
679afea3
...
...
@@ -519,6 +519,9 @@ start_kube_apiserver() {
params
=
"
${
params
}
--authorization-policy-file=/etc/srv/kubernetes/abac-authz-policy.jsonl"
params
=
"
${
params
}
--etcd-servers-overrides=/events#http://127.0.0.1:4002"
if
[[
-n
"
${
STORAGE_BACKEND
:-}
"
]]
;
then
params
=
"
${
params
}
--storage-backend=
${
STORAGE_BACKEND
}
"
fi
if
[
-n
"
${
NUM_NODES
:-}
"
]
;
then
# Set amount of memory available for apiserver based on number of nodes.
# TODO: Once we start setting proper requests and limits for apiserver
...
...
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest
View file @
679afea3
...
...
@@ -54,6 +54,10 @@
{% set bind_address = "--bind-address=" + grains.publicAddressOverride -%}
{% endif -%}
{% set storage_backend = "" -%}
{% if pillar['storage_backend'] is defined -%}
{% set storage_backend = "--storage-backend=" + pillar['storage_backend'] -%}
{% endif -%}
{% set etcd_servers = "--etcd-servers=http://127.0.0.1:4001" -%}
{% set etcd_servers_overrides = "--etcd-servers-overrides=/events#http://127.0.0.1:4002" -%}
...
...
@@ -136,7 +140,7 @@
{% set enable_garbage_collector = "--enable-garbage-collector=" + pillar['enable_garbage_collector'] -%}
{% endif -%}
{% set params = address + " " + etcd_servers + " " + etcd_servers_overrides + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + admission_control + " " + target_ram_mb + " " + service_cluster_ip_range + " " + client_ca_file + basic_auth_file + " " + min_request_timeout + " " + enable_garbage_collector -%}
{% set params = address + " " +
storage_backend + " " +
etcd_servers + " " + etcd_servers_overrides + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + admission_control + " " + target_ram_mb + " " + service_cluster_ip_range + " " + client_ca_file + basic_auth_file + " " + min_request_timeout + " " + enable_garbage_collector -%}
{% set params = params + " " + cert_file + " " + key_file + " --secure-port=" + secure_port + token_auth_file + " " + bind_address + " " + log_level + " " + advertise_address + " " + proxy_ssh_options + authz_mode + abac_policy_file + webhook_authentication_config + webhook_authorization_config -%}
# test_args has to be kept at the end, so they'll overwrite any prior configuration
...
...
hack/verify-flags/exceptions.txt
View file @
679afea3
...
...
@@ -39,7 +39,7 @@ cluster/rackspace/util.sh: local node_ip=$(nova show --minimal ${NODE_NAMES[$
cluster/saltbase/salt/cluster-autoscaler/cluster-autoscaler.manifest:{% set params = pillar['autoscaler_mig_config'] + " " + cloud_config -%}
cluster/saltbase/salt/kube-admission-controls/init.sls:{% if 'LimitRanger' in pillar.get('admission_control', '') %}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set enable_garbage_collector = pillar['enable_garbage_collector'] -%}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set params = address + " " + etcd_servers + " " + etcd_servers_overrides + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + admission_control + " " + target_ram_mb + " " + service_cluster_ip_range + " " + client_ca_file + basic_auth_file + " " + min_request_timeout + " " + enable_garbage_collector -%}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set params = address + " " +
storage_backend + " " +
etcd_servers + " " + etcd_servers_overrides + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + admission_control + " " + target_ram_mb + " " + service_cluster_ip_range + " " + client_ca_file + basic_auth_file + " " + min_request_timeout + " " + enable_garbage_collector -%}
cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest:{% set enable_garbage_collector = pillar['enable_garbage_collector'] -%}
cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest:{% set params = "--master=127.0.0.1:8080" + " " + cluster_name + " " + cluster_cidr + " " + allocate_node_cidrs + " " + service_cluster_ip_range + " " + terminated_pod_gc + " " + enable_garbage_collector + " " + cloud_provider + " " + cloud_config + " " + service_account_key + " " + log_level + " " + root_ca_file -%}
cluster/saltbase/salt/kube-proxy/kube-proxy.manifest: {% set api_servers_with_port = api_servers + ":6443" -%}
...
...
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