summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cluster_autoscaler/defaults/main.yml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-11-16 02:59:34 -0800
committerGitHub <noreply@github.com>2017-11-16 02:59:34 -0800
commitd8f0bac2523ed80dc4251901c437e902c08cbbab (patch)
tree1bb17727d2e559f04193eaaf6bedafdbf6d0ce63 /roles/openshift_cluster_autoscaler/defaults/main.yml
parentc27a19e61a164969752445f436eadff990de5092 (diff)
parent4526f5457d012bc14c16b844bebc3eaeaa8ff191 (diff)
downloadopenshift-d8f0bac2523ed80dc4251901c437e902c08cbbab.tar.gz
openshift-d8f0bac2523ed80dc4251901c437e902c08cbbab.tar.bz2
openshift-d8f0bac2523ed80dc4251901c437e902c08cbbab.tar.xz
openshift-d8f0bac2523ed80dc4251901c437e902c08cbbab.zip
Merge pull request #5729 from kwoodson/cluster_autoscaler
Automatic merge from submit-queue. Adding support for cluster-autoscaler. This is the kubernetes cluster-autoscaler role. Features: - Updated lib_openshift to handle --role-namespace when modifying/creating rolebindings for specific namespaced role objects - openshift_cluster_autoscaler role to deploy the autoscaler
Diffstat (limited to 'roles/openshift_cluster_autoscaler/defaults/main.yml')
-rw-r--r--roles/openshift_cluster_autoscaler/defaults/main.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/roles/openshift_cluster_autoscaler/defaults/main.yml b/roles/openshift_cluster_autoscaler/defaults/main.yml
new file mode 100644
index 000000000..707e3c79b
--- /dev/null
+++ b/roles/openshift_cluster_autoscaler/defaults/main.yml
@@ -0,0 +1,40 @@
+---
+openshift_cluster_autoscaler_name: cluster-autoscaler
+openshift_cluster_autoscaler_version: 4
+
+openshift_cluster_autoscaler_template_location: /tmp
+openshift_cluster_autoscaler_template_name: "{{ openshift_cluster_autoscaler_name }}"
+
+openshift_cluster_autoscaler_node_selector:
+ type: infra
+
+openshift_cluster_autoscaler_state: present
+openshift_cluster_autoscaler_namespace: openshift-infra
+openshift_cluster_autoscaler_delete_config: True
+openshift_cluster_autoscaler_skip_nodes_local_storage: False
+openshift_cluster_autoscaler_serviceaccount: cluster-autoscaler
+openshift_cluster_autoscaler_region: us-east-1
+
+openshift_cluster_autoscaler_image: docker.io/openshift/kubernetes-autoscaler:v0.6.1
+
+openshift_cluster_autoscaler_cloud_provider: aws
+
+# AWS specific variables here
+openshift_cluster_autoscaler_aws_creds_name: aws-creds
+openshift_cluster_autoscaler_aws_secret_name: autoscaler-credentials
+openshift_cluster_autoscaler_aws_creds_path: "/var/run/secrets/{{ openshift_cluster_autoscaler_aws_creds_name }}/creds"
+openshift_cluster_autoscaler_aws_env_vars:
+- name: AWS_REGION
+ value: "{{ openshift_cluster_autoscaler_region }}"
+- name: AWS_SHARED_CREDENTIALS_FILE
+ value: "{{ openshift_cluster_autoscaler_aws_creds_path }}"
+
+## End AWS vars ##
+
+openshift_cluster_autoscaler_env_vars: []
+
+
+openshift_cluster_autoscaler_node_groups:
+- min: 3
+ max: 10
+ name: "{{ openshift_cluster_autoscaler_node_group_name | default(openshift_clusterid ~ ' openshift compute') }}"