Tong Li f455064066 Added cockroachdb cluster setup across multiple clouds
This patch does the following:
1. Added the apps role so that k8s app deployment can be placed in the role
2. Added cockroachdb-init-pod deployment inthe post role since this has to
   be deployed first.
3. Added cockroachdb-pod deployment in the apps role
4. Allow this workload to stand up a standalone cockroachdb cluster or
   join in an existing cockroachdb cluster
5. Added the cockroachdb load generator container so that once the cluster
   is started, there will be some load generated.
6. Added a way to pre-allocating floating IP addresses so that the workload
   can use pre-allocated floating IPs for VMs.

Change-Id: Ifa9eeb9d761d9801cab580445e6c43c8cf1dfdaa
2017-05-03 03:01:56 +00:00

66 lines
1.9 KiB
YAML
Executable File

---
# This is an example configuration file when use ubuntu image.
horizon_url: "http://9.30.217.9"
auth: {
auth_url: "http://9.30.217.9:5000/v3",
username: "demo",
password: "{{ password }}",
domain_name: "default",
project_name: "demo"
}
app_env: {
target_os: "ubuntu",
image_name: "ubuntu-16.04",
region_name: "RegionOne",
availability_zone: "nova",
validate_certs: False,
ssh_user: "ubuntu",
private_net_name: "demonet",
flavor_name: "m1.medium",
public_key_file: "/home/ubuntu/.ssh/interop.pub",
private_key_file: "/home/ubuntu/.ssh/interop",
stack_size: 3,
volume_size: 1,
block_device_name: "/dev/vdb",
domain: "cluster.local",
pod_network: {
Network: "172.17.0.0/16",
SubnetLen: 24,
SubnetMin: "172.17.0.0",
SubnetMax: "172.17.255.0",
Backend: {
Type: "udp",
Port: 8285
}
},
service_ip_range: "172.16.0.0/24",
dns_service_ip: "172.16.0.4",
dashboard_service_ip: "172.16.0.5",
app_setting: {
public_node: "",
own_cluster: True,
# The following section shows how to pre allocate floating IPs for each
# server. If you wish not to pre allocate floating IPs or your cloud
# does not support floating IPs, leave them empty. The stack_size
# above should dictate how many worker nodes should be. For example, if
# your stack_size is 10, you will need to add worker-1 to worker-9.
ips: {
master: [],
worker-1: [],
worker-2: []
}
},
# The following section shows an example when use a remote repo.
# If you have exported some container images such as images that being used
# by this workload, you can place the url point to tar.gz file for
# cimages_repo
cimages_repo: "",
flannel_repo: "https://github.com/coreos/flannel/releases/download/v0.7.0/flannel-v0.7.0-linux-amd64.tar.gz",
k8s_repo: "https://storage.googleapis.com/kubernetes-release/release/v1.5.3/bin/linux/amd64/"
}