You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.8 KiB

  1. {% macro private_key() %}{{ oci_private_key }}{% endmacro %}
  2. {% if oci_use_instance_principals %}
  3. # (https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/callingservicesfrominstances.htm).
  4. # Ensure you have setup the following OCI policies and your kubernetes nodes are running within them
  5. # allow dynamic-group [your dynamic group name] to read instance-family in compartment [your compartment name]
  6. # allow dynamic-group [your dynamic group name] to use virtual-network-family in compartment [your compartment name]
  7. # allow dynamic-group [your dynamic group name] to manage load-balancers in compartment [your compartment name]
  8. useInstancePrincipals: true
  9. {% else %}
  10. useInstancePrincipals: false
  11. {% endif %}
  12. auth:
  13. {% if oci_use_instance_principals %}
  14. # This key is put here too for backwards compatibility
  15. useInstancePrincipals: true
  16. {% else %}
  17. useInstancePrincipals: false
  18. region: {{ oci_region_id }}
  19. tenancy: {{ oci_tenancy_id }}
  20. user: {{ oci_user_id }}
  21. key: |
  22. {{ oci_private_key }}
  23. {% if oci_private_key_passphrase is defined %}
  24. passphrase: {{ oci_private_key_passphrase }}
  25. {% endif %}
  26. fingerprint: {{ oci_user_fingerprint }}
  27. {% endif %}
  28. # compartment configures Compartment within which the cluster resides.
  29. compartment: {{ oci_compartment_id }}
  30. # vcn configures the Virtual Cloud Network (VCN) within which the cluster resides.
  31. vcn: {{ oci_vnc_id }}
  32. loadBalancer:
  33. # subnet1 configures one of two subnets to which load balancers will be added.
  34. # OCI load balancers require two subnets to ensure high availability.
  35. subnet1: {{ oci_subnet1_id }}
  36. {% if oci_subnet2_id is defined %}
  37. # subnet2 configures the second of two subnets to which load balancers will be
  38. # added. OCI load balancers require two subnets to ensure high availability.
  39. subnet2: {{ oci_subnet2_id }}
  40. {% endif %}
  41. # SecurityListManagementMode configures how security lists are managed by the CCM.
  42. # "All" (default): Manage all required security list rules for load balancer services.
  43. # "Frontend": Manage only security list rules for ingress to the load
  44. # balancer. Requires that the user has setup a rule that
  45. # allows inbound traffic to the appropriate ports for kube
  46. # proxy health port, node port ranges, and health check port ranges.
  47. # E.g. 10.82.0.0/16 30000-32000.
  48. # "None": Disables all security list management. Requires that the
  49. # user has setup a rule that allows inbound traffic to the
  50. # appropriate ports for kube proxy health port, node port
  51. # ranges, and health check port ranges. E.g. 10.82.0.0/16 30000-32000.
  52. # Additionally requires the user to mange rules to allow
  53. # inbound traffic to load balancers.
  54. securityListManagementMode: {{ oci_security_list_management }}
  55. {% if oci_security_lists is defined and oci_security_lists|length > 0 %}
  56. # Optional specification of which security lists to modify per subnet. This does not apply if security list management is off.
  57. securityLists:
  58. {% for subnet_ocid, list_ocid in oci_security_lists.iteritems() %}
  59. {{ subnet_ocid }}: {{ list_ocid }}
  60. {% endfor %}
  61. {% endif %}
  62. {% if oci_rate_limit is defined and oci_rate_limit|length > 0 %}
  63. # Optional rate limit controls for accessing OCI API
  64. rateLimiter:
  65. {% if oci_rate_limit.rate_limit_qps_read %}
  66. rateLimitQPSRead: {{ oci_rate_limit.rate_limit_qps_read }}
  67. {% endif %}
  68. {% if oci_rate_limit.rate_limit_qps_write %}
  69. rateLimitQPSWrite: {{ oci_rate_limit.rate_limit_qps_write }}
  70. {% endif %}
  71. {% if oci_rate_limit.rate_limit_bucket_read %}
  72. rateLimitBucketRead: {{ oci_rate_limit.rate_limit_bucket_read }}
  73. {% endif %}
  74. {% if oci_rate_limit.rate_limit_bucket_write %}
  75. rateLimitBucketWrite: {{ oci_rate_limit.rate_limit_bucket_write }}
  76. {% endif %}
  77. {% endif %}