Merge pull request #24578 from Tej-Singh-Rana/k8s-tej

Replaced URL
This commit is contained in:
Kubernetes Prow Robot
2020-10-15 01:10:24 -07:00
committed by GitHub
2 changed files with 7 additions and 10 deletions
@@ -37,7 +37,7 @@ shared Volume at `/work-dir`, and the application container mounts the shared
Volume at `/usr/share/nginx/html`. The init container runs the following command
and then terminates:
wget -O /work-dir/index.html http://kubernetes.io
wget -O /work-dir/index.html http://info.cern.ch
Notice that the init container writes the `index.html` file in the root directory
of the nginx server.
@@ -67,16 +67,13 @@ In your shell, send a GET request to the nginx server:
The output shows that nginx is serving the web page that was written by the init container:
<!Doctype html>
<html id="home">
<html><head></head><body><header>
<title>http://info.cern.ch</title>
</header>
<head>
...
"url": "http://kubernetes.io/"}</script>
</head>
<body>
<h1>http://info.cern.ch - home of the first website</h1>
...
<p>Kubernetes is open source giving you the freedom to take advantage ...</p>
<li><a href="http://info.cern.ch/hypertext/WWW/TheProject.html">Browse the first website</a></li>
...
@@ -19,7 +19,7 @@ spec:
- wget
- "-O"
- "/work-dir/index.html"
- http://kubernetes.io
- http://info.cern.ch
volumeMounts:
- name: workdir
mountPath: "/work-dir"