build-kubernetes-cluster.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. #Playbook for kubernetes cluster
  16. #collect info from everything
  17. - hosts: all
  18. # Apply Common Installation and Config
  19. - hosts: cluster
  20. gather_facts: false
  21. roles:
  22. - common
  23. # Apply GPU Node Config
  24. - hosts: gpus
  25. gather_facts: false
  26. roles:
  27. - computeGPU
  28. # Apply Master Config
  29. - hosts: master
  30. gather_facts: false
  31. roles:
  32. - master
  33. # Start K8s on master server
  34. - hosts: master
  35. gather_facts: false
  36. roles:
  37. - startmaster
  38. # Start K8s worker servers
  39. - hosts: compute,gpus
  40. gather_facts: false
  41. roles:
  42. - startworkers
  43. # Start K8s worker servers
  44. - hosts: master
  45. gather_facts: false
  46. roles:
  47. - startservices