|
1 | 1 | # Copyright (c) 2024, Oracle and/or its affiliates. |
2 | 2 | # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. |
3 | 3 |
|
4 | | -# Template to generate TF variables file for cluster creation from property file oci.props |
5 | | -# |
6 | | -# User-specific vars - you can get these easily from the OCI console from your user page |
7 | | -# |
8 | | - |
9 | | -# provider |
10 | | - api_fingerprint = "@OCIAPIPUBKEYFINGERPRINT@" |
11 | | -# |
12 | | - api_private_key_path = "@OCIPRIVATEKEYPATH@" |
13 | | -# |
14 | | - home_region = "phoenix" # Use short form e.g. ashburn from location column https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm |
15 | | -# |
16 | | - tenancy_id = "@TENANCYOCID@" |
17 | | -# |
18 | | - user_id = "@USEROCID@" |
19 | | -# |
20 | | - cluster_name="@OKECLUSTERNAME@" |
21 | | - compartment_id = "@COMPOCID@" |
22 | | - vcn_id = "@VCNOCID@" |
23 | | - control_plane_subnet_id = "@PUBSUBNETOCID@" |
24 | | - pub_lb_id = "@PUBSUBNETOCID@" |
25 | | - worker_subnet_id = "@PRIVATESUBNETOCID@" |
26 | | - |
27 | | -#MountTarget |
28 | | -mount_target_ocid="@MOUNTTARGETOCID@" |
29 | | -# |
30 | | -# # ssh |
31 | | - ssh_private_key_path = "@NODEPOOLSSHPK@" |
32 | | - ssh_public_key_path = "@NODEPOOLSSHPUBKEY@" |
33 | | -# |
34 | | -# # clusters |
35 | | -# ## For regions, # Use short form e.g. ashburn from location column https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm |
36 | | -# ## VCN, Pods and services clusters must not overlap with each other and with those of other clusters. |
37 | | - clusters = { |
38 | | - c1 = { region = "@REGIONSHORT@", vcn = "10.1.0.0/16", pods = "10.201.0.0/16", services = "10.101.0.0/16", enabled = true } |
39 | | - } |
40 | | -# |
41 | | - kubernetes_version = "@OKEK8SVERSION@" |
42 | | -# |
43 | | - cluster_type = "basic" |
44 | | -# |
45 | | - oke_control_plane = "public" |
46 | | - node_shape = "@NODEPOOLSHAPE@" |
| 4 | +# ============================================ |
| 5 | +# User-specific provider configuration |
| 6 | +# ============================================ |
| 7 | + |
| 8 | +api_fingerprint = "@OCIAPIPUBKEYFINGERPRINT@" |
| 9 | +api_private_key_path = "@OCIPRIVATEKEYPATH@" |
| 10 | +home_region = "phoenix" |
| 11 | +tenancy_id = "@TENANCYOCID@" |
| 12 | +user_id = "@USEROCID@" |
| 13 | + |
| 14 | +# ============================================ |
| 15 | +# OKE Cluster configuration |
| 16 | +# ============================================ |
| 17 | + |
| 18 | +cluster_name = "@OKECLUSTERNAME@" |
| 19 | +compartment_id = "@COMPOCID@" |
| 20 | +vcn_id = "@VCNOCID@" |
| 21 | +control_plane_subnet_id = "@PUBSUBNETOCID@" |
| 22 | +pub_lb_id = "@PUBSUBNETOCID@" |
| 23 | +worker_subnet_id = "@PRIVATESUBNETOCID@" |
| 24 | +mount_target_ocid = "@MOUNTTARGETOCID@" |
| 25 | + |
| 26 | +# SSH keys for node access |
| 27 | +ssh_private_key_path = "@NODEPOOLSSHPK@" |
| 28 | +ssh_public_key_path = "@NODEPOOLSSHPUBKEY@" |
| 29 | + |
| 30 | +# ============================================ |
| 31 | +# Cluster network and CIDRs |
| 32 | +# ============================================ |
| 33 | + |
| 34 | +clusters = { |
| 35 | + c1 = { |
| 36 | + region = "@REGIONSHORT@" |
| 37 | + vcn = "10.1.0.0/16" |
| 38 | + pods = "10.201.0.0/16" |
| 39 | + services = "10.101.0.0/16" |
| 40 | + enabled = true |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +# ============================================ |
| 45 | +# General cluster parameters |
| 46 | +# ============================================ |
| 47 | + |
| 48 | +kubernetes_version = "@OKEK8SVERSION@" |
| 49 | +cluster_type = "basic" |
| 50 | +oke_control_plane = "public" |
| 51 | +assign_public_ip_to_control_plane = true |
| 52 | +node_shape = "@NODEPOOLSHAPE@" |
| 53 | + |
| 54 | +# ============================================ |
| 55 | +# Node pool definition |
| 56 | +# ============================================ |
| 57 | + |
47 | 58 | nodepools = { |
48 | 59 | np1 = { |
49 | | - shape = "@NODEPOOLSHAPE@", |
50 | | - ocpus = 2, |
51 | | - memory = 64, |
52 | | - size = 2, |
53 | | - boot_volume_size = 150, |
| 60 | + shape = "@NODEPOOLSHAPE@" |
| 61 | + ocpus = 2 |
| 62 | + memory = 64 |
| 63 | + size = 2 |
| 64 | + boot_volume_size = 150 |
54 | 65 | } |
55 | 66 | } |
56 | | - |
|
0 commit comments