1
1
variable "kubernetes" {
2
- type = object ({
3
- host : string ,
4
- cluster_ca_certificate : string ,
5
- token : string ,
6
- })
2
+ description = " Kubernetes config"
3
+ type = map (string )
4
+ default = {
5
+ " config_path" = " ~/.kube/config"
6
+ " config_context" = " my-context"
7
+ }
7
8
}
8
9
9
10
variable "linkerd_repository" {
@@ -24,6 +25,95 @@ variable "control_plane_namespace" {
24
25
default = " linkerd"
25
26
}
26
27
28
+ variable "control_plane_ca_validity" {
29
+ description = " Control plane Issuer CA validity in hours eg: 175200 for 20 years"
30
+ type = string
31
+ default = " 175200"
32
+ }
33
+
34
+ variable "control_plane_cert_duration" {
35
+ description = " Control plane TLS cert duration eg: 24h0m0s"
36
+ type = string
37
+ default = " 72h0m0s"
38
+ }
39
+
40
+ variable "control_plane_cert_renew_before" {
41
+ description = " Control plane TLS cert renew before eg: 1h0m0s"
42
+ type = string
43
+ default = " 24h0m0s"
44
+ }
45
+
46
+ variable "control_plane_replica_count" {
47
+ description = " Control plane replica count"
48
+ type = number
49
+ default = 1
50
+ }
51
+
52
+ variable "tap_replica_count" {
53
+ description = " Tap replica count"
54
+ type = number
55
+ default = 1
56
+ }
57
+
58
+ variable "tap_injector_replica_count" {
59
+ description = " Tap injector replica count"
60
+ type = number
61
+ default = 1
62
+ }
63
+
64
+ variable "dashboard_replica_count" {
65
+ description = " Dashboard replica count"
66
+ type = number
67
+ default = 1
68
+ }
69
+
70
+ variable "metrics_replica_count" {
71
+ description = " Metrics api replica count"
72
+ type = number
73
+ default = 1
74
+ }
75
+
76
+ variable "viz_enable_pod_anti_affinity" {
77
+ description = " Viz enable podAntiAffinity"
78
+ type = bool
79
+ default = false
80
+ }
81
+
82
+ variable "viz_enable_pod_distruption_budget" {
83
+ description = " Viz enable podDisruptionBudget"
84
+ type = bool
85
+ default = false
86
+ }
87
+
88
+ variable "control_plane_enable_pod_anti_affinity" {
89
+ description = " Control plane enable podAntiAffinity"
90
+ type = bool
91
+ default = false
92
+ }
93
+
94
+ variable "control_plane_enable_pod_distruption_budget" {
95
+ description = " Control plane enable podDisruptionBudget"
96
+ type = bool
97
+ default = false
98
+ }
99
+
100
+ variable "webhook_ca_validity" {
101
+ description = " Webhook Issuer CA validity in hours eg: 175200 for 20 years"
102
+ type = string
103
+ default = " 175200"
104
+ }
105
+
106
+ variable "webhook_cert_duration" {
107
+ description = " Webhook TLS cert duration eg: 24h0m0s"
108
+ type = string
109
+ default = " 48h0m0s"
110
+ }
111
+
112
+ variable "webhook_cert_renew_before" {
113
+ description = " Webhook TLS cert renew before eg: 1h0m0s"
114
+ type = string
115
+ default = " 24h0m0s"
116
+ }
27
117
variable "viz_helm_version" {
28
118
description = " Viz helm version"
29
119
type = string
0 commit comments