2014-12-09 23:07:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
# This script should be sourced as a part of config-test or config-default.
|
|
|
|
# Specifically, the following environment variables are assumed:
|
|
|
|
# - CLUSTER_NAME (the name of the cluster)
|
|
|
|
|
|
|
|
MASTER_NAME="k8s-${CLUSTER_NAME}-master"
|
|
|
|
ZONE="${ZONE:-us-central1-f}"
|
|
|
|
NUM_MINIONS="${NUM_MINIONS:-2}"
|
|
|
|
CLUSTER_API_VERSION="${CLUSTER_API_VERSION:-}"
|
|
|
|
# TODO(mbforbes): Actually plumb this through; this currently only works
|
|
|
|
# because we use the 'default' network by default.
|
|
|
|
NETWORK="${NETWORK:-default}"
|
|
|
|
GCLOUD="${GCLOUD:-gcloud}"
|
|
|
|
GCLOUD_CONFIG_DIR="${GCLOUD_CONFIG_DIR:-${HOME}/.config/gcloud/kubernetes}"
|
2015-01-07 22:48:48 +00:00
|
|
|
ENABLE_CLUSTER_DNS=false
|
2015-01-02 23:55:47 +00:00
|
|
|
|
2014-12-09 23:07:54 +00:00
|
|
|
# This is a hack, but I keep setting this when I run commands manually, and
|
|
|
|
# then things grossly fail during normal runs because cluster/kubecfg.sh and
|
|
|
|
# cluster/kubectl.sh both use this if it's set.
|
|
|
|
unset KUBERNETES_MASTER
|