-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf.rename.later
57 lines (54 loc) · 978 Bytes
/
main.tf.rename.later
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "3.5.0"
}
}
}
provider "google" {
credentials = "./bold-physics-383802-3ca5961d947d.json"
project = "bold-physics-383802"
region = "us-central1"
}
#i############
#terraform {
# required_providers {
# kubernetes = {
# source = "hashicorp/kubernetes"
# version = ">= 2.0.0"
# }
# }
#}
provider "kubernetes" {
config_path = "~/.kube/config"
}
resource "kubernetes_deployment" "test" {
metadata {
name = "appmaven002"
}
spec {
replicas = 2
selector {
match_labels = {
app = "appmaven002"
}
}
template {
metadata {
labels = {
app = "appmaven002"
}
}
spec {
container {
image = "apotieri/app_maven_001"
name = "appmaven002"
port {
container_port = 80
}
}
}
}
}
}