-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps.tf
81 lines (74 loc) · 2.14 KB
/
apps.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
data "google_client_config" "provider" {
}
/*
provider "kubernetes" {
host = "https://${google_container_cluster.container_cluster.endpoint}"
token = data.google_client_config.provider.access_token
cluster_ca_certificate = base64decode(
google_container_cluster.container_cluster.master_auth[0].cluster_ca_certificate,
)
}
provider "helm" {
kubernetes {
host = "https://${google_container_cluster.container_cluster.endpoint}"
token = data.google_client_config.provider.access_token
cluster_ca_certificate = base64decode(
google_container_cluster.container_cluster.master_auth[0].cluster_ca_certificate
)
}
}
*/
/*
data "http" "nvidia_driver_installer_manifest" {
url = "https://raw.githubusercontent.com/GoogleCloudPlatform/container-engine-accelerators/master/nvidia-driver-installer/ubuntu/daemonset-preloaded.yaml"
}
resource "kubernetes_manifest" "nvidia_driver_installer" {
manifest = yamldecode(data.http.nvidia_driver_installer_manifest.response_body)
}
resource "helm_release" "nginx_ingress" {
name = "ingress-nginx"
namespace = "ingress-nginx"
create_namespace = true
repository = "https://kubernetes.github.io/ingress-nginx"
chart = "ingress-nginx"
depends_on = [
google_container_cluster.container_cluster
]
}
*/
/*
resource "helm_release" "cert_manager" {
name = "cert-manager"
namespace = "kube-system"
create_namespace = true
repository = "https://charts.jetstack.io"
chart = "cert-manager"
depends_on = [
helm_release.nginx_ingress, google_container_cluster.container_cluster
]
}
*/
/*
resource "kubernetes_manifest" "cluster-issuer" {
manifest = yamldecode(<<-EOF
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: admin@cloudydev.net
privateKeySecretRef:
name: letsencrypt-staging
solvers:
- http01:
ingress:
class: nginx
EOF
)
depends_on = [
helm_release.cert_manager
]
}
*/