Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit f753092

Browse files
Merge pull request #392 from minghsieh-prenetics/minghsieh-prenetics-patch-issue-364
issue #364 fix
2 parents 4eea183 + aac46ef commit f753092

File tree

3 files changed

+13
-9
lines changed
  • 02-path-working-with-clusters/201-cluster-monitoring
  • 03-path-application-development/306-app-management-with-helm
  • 04-path-security-and-networking/401-configmaps-and-secrets

3 files changed

+13
-9
lines changed

02-path-working-with-clusters/201-cluster-monitoring/readme.adoc

+8-4
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ If you are using v1.8 or above, deploy the Dashboard using the following command
4747

4848
Dashboard can be seen using the following command:
4949

50-
kubectl proxy
50+
kubectl proxy --address 0.0.0.0 --accept-hosts '.*' --port 8080
5151

52-
Now, Dashboard is accessible at http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/.
52+
Now, Dashboard is accessible via `Preview`, `Preview Running Application` as:
53+
54+
https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
55+
56+
Where `ENVIRONMENT_ID` is your Cloud9 IDE environment id (you should see it once click the built-in browser address bar) and `REGION_ID` is AWS region id (e.g. us-east-1).
5357

5458
Starting with Kubernetes 1.7, Dashboard supports authentication. Read more about it at https://github.com/kubernetes/dashboard/wiki/Access-control#introduction. We'll use a bearer token for authentication.
5559

@@ -152,9 +156,9 @@ Execute this command to install Heapster, InfluxDB and Grafana:
152156
deployment "monitoring-influxdb" created
153157
service "monitoring-influxdb" created
154158
155-
Heapster is now aggregating metrics from the cAdvisor instances running on each node. This data is stored in an InfluxDB instance running in the cluster. Grafana dashboard, accessible at http://localhost:8001/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy/?orgId=1, now shows the information about the cluster.
159+
Heapster is now aggregating metrics from the cAdvisor instances running on each node. This data is stored in an InfluxDB instance running in the cluster. Grafana dashboard, accessible at https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy/?orgId=1, now shows the information about the cluster.
156160
157-
NOTE: Grafana dashboard will not be available if Kubernetes proxy is not running. If proxy is not running, it can be started with the command `kubectl proxy`.
161+
NOTE: Grafana dashboard will not be available if Kubernetes proxy is not running. If proxy is not running, it can be started with the command `kubectl proxy --address 0.0.0.0 --accept-hosts '.*' --port 8080`.
158162
159163
=== Grafana dashboard
160164

03-path-application-development/306-app-management-with-helm/readme.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ webapp-deployment-372583675-hlcbg 1/1 Running 0 1m
155155

156156
Start a proxy. Since the webapp service does not expose a public endpoint, proxy will allow you to access your service endpoint via the Kubernetes API:
157157

158-
kubectl proxy
158+
kubectl proxy --address 0.0.0.0 --accept-hosts '.*' --port 8080
159159

160160
Access the application using:
161161

162-
curl http://localhost:8001/api/v1/proxy/namespaces/default/services/webapp/resources/employees
162+
curl -k https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/api/v1/proxy/namespaces/default/services/webapp/resources/employees
163163

164164
This shows the output:
165165

04-path-security-and-networking/401-configmaps-and-secrets/readme.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ The pod configuration file looks like:
273273

274274
. Start Kubernetes proxy:
275275

276-
kubectl proxy
276+
kubectl proxy --address 0.0.0.0 --accept-hosts '.*' --port 8080
277277

278278
. In a new terminal, access the service as:
279279

280-
$ curl http://localhost:8001/api/v1/proxy/namespaces/default/services/app/
280+
$ curl -k https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/api/v1/proxy/namespaces/default/services/app/
281281
printed 2 times
282282
+
283283
The pod logs are refreshed as well:
@@ -304,7 +304,7 @@ The pod logs are refreshed as well:
304304

305305
. Access the service again:
306306

307-
curl http://localhost:8001/api/v1/proxy/namespaces/default/services/app/
307+
$ curl -k https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/api/v1/proxy/namespaces/default/services/app/
308308
printed 4 times
309309

310310
. Logs from the pod are refreshed:

0 commit comments

Comments
 (0)