config-common.sh 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #!/bin/bash
  2. # Copyright 2014 The Kubernetes Authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ##########################################################
  16. #
  17. # These parameters describe objects we are using from
  18. # Photon Controller. They are all assumed to be pre-existing.
  19. #
  20. # Note: if you want help in creating them, you can use
  21. # the setup-prereq.sh script, which will create any of these
  22. # that do not already exist.
  23. #
  24. ##########################################################
  25. # Pre-created tenant for Kubernetes to use
  26. PHOTON_TENANT=kube-tenant
  27. # Pre-created project in PHOTON_TENANT for Kubernetes to use
  28. PHOTON_PROJECT=kube-project
  29. # Pre-created VM flavor for Kubernetes master to use
  30. # Can be same as master
  31. # We recommend at least 1GB of memory
  32. PHOTON_MASTER_FLAVOR=kube-vm
  33. # Pre-created VM flavor for Kubernetes node to use
  34. # Can be same as master
  35. # We recommend at least 2GB of memory
  36. PHOTON_NODE_FLAVOR=kube-vm
  37. # Pre-created disk flavor for Kubernetes to use
  38. PHOTON_DISK_FLAVOR=kube-disk
  39. # Pre-created Debian 8 image with kube user uploaded to Photon Controller
  40. # Note: While Photon Controller allows multiple images to have the same
  41. # name, we assume that there is exactly one image with this name.
  42. PHOTON_IMAGE=kube
  43. ##########################################################
  44. #
  45. # Parameters just for the setup-prereq.sh script: not used
  46. # elsewhere. If you create the above objects by hand, you
  47. # do not need to edit these.
  48. #
  49. # Note that setup-prereq.sh also creates the objects
  50. # above.
  51. #
  52. ##########################################################
  53. # The specifications for the master and node flavors
  54. SETUP_MASTER_FLAVOR_SPEC="vm 1 COUNT, vm.cpu 1 COUNT, vm.memory 2 GB"
  55. SETUP_NODE_FLAVOR_SPEC=${SETUP_MASTER_FLAVOR_SPEC}
  56. # The specification for the ephemeral disk flavor.
  57. SETUP_DISK_FLAVOR_SPEC="ephemeral-disk 1 COUNT"
  58. # The specification for the tenant resource ticket and the project resources
  59. SETUP_TICKET_SPEC="vm.memory 1000 GB, vm 1000 COUNT"
  60. SETUP_PROJECT_SPEC="${SETUP_TICKET_SPEC}"