-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
69 lines (60 loc) · 2.44 KB
/
outputs.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
# these values will be added to the cluster certificate
output "supplementary_addresses_in_ssl_keys" {
value = concat(
tolist(["${local.cluster_name}.${local.dns_zone}"]),
tolist(yandex_dns_recordset.dns-record-kube-cluster-control.data)
)
}
# User which we use to connect to VM, Ansible need it
output "ansible_user" {
value = "cloud-user"
}
output "container_registry" {
value = "cr.yandex/${yandex_container_registry.diploma-registry.id}"
}
output "master_nodes" {
value = yandex_compute_instance.kube_control_plane.*.network_interface.0.nat_ip_address
}
output "worker_nodes" {
value = yandex_compute_instance.kube_node.*.network_interface.0.nat_ip_address
}
output "access_urls" {
value = {
Control = "${local.control_url}"
Ingress = "${local.ingress_url}"
Dashboard = "${local.cluster_name}-dashboard.${local.dns_zone}"
Grafana = "grafana.${local.dns_zone}"
Testapp = {
prod = "http://testapp.${local.dns_zone}"
stage = "http://testapp-stage.${local.dns_zone}"
}
}
}
output "picture_url" {
value = "https://storage.yandexcloud.net/${yandex_storage_bucket.netology-diploma.bucket}/${yandex_storage_object.cat.key}"
}
output "k8s_registry_agent_key" {
value = {
id = yandex_iam_service_account_key.k8s-registry-agent-key.id
service_account_id = yandex_iam_service_account_key.k8s-registry-agent-key.service_account_id
created_at = yandex_iam_service_account_key.k8s-registry-agent-key.created_at
key_algorithm = yandex_iam_service_account_key.k8s-registry-agent-key.key_algorithm
public_key = yandex_iam_service_account_key.k8s-registry-agent-key.public_key
private_key = yandex_iam_service_account_key.k8s-registry-agent-key.private_key
}
sensitive = true
}
output "docker_registry_agent_key" {
value = {
id = yandex_iam_service_account_key.docker-registry-agent-key.id
service_account_id = yandex_iam_service_account_key.docker-registry-agent-key.service_account_id
created_at = yandex_iam_service_account_key.docker-registry-agent-key.created_at
key_algorithm = yandex_iam_service_account_key.docker-registry-agent-key.key_algorithm
public_key = yandex_iam_service_account_key.docker-registry-agent-key.public_key
private_key = yandex_iam_service_account_key.docker-registry-agent-key.private_key
}
sensitive = true
}
output "deploy_env" {
value = local.ws
}