Skip to content

Commit

Permalink
Merge pull request #2 from sailthru/update-ambassador-rbac
Browse files Browse the repository at this point in the history
Update ambassador rbac
  • Loading branch information
jnichols3 authored Jan 22, 2020
2 parents 595c826 + c7e1088 commit 2cd1b31
Show file tree
Hide file tree
Showing 12 changed files with 483 additions and 381 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@

# .tfvars files
*.tfvars

# intellij
.idea
36 changes: 20 additions & 16 deletions admin_service.tf
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
resource "kubernetes_service" "this_admin" {
count = "${var.admin_service_enable ? 1 : 0}"

metadata = [
{
annotations = "${var.admin_service_annotations}"
name = "${var.name}-admin"
namespace = "${var.namespace_name}"
name = "${var.name}-admin"
namespace = "${var.namespace_name}"

labels {
terrafrom = "true"
}
labels {
terrafrom = "true"
}

labels {
app = "${var.name}"
}
}
labels {
app = "${var.name}"
}
},
]

spec = [
{
type = "${var.admin_service_type}"

port = [
{
name = "${var.name}-admin"
port = 8877
protocol = "TCP"
name = "${var.name}-admin"
port = 8877
protocol = "TCP"
target_port = 8877
}
},
]

selector {
app = "${var.name}"
}

session_affinity = "None"
}
},
]

depends_on = ["kubernetes_namespace.this"]
}
}
9 changes: 5 additions & 4 deletions config.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
resource "kubernetes_config_map" "this" {
metadata {
name = "${var.name}-config"
name = "${var.name}-config"
namespace = "${var.namespace_name}"

labels {
terrafrom = "true"
}
labels {
terrafrom = "true"
}

labels {
app = "${var.name}"
Expand All @@ -15,5 +15,6 @@ resource "kubernetes_config_map" "this" {
data {
exporterConfiguration = "${var.exporter_configuration}"
}

depends_on = ["kubernetes_namespace.this"]
}
Loading

0 comments on commit 2cd1b31

Please sign in to comment.