forked from kubernetes-up-and-running/kuard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
125 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from 'react'; | ||
import Details from './details'; | ||
import Env from './env'; | ||
import Probe from './probe'; | ||
|
||
class App extends React.Component { | ||
render () { | ||
return ( | ||
<div> | ||
<div className="title"> | ||
<h1>Kubernetes Up and Running</h1> | ||
<div>Demo application version <i>{this.props.page.version}</i></div> | ||
</div> | ||
|
||
<div className="warning">WARNING: This server may expose sensitive and secret information. Be careful.</div> | ||
|
||
<Details open={true} title="Request Details"> | ||
<div><b>Proto:</b> <code>{this.props.page.requestProto}</code></div> | ||
<div><b>Client addr:</b> <code>{this.props.page.requestAddr}</code></div> | ||
<div><b>Dump:</b></div> | ||
<pre> | ||
{this.props.page.requestDump} | ||
</pre> | ||
</Details> | ||
|
||
<Env path="/env" /> | ||
|
||
<Probe title="Liveness Check" path="/healthy" /> | ||
|
||
<Probe title="Readiness Check" path="/ready" /> | ||
|
||
|
||
<Details title="File System"> | ||
<a href="/fs/">Browse the root file system for this server.</a> | ||
</Details> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
module.exports = App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
import React from 'react'; | ||
import {render} from 'react-dom'; | ||
import Details from './details'; | ||
import Probe from './probe' | ||
import Env from './env' | ||
import App from './app' | ||
|
||
render(<Probe title="Liveness Check" path="/healthy" />, document.getElementById("liveness")); | ||
render(<Probe title="Readiness Check" path="/ready" />, document.getElementById("readiness")); | ||
render(<Env path="/env" />, document.getElementById("env")); | ||
|
||
render( | ||
<Details title="File System"> | ||
<a href="/fs/">Browse the root file system for this server.</a> | ||
</Details>, document.getElementById("fs")) | ||
render(<App page={pageContext}/>, document.getElementById("root")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
body { | ||
font-size: 12pt; | ||
font-family: sans-serif; | ||
margin: 0; | ||
} | ||
|
||
.title { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters