Add small example nginx application to test LBs

This commit is contained in:
Marcel Straub
2025-09-13 22:20:42 +02:00
parent 57485cf6ad
commit 01204cfd2a

View File

@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: load-balancer-example
name: hello-world
spec:
replicas: 3
selector:
matchLabels:
app.kubernetes.io/name: load-balancer-example
template:
metadata:
labels:
app.kubernetes.io/name: load-balancer-example
spec:
containers:
- image: gcr.io/google-samples/hello-app:2.0
name: hello-world
ports:
- containerPort: 8080
securityContext:
seccompProfile:
type: "RuntimeDefault"
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop: ["ALL"]
---
apiVersion: v1
kind: Service
metadata:
name: my-service
namespace: default
labels:
color: test
spec:
selector:
app: hello-world
type: LoadBalancer
# ipFamilyPolicy: RequireDualStack
ports:
- port: 8080