Trusty deployment

This commit is contained in:
Prashanth Balasubramanian 2016-05-28 16:24:40 -07:00
parent e2b980b3e6
commit c01a0583f7
3 changed files with 20 additions and 11 deletions

View File

@ -926,6 +926,7 @@ function kube::release::package_kube_manifests_tarball() {
cp "${salt_dir}/kube-apiserver/abac-authz-policy.jsonl" "${dst_dir}" cp "${salt_dir}/kube-apiserver/abac-authz-policy.jsonl" "${dst_dir}"
cp "${salt_dir}/kube-controller-manager/kube-controller-manager.manifest" "${dst_dir}" cp "${salt_dir}/kube-controller-manager/kube-controller-manager.manifest" "${dst_dir}"
cp "${salt_dir}/kube-addons/kube-addon-manager.yaml" "${dst_dir}" cp "${salt_dir}/kube-addons/kube-addon-manager.yaml" "${dst_dir}"
cp "${salt_dir}/l7-gcp/glbc.manifest" "${dst_dir}"
cp "${KUBE_ROOT}/cluster/gce/trusty/configure-helper.sh" "${dst_dir}/trusty-configure-helper.sh" cp "${KUBE_ROOT}/cluster/gce/trusty/configure-helper.sh" "${dst_dir}/trusty-configure-helper.sh"
cp "${KUBE_ROOT}/cluster/gce/gci/configure-helper.sh" "${dst_dir}/gci-configure-helper.sh" cp "${KUBE_ROOT}/cluster/gce/gci/configure-helper.sh" "${dst_dir}/gci-configure-helper.sh"
cp "${KUBE_ROOT}/cluster/gce/gci/health-monitor.sh" "${dst_dir}/health-monitor.sh" cp "${KUBE_ROOT}/cluster/gce/gci/health-monitor.sh" "${dst_dir}/health-monitor.sh"

View File

@ -558,7 +558,6 @@ function start-kube-apiserver {
function start-kube-controller-manager { function start-kube-controller-manager {
echo "Start kubernetes controller-manager" echo "Start kubernetes controller-manager"
prepare-log-file /var/log/kube-controller-manager.log prepare-log-file /var/log/kube-controller-manager.log
# Calculate variables and assemble the command line. # Calculate variables and assemble the command line.
local params="${CONTROLLER_MANAGER_TEST_LOG_LEVEL:-"--v=2"} ${CONTROLLER_MANAGER_TEST_ARGS:-}" local params="${CONTROLLER_MANAGER_TEST_LOG_LEVEL:-"--v=2"} ${CONTROLLER_MANAGER_TEST_ARGS:-}"
params+=" --cloud-provider=gce" params+=" --cloud-provider=gce"
@ -706,9 +705,6 @@ function start-kube-addons {
fi fi
if [[ "${ENABLE_L7_LOADBALANCING:-}" == "glbc" ]]; then if [[ "${ENABLE_L7_LOADBALANCING:-}" == "glbc" ]]; then
setup-addon-manifests "addons" "cluster-loadbalancing/glbc" setup-addon-manifests "addons" "cluster-loadbalancing/glbc"
local -r glbc_yaml="${dst_dir}/cluster-loadbalancing/glbc/glbc.yaml"
remove-salt-config-comments "${glbc_yaml}"
sed -i -e "s@{{ *kube_uid *}}@${KUBE_UID:-}@g" "${glbc_yaml}"
fi fi
if [[ "${ENABLE_CLUSTER_DNS:-}" == "true" ]]; then if [[ "${ENABLE_CLUSTER_DNS:-}" == "true" ]]; then
setup-addon-manifests "addons" "dns" setup-addon-manifests "addons" "dns"
@ -761,6 +757,17 @@ function start-fluentd {
fi fi
} }
# Starts a l7 loadbalancing controller for ingress.
function start-lb-controller {
if [[ "${ENABLE_L7_LOADBALANCING:-}" == "glbc" ]]; then
echo "Starting GCE L7 pod"
prepare-log-file /var/log/glbc.log
local -r src_file="${KUBE_HOME}/kube-manifests/kubernetes/gci-trusty/glbc.manifest"
cp "${src_file}" /etc/kubernetes/manifests/
fi
}
function reset-motd { function reset-motd {
# kubelet is installed both on the master and nodes, and the version is easy to parse (unlike kubectl) # kubelet is installed both on the master and nodes, and the version is easy to parse (unlike kubectl)
local -r version="$(/usr/bin/kubelet --version=true | cut -f2 -d " ")" local -r version="$(/usr/bin/kubelet --version=true | cut -f2 -d " ")"
@ -829,6 +836,7 @@ if [[ "${KUBERNETES_MASTER:-}" == "true" ]]; then
start-kube-scheduler start-kube-scheduler
start-kube-addons start-kube-addons
start-cluster-autoscaler start-cluster-autoscaler
start-lb-controller
else else
start-kube-proxy start-kube-proxy
# Kube-registry-proxy. # Kube-registry-proxy.

View File

@ -1,20 +1,18 @@
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: l7-lb-controller-v0.6.0 name: l7-lb-controller-v0.6.3
namespace: kube-system namespace: kube-system
labels: labels:
k8s-app: glbc k8s-app: glbc
version: v0.6.0 version: v0.6.3
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
kubernetes.io/name: "GLBC" kubernetes.io/name: "GLBC"
spec: spec:
terminationGracePeriodSeconds: 600 terminationGracePeriodSeconds: 600
hostNetwork: true hostNetwork: true
containers: containers:
# TODO: Push thing image once kubernetes/contrib/pull/680 is in. - image: gcr.io/google_containers/glbc:0.6.3
- image: bprashanth/glbc:0.6.3
imagePullPolicy: Always
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthz path: /healthz
@ -33,11 +31,13 @@ spec:
name: logfile name: logfile
readOnly: false readOnly: false
resources: resources:
# Request and limits are set to accomodate this pod alongside the other
# master components on a single core master.
limits: limits:
cpu: 100m cpu: 50m
memory: 100Mi memory: 100Mi
requests: requests:
cpu: 100m cpu: 10m
memory: 50Mi memory: 50Mi
command: command:
# TODO: split this out into args when we no longer need to pipe stdout to a file #6428 # TODO: split this out into args when we no longer need to pipe stdout to a file #6428