You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_control_plane_nodes_label_selector"></a> [control\_plane\_nodes\_label\_selector](#input\_control\_plane\_nodes\_label\_selector)| The label selector used to filter control-plane nodes. |`string`|`"node-role.kubernetes.io/control-plane"`| no |
41
41
| <aname="input_deploy_etcd_cluster"></a> [deploy\_etcd\_cluster](#input\_deploy\_etcd\_cluster)| Whether to deploy an 'etcd' cluster suitable for usage as the Cilium key-value store (HIGHLY EXPERIMENTAL). |`bool`|`false`| no |
42
42
| <aname="input_extra_provisioner_environment_variables"></a> [extra\_provisioner\_environment\_variables](#input\_extra\_provisioner\_environment\_variables)| A map of extra environment variables to include when executing the provisioning script. |`map(string)`|`{}`| no |
43
+
| <aname="input_install_kube_prometheus_servicemonitor_crd"></a> [install\_kube\_prometheus\_servicemonitor\_crd](#input\_install\_kube\_prometheus\_servicemonitor\_crd)| Whether to install the 'kube-prometheus' ServiceMonitor CRD. |`bool`|`true`| no |
43
44
| <aname="input_ipsec_key"></a> [ipsec\_key](#input\_ipsec\_key)| The IPsec key to use for transparent encryption. Leave empty for none to be created (in which case encryption should be disabled in Helm as well). |`string`|`""`| no |
45
+
| <aname="input_kube_prometheus_crds_version"></a> [kube\_prometheus\_crds\_version](#input\_kube\_prometheus\_crds\_version)| Version of the 'kube-prometheus' ServiceMonitor CRD to install. |`string`|`"v0.13.0"`| no |
44
46
| <aname="input_path_to_kubeconfig_file"></a> [path\_to\_kubeconfig\_file](#input\_path\_to\_kubeconfig\_file)| The path to the kubeconfig file to use. |`string`| n/a | yes |
45
47
| <aname="input_post_cilium_install_script"></a> [post\_cilium\_install\_script](#input\_post\_cilium\_install\_script)| A script to be run right after installing Cilium. |`string`|`""`| no |
46
48
| <aname="input_pre_cilium_install_script"></a> [pre\_cilium\_install\_script](#input\_pre\_cilium\_install\_script)| A script to be run right before installing Cilium. |`string`|`""`| no |
47
49
| <aname="input_total_control_plane_nodes"></a> [total\_control\_plane\_nodes](#input\_total\_control\_plane\_nodes)| The number of control-plane nodes expected in the cluster. |`number`|`3`| no |
48
50
| <aname="input_wait_for_total_control_plane_nodes"></a> [wait\_for\_total\_control\_plane\_nodes](#input\_wait\_for\_total\_control\_plane\_nodes)| Whether to wait for the expected number of control-plane nodes to be registered before applying any changes. |`bool`|`false`| no |
Copy file name to clipboardExpand all lines: locals.tf
+2-1
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@ locals {
24
24
CILIUM_NAMESPACE = var.cilium_namespace, // The namespace where to deploy Cilium.
25
25
CONTROL_PLANE_NODES_LABEL_SELECTOR = var.control_plane_nodes_label_selector, // The label selector used to filter control-plane nodes.
26
26
DEPLOY_ETCD_CLUSTER = var.deploy_etcd_cluster // Whether to deploy an 'etcd' cluster suitable for usage as the Cilium key-value store.
27
-
INSTALL_KUBE_PROMETHEUS_CRDS =true, // Whether to install (some of) the 'kube-prometheus' CRDs (such as 'ServiceMonitor').
27
+
INSTALL_KUBE_PROMETHEUS_CRDS = var.install_kube_prometheus_servicemonitor_crd, // Whether to install the 'kube-prometheus' ServiceMonitor CRD.
28
+
KUBE_PROMETHEUS_CRDS_VERSION = var.kube_prometheus_crds_version, // Version of the 'kube-prometheus' ServiceMonitor CRD to install.
28
29
IPSEC_KEY = var.ipsec_key, // The IPsec key to be used for transparent encryption.
29
30
KUBECONFIG = var.path_to_kubeconfig_file // The path to the kubeconfig file that will be created and output.
30
31
PRE_CILIUM_INSTALL_SCRIPT = var.pre_cilium_install_script !=""?base64encode(var.pre_cilium_install_script) :""// The script to execute before installing Cilium.
Copy file name to clipboardExpand all lines: scripts/provisioner.sh
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
#!/bin/bash
1
+
#!/usr/bin/env bash
2
2
3
3
# Copyright 2022 Isovalent, Inc.
4
4
#
@@ -86,7 +86,7 @@ export IPSEC_ENABLED
86
86
# Manually create the 'ServiceMonitor' CRD from 'kube-prometheus' so we can enable the creation of 'ServiceMonitor' resources in the Cilium Helm chart.
87
87
if [[ "${INSTALL_KUBE_PROMETHEUS_CRDS}"=="true" ]];
0 commit comments