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.
|
||||
|
||||
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.
|
||||
|
||||
@@ -33,3 +33,5 @@ cat <<EOF >index.html
|
||||
</html>
|
||||
EOF
|
||||
|
||||
echo '{"node": "'${KUBE_NODE_NAME}'"}' > kube-node.json
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@ spec:
|
||||
- html-kube-tester
|
||||
topologyKey: kubernetes.io/hostname
|
||||
securityContext:
|
||||
runAsUser: 82
|
||||
runAsGroup: 82
|
||||
fsGroup: 82
|
||||
runAsNonRoot: true
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
@@ -61,13 +58,14 @@ spec:
|
||||
mountPath: /var/www/html
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
cpu: 2m
|
||||
memory: 10Mi
|
||||
memory: 20Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 25Mi
|
||||
memory: 50Mi
|
||||
livenessProbe: &html-kube-tester-probe
|
||||
httpGet:
|
||||
path: /
|
||||
|
||||
@@ -5,9 +5,6 @@ namespace: html-kube-tester
|
||||
commonLabels:
|
||||
app.kubernetes.io/instance: 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:
|
||||
- name: html-kube-tester-config
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
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:
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
sessionAffinity: None
|
||||
|
||||
Reference in New Issue
Block a user