8000 add README to nginx-www · badthinking/java-operator-sdk@6e717cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e717cf

Browse files
committed
add README to nginx-www
1 parent 8210a26 commit 6e717cf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

samples/nginx-www/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Nginx WWW Operator
2+
3+
This is a more complex example of how a Custom Resource backed by an Operator can serve as
4+
an abstraction layer. This Operator will use an nginxwww resource, which mainly contains a
5+
static webpage definition and creates a nginx Deployment backed by a ConfigMap which holds
6+
the html.
7+
8+
This is an example input:
9+
```yaml
10+
apiVersion: "sample.javaoperatorsdk/v1"
11+
kind: NginxWww
12+
metadata:
13+
name: mynginx-hello
14+
spec:
15+
html: |
16+
<html>
17+
<head>
18+
<title>Nginx WWW Operator</title>
19+
</head>
20+
<body>
21+
Hello World!!
22+
</body>
23+
</html>
24+
```
25+
26+
The Operator will create

0 commit comments

Comments
 (0)
0