setup hello-world with bunkerweb

This commit is contained in:
2026-02-15 17:03:44 -05:00
parent e4bb4902a4
commit 3cf3bbdc74
3 changed files with 21 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ apps:
hello_world: hello_world:
enabled: true enabled: true
namespace: default namespace: default
state: absent state: present
funkwhale: funkwhale:
enabled: true enabled: true

View File

@@ -13,6 +13,9 @@ spec:
metadata: metadata:
labels: labels:
app: hello-world app: hello-world
annotations:
# Mandatory annotation for auto-discovery when using bunkerweb-controller
bunkerweb.io/INSTANCE: "yes"
spec: spec:
containers: containers:
- name: nginx - name: nginx
@@ -22,6 +25,22 @@ spec:
volumeMounts: volumeMounts:
- name: hello-world-volume - name: hello-world-volume
mountPath: /usr/share/nginx/html mountPath: /usr/share/nginx/html
# Sidecar BunkerWeb
- name: bunkerweb
image: bunkerity/bunkerweb:latest
ports:
- containerPort: 8080
name: entrypoint
- containerPort: 5000
name: bwapi
- containerPort: 9113
name: metrics
env:
- name: API_WHITELIST_IP
value: "127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.4.0/16"
- name: KUBERNETES_MODE
value: "yes"
volumes: volumes:
- name: hello-world-volume - name: hello-world-volume
configMap: configMap:

View File

@@ -7,6 +7,7 @@ metadata:
spec: spec:
ports: ports:
- port: 80 - port: 80
targetPort: 8080
protocol: TCP protocol: TCP
selector: selector:
app: hello-world app: hello-world