Skip to content

Commit ea126da

Browse files
authored
Merge pull request hashicorp#128 from hashicorp/oc_updates1
added master private IP to outputs.tf
2 parents f72da47 + 61670fd commit ea126da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

infrastructure-as-code/k8s-cluster-openshift-aws/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ If you want to use open source Terraform instead of TFE, you can create a copy o
8686

8787
You will see outputs providing the IPs and DNS addresses needed to access your OpenShift cluster in the AWS Console, TLS certs/keys for your cluster, the Vault Kubernetes auth method path, the Vault server address, and your Vault username. You will need these when using Terraform's Kubernetes Provider to provision Kubernetes pods and services in other workspaces that use your OpenShift cluster. You can also validate that the cluster was created in the AWS Console.
8888

89-
You will be able to login to the OpenShift Console with username "admin" and password "123" at the URL contained in the k8s_endpoint output of the apply.log.
89+
You will be able to login to the OpenShift Console with username "admin" and password "123" at the URL contained in the k8s_endpoint output of the apply.log. To use the OpenShift `oc` CLI utility, you may SSH into the bastion host using `bastion_public_ip` output, then to the OpenShift master server using `master_private_ip` output from the apply log.
9090

9191
## Next Steps
9292
You can now use the guide in the [k8s-services-openshift](../../self-serve-infrastructure/k8s-services-openshift) directory of this repository to provision some pods and services against your OpenShift cluster. The workspace you configure in that guide will automatically use the outputs generated in the state of the k8s-cluster-openshift workspace through Terraform's workspace state sharing.

infrastructure-as-code/k8s-cluster-openshift-aws/outputs.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ output "master_public_dns" {
88
output "master_public_ip" {
99
value = "${module.openshift.master_public_ip}"
1010
}
11+
output "master_private_ip" {
12+
value = "${module.openshift.master_private_ip}"
13+
}
1114
output "bastion_public_dns" {
1215
value = "${module.openshift.bastion_public_dns}"
1316
}

0 commit comments

Comments
 (0)