forked from EtaySchur/CredabiliNir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
41 lines (36 loc) · 796 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
provider "kubernetes" {}
resource "kubernetes_deployment" "risky-plan" {
metadata {
name = "risky-redis-deployment-terraform-plan"
namespace = "default"
labels = {
app = "risky"
}
}
spec {
replicas = 1
selector {
match_labels = {
app = "risky"
}
}
template {
metadata {
labels = {
app = "risky"
}
}
spec {
automount_service_account_token = var.automount_service_account_token
host_ipc = var.host_ipc
host_pid = var.host_pid
host_network = var.host_network
container {
image = "redis:latest"
name = "risky-redis-container"
image_pull_policy = var.image_pull_policy
}
}
}
}
}