Skip to content

Instantly share code, notes, and snippets.

@davistran86
Last active August 24, 2017 08:04
Show Gist options
  • Save davistran86/b3b6f3655ad0e1a86582f0ee0a40906c to your computer and use it in GitHub Desktop.
Save davistran86/b3b6f3655ad0e1a86582f0ee0a40906c to your computer and use it in GitHub Desktop.
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
# -- Ansible Configuration -----
ansible_ssh_user=root
# -- OpenShift Version -----
deployment_type=origin
# -- Configures Auth -----
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
# -- OpenShift Version -----
openshift_image_tag=v3.6.0
#Fix not meet requirement
openshift_disable_check=disk_availability,docker_storage,memory_availability
#Need to check this again:
#containerized=true
# -- DNS Configuration -----
openshift_public_hostname=k8s-master.aavn.local
openshift_master_default_subdomain=apps.k8s-master.aavn.local
# -- Metrics Deployment -----
openshift_hosted_metrics_deploy=false
[masters]
k8s-master.aavn.local
[etcd]
k8s-master.aavn.local
# NOTE: Currently we require that masters be part of the SDN which requires that they also be nodes
# However, in order to ensure that your masters are not burdened with running pods you should
# make them unschedulable by adding openshift_schedulable=False any node that's also a master.
[nodes]
k8s-master.aavn.local openshift_schedulable=True openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
k8s-node1.aavn.local openshift_schedulable=True openshift_node_labels="{'region': 'primary', 'zone': 'aavn'}"
#TRY
[nodes]
k8s-master.aavn.local
k8s-node1.aavn.local openshift_schedulable=True openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
infra-k8s-node1.aavn.local openshift_schedulable=True openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
#Note: zone: default meants namespace default, some service like router, registry will use region=infra, zone=default.
#You need at least one node in the "infra" region
#or you need to update your default project node selector to run nodes in the "primary" region.
#The suggested setup is to have at least one "infra" node and at least one "primary" node.
#TODO: try changing master region, zone, disable schedulable, force router, registry to run on nodes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment