-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo-agentpool.tf
40 lines (39 loc) · 899 Bytes
/
demo-agentpool.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
provider "kubernetes" {
config_path = "~/.kube/config"
}
resource "kubernetes_manifest" "agentpool_demo_agent_pool" {
manifest = {
"apiVersion" = "app.terraform.io/v1alpha2"
"kind" = "AgentPool"
"metadata" = {
"name" = "demo-agent-pool"
"namespace" = "default"
}
"spec" = {
"agentDeployment" = {
"replicas" = 3
"spec" = {
"containers" = [
{
"image" = "hashicorp/tfc-agent:latest"
"name" = "tfc-agent"
},
]
}
}
"agentTokens" = [
{
"name" = "demo-agent"
},
]
"name" = "agent-pool-demo"
"organization" = "vishnu-test-org" # replace with your org name
"token" = {
"secretKeyRef" = {
"key" = "token"
"name" = "tfc-operator"
}
}
}
}
}