Compare commits
6 Commits
18c1375be6
...
c3d8cf38b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3d8cf38b4 | ||
|
|
0670f72d06 | ||
|
|
6e52807dfa | ||
|
|
76c847070c | ||
|
|
317f6b150f | ||
|
|
43e51cccb4 |
@@ -7,4 +7,7 @@ Feel free to customize *replicas* and *content-git-repo* in *config* folder.
|
|||||||
|
|
||||||
Git will be displayed in an iframe with node name on top.
|
Git will be displayed in an iframe with node name on top.
|
||||||
|
|
||||||
|
Nnode name is displayed on the top of the page and also in kube-node.json
|
||||||
|
|
||||||
|
|
||||||
Thanks to https://github.com/amoldalwai/RoadFighter.git for having something fun to display.
|
Thanks to https://github.com/amoldalwai/RoadFighter.git for having something fun to display.
|
||||||
|
|||||||
@@ -33,3 +33,5 @@ cat <<EOF >index.html
|
|||||||
</html>
|
</html>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
echo '{"node": "'${KUBE_NODE_NAME}'"}' > kube-node.json
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ spec:
|
|||||||
- html-kube-tester
|
- html-kube-tester
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 82
|
|
||||||
runAsGroup: 82
|
|
||||||
fsGroup: 82
|
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
@@ -61,13 +58,14 @@ spec:
|
|||||||
mountPath: /var/www/html
|
mountPath: /var/www/html
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 2m
|
cpu: 2m
|
||||||
memory: 10Mi
|
memory: 20Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 25Mi
|
memory: 50Mi
|
||||||
livenessProbe: &html-kube-tester-probe
|
livenessProbe: &html-kube-tester-probe
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ namespace: html-kube-tester
|
|||||||
commonLabels:
|
commonLabels:
|
||||||
app.kubernetes.io/instance: html-kube-tester
|
app.kubernetes.io/instance: html-kube-tester
|
||||||
app.kubernetes.io/part-of: html-kube-tester
|
app.kubernetes.io/part-of: html-kube-tester
|
||||||
pod-security.kubernetes.io/enforce: restricted
|
|
||||||
pod-security.kubernetes.io/audit: restricted
|
|
||||||
pod-security.kubernetes.io/warn: restricted
|
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
- name: html-kube-tester-config
|
- name: html-kube-tester-config
|
||||||
|
|||||||
@@ -2,3 +2,7 @@ apiVersion: v1
|
|||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: html-kube-tester
|
name: html-kube-tester
|
||||||
|
labels:
|
||||||
|
pod-security.kubernetes.io/enforce: restricted
|
||||||
|
pod-security.kubernetes.io/audit: restricted
|
||||||
|
pod-security.kubernetes.io/warn: restricted
|
||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 8080
|
port: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
sessionAffinity: None
|
sessionAffinity: None
|
||||||
|
|||||||
Reference in New Issue
Block a user