mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Terraform script
This commit is contained in:
parent
71210b0630
commit
cb0a04879c
1 changed files with 46 additions and 0 deletions
46
terraform/main.tf
Normal file
46
terraform/main.tf
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
provider "kubernetes" {
|
||||
config_path = "~/.kube/config"
|
||||
}
|
||||
|
||||
resource "kubernetes_namespace" "example" {
|
||||
metadata {
|
||||
name = "example"
|
||||
}
|
||||
}
|
||||
|
||||
resource "kubernetes_deployment" "go-ethereum" {
|
||||
metadata {
|
||||
name = "go-ethereum"
|
||||
namespace = kubernetes_namespace.example.metadata[0].name
|
||||
}
|
||||
|
||||
spec {
|
||||
replicas = 1
|
||||
|
||||
selector {
|
||||
match_labels = {
|
||||
app = "go-ethereum"
|
||||
}
|
||||
}
|
||||
|
||||
template {
|
||||
metadata {
|
||||
labels = {
|
||||
app = "go-ethereum"
|
||||
}
|
||||
}
|
||||
|
||||
spec {
|
||||
container {
|
||||
image = "limetester/go-ethereum:latest"
|
||||
name = "go-ethereum"
|
||||
|
||||
ports {
|
||||
container_port = 8545
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue