148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}
Chapter 5 ■ Using the Tectonic ConsoleIf the Tectonic Console was installed, output similar to Figure 5-7 should be generated from thepreceding commands.Figure 5-7. Creating a replication controller and pod for Tectonic ConsoleAccessing the Tectonic ConsoleBecause Tectonic Starter does not authenticate users, the interface is not exposed outside the cluster,and port forwarding must be set from the controller machine to the Tectonic Console service port 9000.The following command sets up port forwarding from 127.0.0.1:9000 to port 9000 on the pod labelledapp=tectonic-console:kubectl get pods -l tectonic-app=console -o template --template="{{range.items}}{{.metadata.name}}{{end}}" | xargs -i{} kubectl port-forward {} 9000Port forwarding from the machine from which the preceding command is run, which is the controllerinstance, to the pod on which the container for the Tectonic Console is run, will be set up as shown in Figure 5-8.Figure 5-8. Setting port forwardingTo invoke the Tectonic Console in a web browser we still need to set another port forwarding from alocal machine to the controller machine, which has public IP 23.20.52.23 and public DNS ec2-23-20-52-23.compute-1.amazonaws.com. A port other than 9000 could be used on the local machine to forward to theTectonic Console port. The command looks like this:ssh -i kubernetes-coreos.pem -f -nNT -L 9001:127.0.0.1:9000 core@ec2-23-20-52-23.compute-1.amazonaws.comPort forwarding from the local machine on which the preceding command is run to the controllerinstance is set up. Access the Tectonic Console at URL http://localhost:9001 in a browser on the localmachine as shown in Figure 5-9. The port could be different if a different localhost port is forwarded.123
Chapter 5 ■ Using the Tectonic ConsoleFigure 5-9. Accessing the Tectonic ConsoleUsing the Tectonic ConsoleThe Tectonic Console may be used to view the different Kubernetes objects, such as deployments,replication controllers, replica sets, pods, and services, or to create new Kubernetes objects. To display thedeployments, click the Deployments tab. To create a new deployment, click the Create a New Deploymentlink as shown in Figure 5-10.124
- Page 87 and 88: Chapter 3 ■ Kubernetes on Google
- Page 89 and 90: Chapter 3 ■ Kubernetes on Google
- Page 91 and 92: Chapter 3 ■ Kubernetes on Google
- Page 93 and 94: Chapter 3 ■ Kubernetes on Google
- Page 95 and 96: Chapter 3 ■ Kubernetes on Google
- Page 97 and 98: Chapter 3 ■ Kubernetes on Google
- Page 99 and 100: Chapter 3 ■ Kubernetes on Google
- Page 101 and 102: Chapter 3 ■ Kubernetes on Google
- Page 103 and 104: Chapter 3 ■ Kubernetes on Google
- Page 105 and 106: PART IIAdministration andConfigurat
- Page 107 and 108: Chapter 4 ■ Using Multiple ZonesS
- Page 109 and 110: Chapter 4 ■ Using Multiple ZonesF
- Page 111 and 112: Chapter 4 ■ Using Multiple ZonesF
- Page 113 and 114: Chapter 4 ■ Using Multiple ZonesA
- Page 115 and 116: Chapter 4 ■ Using Multiple ZonesF
- Page 117 and 118: Chapter 4 ■ Using Multiple ZonesR
- Page 119 and 120: Chapter 4 ■ Using Multiple ZonesF
- Page 121 and 122: Chapter 4 ■ Using Multiple ZonesF
- Page 123 and 124: Chapter 4 ■ Using Multiple ZonesL
- Page 125 and 126: Chapter 4 ■ Using Multiple ZonesF
- Page 127 and 128: Chapter 4 ■ Using Multiple ZonesI
- Page 129 and 130: Chapter 4 ■ Using Multiple ZonesC
- Page 131 and 132: Chapter 4 ■ Using Multiple ZonesA
- Page 133 and 134: Chapter 5 ■ Using the Tectonic Co
- Page 135 and 136: Chapter 5 ■ Using the Tectonic Co
- Page 137: Chapter 5 ■ Using the Tectonic Co
- Page 141 and 142: Chapter 5 ■ Using the Tectonic Co
- Page 143 and 144: Chapter 5 ■ Using the Tectonic Co
- Page 145 and 146: Chapter 5 ■ Using the Tectonic Co
- Page 147 and 148: Chapter 5 ■ Using the Tectonic Co
- Page 149 and 150: Chapter 5 ■ Using the Tectonic Co
- Page 151 and 152: Chapter 6 ■ Using VolumesPodDocke
- Page 153 and 154: Chapter 6 ■ Using VolumesObtain t
- Page 155 and 156: Chapter 6 ■ Using VolumesFigure 6
- Page 157 and 158: Chapter 6 ■ Using VolumesThe prec
- Page 159 and 160: Chapter 6 ■ Using VolumesFigure 6
- Page 161 and 162: Chapter 6 ■ Using VolumesFigure 6
- Page 163 and 164: Chapter 6 ■ Using VolumesThe kube
- Page 165 and 166: Chapter 6 ■ Using Volumesvolumes:
- Page 167 and 168: Chapter 6 ■ Using VolumesChange d
- Page 169 and 170: Chapter 7 ■ Using ServicesAnother
- Page 171 and 172: Chapter 7 ■ Using ServicesCreatin
- Page 173 and 174: Chapter 7 ■ Using ServicesSimilar
- Page 175 and 176: Chapter 7 ■ Using ServicesList th
- Page 177 and 178: Chapter 7 ■ Using ServicesFigure
- Page 179 and 180: Chapter 7 ■ Using ServicesInvoke
- Page 181 and 182: Chapter 7 ■ Using ServicesFigure
- Page 183 and 184: Chapter 7 ■ Using ServicesFigure
- Page 185 and 186: Chapter 7 ■ Using ServicesIn addi
- Page 187 and 188: Chapter 8 ■ Using Rolling Updates
Chapter 5 ■ Using the Tectonic Console
If the Tectonic Console was installed, output similar to Figure 5-7 should be generated from the
preceding commands.
Figure 5-7. Creating a replication controller and pod for Tectonic Console
Accessing the Tectonic Console
Because Tectonic Starter does not authenticate users, the interface is not exposed outside the cluster,
and port forwarding must be set from the controller machine to the Tectonic Console service port 9000.
The following command sets up port forwarding from 127.0.0.1:9000 to port 9000 on the pod labelled
app=tectonic-console:
kubectl get pods -l tectonic-app=console -o template --template="{{range.items}}{{.metadata.
name}}{{end}}" | xargs -i{} kubectl port-forward {} 9000
Port forwarding from the machine from which the preceding command is run, which is the controller
instance, to the pod on which the container for the Tectonic Console is run, will be set up as shown in Figure 5-8.
Figure 5-8. Setting port forwarding
To invoke the Tectonic Console in a web browser we still need to set another port forwarding from a
local machine to the controller machine, which has public IP 23.20.52.23 and public DNS ec2-23-20-52-23.
compute-1.amazonaws.com. A port other than 9000 could be used on the local machine to forward to the
Tectonic Console port. The command looks like this:
ssh -i kubernetes-coreos.pem -f -nNT -L 9001:127.0.0.1:9000 core@ec2-23-20-52-23.compute-1.
amazonaws.com
Port forwarding from the local machine on which the preceding command is run to the controller
instance is set up. Access the Tectonic Console at URL http://localhost:9001 in a browser on the local
machine as shown in Figure 5-9. The port could be different if a different localhost port is forwarded.
123