Compare commits

...

6 Commits

Author SHA1 Message Date
Simon Belmas
c3d8cf38b4 Adding json to get node name 2024-06-27 01:21:19 +02:00
Simon Belmas
0670f72d06 increate requests and limits 2024-06-26 14:49:15 +02:00
Simon Belmas
6e52807dfa Adding protocol to conntainer port 2024-06-26 14:46:25 +02:00
Simon Belmas
76c847070c Move psa configuration labels to namespace instead of common labels. 2024-06-26 14:41:05 +02:00
Simon Belmas
317f6b150f updating service port to expose http port 2024-06-26 14:35:22 +02:00
Simon Belmas
43e51cccb4 removing uid to run on openshift 2024-06-26 14:34:51 +02:00
6 changed files with 14 additions and 10 deletions

View File

@@ -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.

View File

@@ -33,3 +33,5 @@ cat <<EOF >index.html
</html> </html>
EOF EOF
echo '{"node": "'${KUBE_NODE_NAME}'"}' > kube-node.json

View File

@@ -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: /

View File

@@ -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

View File

@@ -1,4 +1,8 @@
apiVersion: v1 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

View File

@@ -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