<commit_before>heat_template_version: 2014-10-16

description: >
  This template will boot a Kubernetes cluster with a single master
  and one or more nodes (as specified by the initial_nodes
  parameter, which defaults to 1).

parameters:

  ssh_key_name:
    type: string
    description: name of ssh key to be provisioned on our server

  external_network:
    type: string
    description: uuid/name of a network to use for floating ip addresses
    default: public

  server_image:
    type: string
    description: glance image used to boot the server

  master_flavor:
    type: string
    default: m1.small
    description: flavor to use when booting the server

  node_flavor:
    type: string
    default: m1.small
    description: flavor to use when booting the server

  dns_nameserver:
    type: string
    description: address of a dns nameserver reachable in your environment
    default: 8.8.8.8

  initial_nodes:
    type: number
    description: how many kubernetes nodes to spawn initially
    default: 1
  
  max_nodes:
    type: number
    description: maximum number of kubernetes nodes to spawn
    default: 10

  fixed_network_cidr:
    type: string
    description: network range for fixed ip network
    default: 10.0.0.0/24

  portal_network_cidr:
    type: string
    description: >
      address range used by kubernetes for service portals
    default: 10.254.0.0/16

  flannel_network_cidr:
    type: string
    description: network range for flannel overlay network
    default: 10.100.0.0/16

  flannel_network_subnetlen:
    type: string
    description: size of subnet assigned to each node
    default: 24

  flannel_use_vxlan:
    type: string
    description: >
      if true use the vxlan backend, otherwise use the default
      udp backend
    default: false
    constraints:
      - allowed_values: [true, false]

  kube_allow_priv:
    type: string
    description: >
      whether or not kubernetes should permit privileged containers.
    default: true
    constraints:
      - allowed_values: [true, false]

  docker_volume_size:
    type: number
    description: >
      size of a cinder volume to allocate to docker for container/image
      storage
    default: 25

  wait_condition_timeout:
    type: number
    description : >
      timeout for the Wait Conditions
    default: 6000

  rhn_register_host:
    type: string
    description: >
      whether or not to try registering with RHN
    default: false
    constraints:
      - allowed_values: [true, false]

  rhn_username:
    type: string
    description: >
      username to use for authenticating with RHN
    default: ''

  rhn_password:
    type: string
    description: >
      password to use for authenticating with RHN
    default: ''

  scale_up_period_length:
    type: number
    default: 60

  scale_up_period_count:
    type: number
    default: 1

  scale_up_threshold:
    type: number
    default: 60

  scale_down_period_length:
    type: number
    default: 600

  scale_down_period_count:
    type: number
    default: 1

  scale_down_threshold:
    type: number
    default: 15

  scale_up_cooldown:
    type: number
    default: 120
<commit_msg>increase default scale_up_threshold<commit_after>heat_template_version: 2014-10-16

description: >
  This template will boot a Kubernetes cluster with a single master
  and one or more nodes (as specified by the initial_nodes
  parameter, which defaults to 1).

parameters:

  ssh_key_name:
    type: string
    description: name of ssh key to be provisioned on our server

  external_network:
    type: string
    description: uuid/name of a network to use for floating ip addresses
    default: public

  server_image:
    type: string
    description: glance image used to boot the server

  master_flavor:
    type: string
    default: m1.small
    description: flavor to use when booting the server

  node_flavor:
    type: string
    default: m1.small
    description: flavor to use when booting the server

  dns_nameserver:
    type: string
    description: address of a dns nameserver reachable in your environment
    default: 8.8.8.8

  initial_nodes:
    type: number
    description: how many kubernetes nodes to spawn initially
    default: 1
  
  max_nodes:
    type: number
    description: maximum number of kubernetes nodes to spawn
    default: 10

  fixed_network_cidr:
    type: string
    description: network range for fixed ip network
    default: 10.0.0.0/24

  portal_network_cidr:
    type: string
    description: >
      address range used by kubernetes for service portals
    default: 10.254.0.0/16

  flannel_network_cidr:
    type: string
    description: network range for flannel overlay network
    default: 10.100.0.0/16

  flannel_network_subnetlen:
    type: string
    description: size of subnet assigned to each node
    default: 24

  flannel_use_vxlan:
    type: string
    description: >
      if true use the vxlan backend, otherwise use the default
      udp backend
    default: false
    constraints:
      - allowed_values: [true, false]

  kube_allow_priv:
    type: string
    description: >
      whether or not kubernetes should permit privileged containers.
    default: true
    constraints:
      - allowed_values: [true, false]

  docker_volume_size:
    type: number
    description: >
      size of a cinder volume to allocate to docker for container/image
      storage
    default: 25

  wait_condition_timeout:
    type: number
    description : >
      timeout for the Wait Conditions
    default: 6000

  rhn_register_host:
    type: string
    description: >
      whether or not to try registering with RHN
    default: false
    constraints:
      - allowed_values: [true, false]

  rhn_username:
    type: string
    description: >
      username to use for authenticating with RHN
    default: ''

  rhn_password:
    type: string
    description: >
      password to use for authenticating with RHN
    default: ''

  scale_up_period_length:
    type: number
    default: 60

  scale_up_period_count:
    type: number
    default: 1

  scale_up_threshold:
    type: number
    default: 70

  scale_down_period_length:
    type: number
    default: 600

  scale_down_period_count:
    type: number
    default: 1

  scale_down_threshold:
    type: number
    default: 15

  scale_up_cooldown:
    type: number
    default: 120

{'fraction_non_alphanumeric': 0.04989017885158456, 'fraction_numerical': 0.020395356134295575, 'mean_word_length': 2.8334335538184003, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5956353', 'n_tokens_mistral': 1985, 'n_tokens_neox': 1827, 'n_words': 672}