File tree 3 files changed +48
-6
lines changed
3 files changed +48
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+ on :
3
+ push :
4
+ branches : [ master ]
5
+ pull_request :
6
+
7
+ jobs :
8
+ tflint :
9
+ runs-on : ${{ matrix.os }}
10
+
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-latest, macos-latest, windows-latest]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ name : Checkout source code
18
+
19
+ - uses : actions/cache@v3
20
+ name : Cache plugin dir
21
+ with :
22
+ path : ~/.tflint.d/plugins
23
+ key : ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
24
+
25
+ - uses : terraform-linters/setup-tflint@v3
26
+ name : Setup TFLint
27
+ with :
28
+ tflint_version : v0.47.0
29
+
30
+ - name : Show version
31
+ run : tflint --version
32
+
33
+ - name : Init TFLint
34
+ run : tflint --init
35
+ env :
36
+ # https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
37
+ GITHUB_TOKEN : ${{ github.token }}
38
+
39
+ - name : Run TFLint
40
+ run : tflint --minimum-failure-severity=error -f compact
Original file line number Diff line number Diff line change @@ -25,22 +25,23 @@ module "aks" {
25
25
agents_labels = {
26
26
" truefoundry" : " essential"
27
27
}
28
- agents_count = local. intial_node_pool_instance_count
29
- agents_max_count = local. intial_node_pool_instance_count
30
- agents_min_count = local. intial_node_pool_instance_count
28
+ agents_count = local. intial_node_pool_min_count
29
+ agents_max_count = local. intial_node_pool_max_count
30
+ agents_min_count = local. intial_node_pool_min_count
31
31
agents_pool_name = " initial"
32
32
agents_size = var. intial_node_pool_instance_type
33
33
agents_tags = local. tags
34
34
35
35
# autoscaler configuration
36
36
auto_scaler_profile_enabled = true
37
37
auto_scaler_profile_expander = " random"
38
+ auto_scaler_profile_max_graceful_termination_sec = " 180"
38
39
auto_scaler_profile_max_node_provisioning_time = " 5m"
39
40
auto_scaler_profile_max_unready_nodes = 0
40
- auto_scaler_profile_scale_down_delay_after_add = " 5m "
41
+ auto_scaler_profile_scale_down_delay_after_add = " 2m "
41
42
auto_scaler_profile_scale_down_delay_after_delete = " 30s"
42
43
auto_scaler_profile_scale_down_unneeded = " 1m"
43
- auto_scaler_profile_scale_down_unready = " 5m "
44
+ auto_scaler_profile_scale_down_unready = " 2m "
44
45
auto_scaler_profile_scale_down_utilization_threshold = " 0.3"
45
46
46
47
# cluster level configurations
Original file line number Diff line number Diff line change 7
7
},
8
8
var. tags
9
9
)
10
- intial_node_pool_instance_count = var. control_plane ? 2 : 1
10
+ intial_node_pool_min_count = var. control_plane ? 2 : 1
11
+ intial_node_pool_max_count = var. control_plane ? 3 : 2
11
12
node_pools = {
12
13
spot = {
13
14
name = " spotpool"
You can’t perform that action at this time.
0 commit comments