We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff0c645 + cf08bee commit 52cbd46Copy full SHA for 52cbd46
main.tf
@@ -382,6 +382,29 @@ module "gke" {
382
}
383
384
385
+# Fix Cilium warning message about patching the nodes
386
+# https://github.com/cilium/cilium/issues/19816#issuecomment-1144551910
387
+resource "kubernetes_cluster_role_binding" "cilium_node_patcher" {
388
+ metadata {
389
+ name = "cilium-node-patcher"
390
+ }
391
+ role_ref {
392
+ api_group = "rbac.authorization.k8s.io"
393
+ kind = "ClusterRole"
394
+ name = "system:node"
395
396
+ subject {
397
+ api_group = ""
398
+ kind = "ServiceAccount"
399
+ name = "cilium"
400
+ namespace = "kube-system"
401
402
+
403
+ depends_on = [
404
+ module.gke
405
+ ]
406
+}
407
408
resource "kubernetes_namespace" "gitlab_namespace" {
409
metadata {
410
name = var.gitlab_namespace
0 commit comments