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
039acb8c
Commit
039acb8c
authored
Sep 25, 2015
by
Marcin Wielgus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14463 from nikhiljindal/DeploymentOnGCE
Allow enabling deployment controller on GCE and GKE
parents
aab1cdfc
ed5d24ed
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
2 deletions
+25
-2
config-default.sh
cluster/gce/config-default.sh
+6
-0
config-test.sh
cluster/gce/config-test.sh
+6
-0
configure-vm.sh
cluster/gce/configure-vm.sh
+5
-0
helper.sh
cluster/gce/coreos/helper.sh
+1
-0
helper.sh
cluster/gce/debian/helper.sh
+1
-0
kube-controller-manager.manifest
.../kube-controller-manager/kube-controller-manager.manifest
+5
-1
exceptions.txt
hack/verify-flags/exceptions.txt
+1
-1
No files found.
cluster/gce/config-default.sh
View file @
039acb8c
...
@@ -103,6 +103,12 @@ if [[ "${ENABLE_HORIZONTAL_POD_AUTOSCALER}" == "true" ]]; then
...
@@ -103,6 +103,12 @@ if [[ "${ENABLE_HORIZONTAL_POD_AUTOSCALER}" == "true" ]]; then
ENABLE_EXPERIMENTAL_API
=
true
ENABLE_EXPERIMENTAL_API
=
true
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,DenyEscalatingExec,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DenyEscalatingExec,ResourceQuota
...
...
cluster/gce/config-test.sh
View file @
039acb8c
...
@@ -111,6 +111,12 @@ if [[ "${ENABLE_HORIZONTAL_POD_AUTOSCALER}" == "true" ]]; then
...
@@ -111,6 +111,12 @@ if [[ "${ENABLE_HORIZONTAL_POD_AUTOSCALER}" == "true" ]]; then
ENABLE_EXPERIMENTAL_API
=
true
ENABLE_EXPERIMENTAL_API
=
true
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_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DenyEscalatingExec,ResourceQuota
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,DenyEscalatingExec,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 @
039acb8c
...
@@ -317,6 +317,11 @@ EOF
...
@@ -317,6 +317,11 @@ EOF
enable_horizontal_pod_autoscaler: '
$(
echo
"
$ENABLE_HORIZONTAL_POD_AUTOSCALER
"
|
sed
-e
"s/'/''/g"
)
'
enable_horizontal_pod_autoscaler: '
$(
echo
"
$ENABLE_HORIZONTAL_POD_AUTOSCALER
"
|
sed
-e
"s/'/''/g"
)
'
EOF
EOF
fi
fi
if
[
-n
"
${
ENABLE_DEPLOYMENTS
:-}
"
]
;
then
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
enable_deployments: '
$(
echo
"
$ENABLE_DEPLOYMENTS
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
}
}
# The job of this function is simple, but the basic regular expression syntax makes
# The job of this function is simple, but the basic regular expression syntax makes
...
...
cluster/gce/coreos/helper.sh
View file @
039acb8c
...
@@ -57,6 +57,7 @@ KUBE_PROXY_TOKEN: $(yaml-quote ${KUBE_PROXY_TOKEN:-})
...
@@ -57,6 +57,7 @@ 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_HORIZONTAL_POD_AUTOSCALER:
$(
yaml-quote
${
ENABLE_HORIZONTAL_POD_AUTOSCALER
})
ENABLE_HORIZONTAL_POD_AUTOSCALER:
$(
yaml-quote
${
ENABLE_HORIZONTAL_POD_AUTOSCALER
})
ENABLE_DEPLOYMENTS:
$(
yaml-quote
${
ENABLE_DEPLOYMENTS
})
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 @
039acb8c
...
@@ -52,6 +52,7 @@ KUBE_PROXY_TOKEN: $(yaml-quote ${KUBE_PROXY_TOKEN:-})
...
@@ -52,6 +52,7 @@ 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_HORIZONTAL_POD_AUTOSCALER:
$(
yaml-quote
${
ENABLE_HORIZONTAL_POD_AUTOSCALER
})
ENABLE_HORIZONTAL_POD_AUTOSCALER:
$(
yaml-quote
${
ENABLE_HORIZONTAL_POD_AUTOSCALER
})
ENABLE_DEPLOYMENTS:
$(
yaml-quote
${
ENABLE_DEPLOYMENTS
})
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/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest
View file @
039acb8c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
{% set cluster_cidr = "" -%}
{% set cluster_cidr = "" -%}
{% set allocate_node_cidrs = "" -%}
{% set allocate_node_cidrs = "" -%}
{% set enable_horizontal_pod_autoscaler = "" -%}
{% set enable_horizontal_pod_autoscaler = "" -%}
{% set enable_deployments = "" -%}
{% if pillar['instance_prefix'] is defined -%}
{% if pillar['instance_prefix'] is defined -%}
{% set cluster_name = "--cluster-name=" + pillar['instance_prefix'] -%}
{% set cluster_name = "--cluster-name=" + pillar['instance_prefix'] -%}
...
@@ -15,6 +16,9 @@
...
@@ -15,6 +16,9 @@
{% if pillar['enable_horizontal_pod_autoscaler'] is defined -%}
{% if pillar['enable_horizontal_pod_autoscaler'] is defined -%}
{% set enable_horizontal_pod_autoscaler = "--enable-horizontal-pod-autoscaler=" + pillar['enable_horizontal_pod_autoscaler'] -%}
{% set enable_horizontal_pod_autoscaler = "--enable-horizontal-pod-autoscaler=" + pillar['enable_horizontal_pod_autoscaler'] -%}
{% endif -%}
{% endif -%}
{% if pillar['enable_deployments'] is defined -%}
{% set enable_deployments = "--enable-deployment-controller=" + pillar['enable_deployments'] -%}
{% endif -%}
{% set cloud_provider = "" -%}
{% set cloud_provider = "" -%}
{% set cloud_config = "" -%}
{% set cloud_config = "" -%}
...
@@ -38,7 +42,7 @@
...
@@ -38,7 +42,7 @@
{% set root_ca_file = "--root-ca-file=/srv/kubernetes/ca.crt" -%}
{% set root_ca_file = "--root-ca-file=/srv/kubernetes/ca.crt" -%}
{% endif -%}
{% endif -%}
{% set params = "--master=127.0.0.1:8080" + " " + cluster_name + " " + cluster_cidr + " " + allocate_node_cidrs + " " + enable_horizontal_pod_autoscaler + " " + cloud_provider + " " + cloud_config + service_account_key + pillar['log_level'] + " " + root_ca_file -%}
{% set params = "--master=127.0.0.1:8080" + " " + cluster_name + " " + cluster_cidr + " " + allocate_node_cidrs + " " + enable_horizontal_pod_autoscaler + " " +
enable_deployments + " " +
cloud_provider + " " + cloud_config + service_account_key + pillar['log_level'] + " " + root_ca_file -%}
# test_args has to be kept at the end, so they'll overwrite any prior configuration
# test_args has to be kept at the end, so they'll overwrite any prior configuration
{% if pillar['controller_manager_test_args'] is defined -%}
{% if pillar['controller_manager_test_args'] is defined -%}
...
...
hack/verify-flags/exceptions.txt
View file @
039acb8c
...
@@ -38,7 +38,7 @@ cluster/saltbase/salt/kube-addons/kube-addons.sh:# Create admission_control obje
...
@@ -38,7 +38,7 @@ cluster/saltbase/salt/kube-addons/kube-addons.sh:# Create admission_control obje
cluster/saltbase/salt/kube-admission-controls/init.sls:{% if 'LimitRanger' in pillar.get('admission_control', '') %}
cluster/saltbase/salt/kube-admission-controls/init.sls:{% if 'LimitRanger' in pillar.get('admission_control', '') %}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set params = address + " " + etcd_servers + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + admission_control + " " + service_cluster_ip_range + " " + client_ca_file + " " + basic_auth_file + " " + min_request_timeout -%}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set params = address + " " + etcd_servers + " " + cloud_provider + " " + cloud_config + " " + runtime_config + " " + admission_control + " " + service_cluster_ip_range + " " + client_ca_file + " " + basic_auth_file + " " + min_request_timeout -%}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set params = params + " " + cluster_name + " " + cert_file + " " + key_file + " --secure-port=" + secure_port + " " + token_auth_file + " " + bind_address + " " + pillar['log_level'] + " " + advertise_address + " " + proxy_ssh_options -%}
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest:{% set params = params + " " + cluster_name + " " + cert_file + " " + key_file + " --secure-port=" + secure_port + " " + token_auth_file + " " + bind_address + " " + pillar['log_level'] + " " + advertise_address + " " + proxy_ssh_options -%}
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 + " " + enable_horizontal_pod_autoscaler
+ " " + cloud_provider + " " + cloud_config + service_account_key + pillar['log_level'] + " " + root_ca_file -%}
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 + " " + enable_horizontal_pod_autoscaler + " " + enable_deployments
+ " " + cloud_provider + " " + cloud_config + service_account_key + pillar['log_level'] + " " + root_ca_file -%}
cluster/saltbase/salt/kube-proxy/default: {% set api_servers_with_port = api_servers -%}
cluster/saltbase/salt/kube-proxy/default: {% set api_servers_with_port = api_servers -%}
cluster/saltbase/salt/kube-proxy/default: {% set api_servers_with_port = api_servers + ":6443" -%}
cluster/saltbase/salt/kube-proxy/default: {% set api_servers_with_port = api_servers + ":6443" -%}
cluster/saltbase/salt/kube-proxy/default: {% set api_servers_with_port = api_servers + ":7080" -%}
cluster/saltbase/salt/kube-proxy/default: {% set api_servers_with_port = api_servers + ":7080" -%}
...
...
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