Преглед изворни кода

Renamed openshift_node40 role to openshift_node

Jeremiah Stuever пре 6 година
родитељ
комит
86a2ace969

+ 1 - 1
playbooks/openshift-node/scaleup.yml

@@ -13,4 +13,4 @@
 - name: install nodes
   hosts: new_workers
   roles:
-  - openshift_node40
+  - openshift_node

+ 61 - 0
roles/openshift_node/README.md

@@ -0,0 +1,61 @@
+OpenShift Node
+================================
+
+Node service installation
+
+Requirements
+------------
+
+* Ansible 2.2
+* One or more Master servers
+* A RHEL 7.1 host pre-configured with access to the rhel-7-server-rpms,
+rhel-7-server-extras-rpms, and rhel-7-server-ose-3.0-rpms repos
+
+Role Variables
+--------------
+From this role:
+
+| Name                                     | Default value         |                                                          |
+|------------------------------------------|-----------------------|----------------------------------------------------------|
+| openshift_node_start_options             | UNDEF (Optional)      | Options to pass to node start cmdline                    |
+| oreg_url                                 | UNDEF (Optional)      | Default docker registry to use                           |
+| openshift_persistentlocalstorage_enabled | false                 | Enable the persistent local storage                      |
+
+openshift_node_start_options can be used for passing any start node option, e.g.:
+
+--enable=kubelet,plugins
+
+Which would have a node running without kube-proxy and dns.
+
+Dependencies
+------------
+
+
+Example Playbook
+----------------
+
+Notes
+-----
+
+Currently we support re-labeling nodes but we don't re-schedule running pods nor remove existing labels. That means you will have to trigger the re-schedulling manually. To re-schedule your pods, just follow the steps below:
+
+```
+oc adm manage-node --schedulable=false ${NODE}
+oc adm manage-node --drain ${NODE}
+oc adm manage-node --schedulable=true ${NODE}
+````
+
+> If you are using version less than 1.5/3.5 you must replace `--drain` with `--evacuate`.
+
+
+TODO
+
+License
+-------
+
+Apache License, Version 2.0
+
+Author Information
+------------------
+
+TODO

roles/openshift_node40/callback_plugins/aa_version_requirement.py → roles/openshift_node/callback_plugins/aa_version_requirement.py


roles/openshift_node40/defaults/main.yml → roles/openshift_node/defaults/main.yml


roles/openshift_node40/library/swapoff.py → roles/openshift_node/library/swapoff.py


roles/openshift_node40/meta/main.yml → roles/openshift_node/meta/main.yml


roles/openshift_node40/tasks/config.yml → roles/openshift_node/tasks/config.yml


roles/openshift_node40/tasks/install.yml → roles/openshift_node/tasks/install.yml


roles/openshift_node40/tasks/main.yml → roles/openshift_node/tasks/main.yml